summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-29 01:03:59 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 08:06:29 -0700
commit02cbe4749a79f880b29ce42bbb5441b8d57222e4 (patch)
treef7313b1c78c63f32a6b2a2cc42a5c34e792f12cb /arch/arm/kernel
parentad2bc7b480230fb298919c54fea37b7879f2251d (diff)
downloadlinux-02cbe4749a79f880b29ce42bbb5441b8d57222e4.tar.gz
linux-02cbe4749a79f880b29ce42bbb5441b8d57222e4.tar.bz2
linux-02cbe4749a79f880b29ce42bbb5441b8d57222e4.zip
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>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/asm-offsets.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c
index 0a0d2479274b..4a881258bb17 100644
--- a/arch/arm/kernel/asm-offsets.c
+++ b/arch/arm/kernel/asm-offsets.c
@@ -16,6 +16,7 @@
#include <asm/thread_info.h>
#include <asm/memory.h>
#include <asm/procinfo.h>
+#include <linux/kbuild.h>
/*
* Make sure that the compiler and target are compatible.
@@ -35,13 +36,6 @@
#error Known good compilers: 3.3
#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)
{
DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm));