Subject: frv: Use kbuild.h instead of defining macros in asm-offsets.c Cc: David Howells Signed-off-by: Christoph Lameter --- arch/frv/kernel/asm-offsets.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) Index: linux-2.6.25-rc8-mm2/arch/frv/kernel/asm-offsets.c =================================================================== --- linux-2.6.25-rc8-mm2.orig/arch/frv/kernel/asm-offsets.c 2008-04-12 19:29:13.939675060 -0700 +++ linux-2.6.25-rc8-mm2/arch/frv/kernel/asm-offsets.c 2008-04-12 19:29:47.209675454 -0700 @@ -7,15 +7,13 @@ #include #include #include +#include #include #include #include #include #include -#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 */