Browse Source

arm: use kbuild.h instead of macros in asm-offsets.c

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Christoph Lameter 17 years ago
parent
commit
02cbe4749a
1 changed files with 1 additions and 7 deletions
  1. 1 7
      arch/arm/kernel/asm-offsets.c

+ 1 - 7
arch/arm/kernel/asm-offsets.c

@@ -16,6 +16,7 @@
 #include <asm/thread_info.h>
 #include <asm/thread_info.h>
 #include <asm/memory.h>
 #include <asm/memory.h>
 #include <asm/procinfo.h>
 #include <asm/procinfo.h>
+#include <linux/kbuild.h>
 
 
 /*
 /*
  * Make sure that the compiler and target are compatible.
  * Make sure that the compiler and target are compatible.
@@ -35,13 +36,6 @@
 #error    Known good compilers: 3.3
 #error    Known good compilers: 3.3
 #endif
 #endif
 
 
-/* Use marker if you need to separate the values later */
-
-#define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
-
 int main(void)
 int main(void)
 {
 {
   DEFINE(TSK_ACTIVE_MM,		offsetof(struct task_struct, active_mm));
   DEFINE(TSK_ACTIVE_MM,		offsetof(struct task_struct, active_mm));