summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-29 10:03:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 17:06:29 +0200
commit26946f4e9b3385f475df094371a016c9d217206a (patch)
tree4340fa0e3867a12e6fec1cbdd105b422fd3787af /arch/alpha/kernel/asm-offsets.c
parentmips: use kbuild.h instead of macros in asm-offsets.c (diff)
downloadlinux-26946f4e9b3385f475df094371a016c9d217206a.tar.xz
linux-26946f4e9b3385f475df094371a016c9d217206a.zip
alpha: use kbuild.h instead of macros in asm-offsets.c
Use the macros in kbuild.h Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Jay Estabrook <jay.estabrook@hp.com> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/kernel/asm-offsets.c')
-rw-r--r--arch/alpha/kernel/asm-offsets.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/alpha/kernel/asm-offsets.c b/arch/alpha/kernel/asm-offsets.c
index 6c56c754a0b5..4b18cd94d59d 100644
--- a/arch/alpha/kernel/asm-offsets.c
+++ b/arch/alpha/kernel/asm-offsets.c
@@ -8,13 +8,9 @@
#include <linux/stddef.h>
#include <linux/sched.h>
#include <linux/ptrace.h>
+#include <linux/kbuild.h>
#include <asm/io.h>
-#define DEFINE(sym, val) \
- asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
-
void foo(void)
{
DEFINE(TI_TASK, offsetof(struct thread_info, task));