diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-29 01:04:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 08:06:30 -0700 |
commit | de400bd278464fe811186b4b0d3a5cfac0d747fb (patch) | |
tree | e354de68f2fd003492cf1048ad40176f4679c77a /arch/frv | |
parent | 5544b9ed81bf1677ad6c3e5b58c05837249805b7 (diff) | |
download | kernel_samsung_smdk4412-de400bd278464fe811186b4b0d3a5cfac0d747fb.zip kernel_samsung_smdk4412-de400bd278464fe811186b4b0d3a5cfac0d747fb.tar.gz kernel_samsung_smdk4412-de400bd278464fe811186b4b0d3a5cfac0d747fb.tar.bz2 |
frv: use kbuild.h instead of defining macros in asm-offsets.c
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/asm-offsets.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/frv/kernel/asm-offsets.c b/arch/frv/kernel/asm-offsets.c index fbb19fc..9de9684 100644 --- a/arch/frv/kernel/asm-offsets.c +++ b/arch/frv/kernel/asm-offsets.c @@ -7,15 +7,13 @@ #include <linux/sched.h> #include <linux/signal.h> #include <linux/personality.h> +#include <linux/kbuild.h> #include <asm/registers.h> #include <asm/ucontext.h> #include <asm/processor.h> #include <asm/thread_info.h> #include <asm/gdb-stub.h> -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - #define DEF_PTREG(sym, reg) \ asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \ : : "i" (offsetof(struct pt_regs, reg))) @@ -32,11 +30,6 @@ asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \ : : "i" (offsetof(struct frv_frame0, reg))) -#define BLANK() asm volatile("\n->" : : ) - -#define OFFSET(sym, str, mem) \ - DEFINE(sym, offsetof(struct str, mem)); - void foo(void) { /* offsets into the thread_info structure */ |