]> Git Repo - linux.git/commitdiff
s390: use kbuild.h instead of defining macros in asm-offsets.c
authorChristoph Lameter <[email protected]>
Tue, 29 Apr 2008 08:04:09 +0000 (01:04 -0700)
committerLinus Torvalds <[email protected]>
Tue, 29 Apr 2008 15:06:30 +0000 (08:06 -0700)
s390 has a strange marker in DEFINE.  Undefine the DEFINE from kbuild.h and
define it the way s390 wants it to preserve things as they were.

May be good if the arch maintainer could go over this and check if this
workaround is really necessary.

Signed-off-by: Christoph Lameter <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/s390/kernel/asm-offsets.c

index 1375f8a4469e8e89d56fadba47e9992fbcee6963..f7807b81c47463930b2c041ceea6cfa3d0ae8c82 100644 (file)
@@ -5,14 +5,13 @@
  */
 
 #include <linux/sched.h>
+#include <linux/kbuild.h>
 
 /* Use marker if you need to separate the values later */
-
+#undef DEFINE
 #define DEFINE(sym, val, marker) \
        asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val))
 
-#define BLANK() asm volatile("\n->" : : )
-
 int main(void)
 {
        DEFINE(__THREAD_info, offsetof(struct task_struct, stack),);
This page took 0.055493 seconds and 4 git commands to generate.