diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-29 04:03:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:29 -0400 |
commit | 02cbe4749a79f880b29ce42bbb5441b8d57222e4 (patch) | |
tree | f7313b1c78c63f32a6b2a2cc42a5c34e792f12cb /arch/arm | |
parent | ad2bc7b480230fb298919c54fea37b7879f2251d (diff) |
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')
-rw-r--r-- | arch/arm/kernel/asm-offsets.c | 8 |
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 @@ | |||
16 | #include <asm/thread_info.h> | 16 | #include <asm/thread_info.h> |
17 | #include <asm/memory.h> | 17 | #include <asm/memory.h> |
18 | #include <asm/procinfo.h> | 18 | #include <asm/procinfo.h> |
19 | #include <linux/kbuild.h> | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * Make sure that the compiler and target are compatible. | 22 | * Make sure that the compiler and target are compatible. |
@@ -35,13 +36,6 @@ | |||
35 | #error Known good compilers: 3.3 | 36 | #error Known good compilers: 3.3 |
36 | #endif | 37 | #endif |
37 | 38 | ||
38 | /* Use marker if you need to separate the values later */ | ||
39 | |||
40 | #define DEFINE(sym, val) \ | ||
41 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | ||
42 | |||
43 | #define BLANK() asm volatile("\n->" : : ) | ||
44 | |||
45 | int main(void) | 39 | int main(void) |
46 | { | 40 | { |
47 | DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); | 41 | DEFINE(TSK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); |