From: Christoph Lameter Date: Tue, 29 Apr 2008 08:04:02 +0000 (-0700) Subject: avr32: use kbuild.h macros instead of defining macros in asm-offsets.c X-Git-Tag: v2.6.26-rc1~385 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=40765200b688939a012f5facc87d8ee07c40288b;p=linux-2.6-omap-h63xx.git avr32: use kbuild.h macros instead of defining macros in asm-offsets.c Signed-off-by: Christoph Lameter Cc: Haavard Skinnemoen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/avr32/kernel/asm-offsets.c b/arch/avr32/kernel/asm-offsets.c index 078cd33f467..e4796c67a83 100644 --- a/arch/avr32/kernel/asm-offsets.c +++ b/arch/avr32/kernel/asm-offsets.c @@ -5,14 +5,7 @@ */ #include - -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) - -#define OFFSET(sym, str, mem) \ - DEFINE(sym, offsetof(struct str, mem)); +#include void foo(void) {