From: Christoph Lameter Drop the macro definitions in asm-offsets_*.c and use kbuild.h Signed-off-by: Christoph Lameter Cc: Sam Ravnborg Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Andrew Morton --- arch/x86/kernel/asm-offsets_32.c | 9 +-------- arch/x86/kernel/asm-offsets_64.c | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff -puN arch/x86/kernel/asm-offsets_32.c~x86-use-kbuildh arch/x86/kernel/asm-offsets_32.c --- a/arch/x86/kernel/asm-offsets_32.c~x86-use-kbuildh +++ a/arch/x86/kernel/asm-offsets_32.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "sigframe.h" #include @@ -23,14 +24,6 @@ #include #include "../../../drivers/lguest/lg.h" -#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)); - /* workaround for a warning with -Wmissing-prototypes */ void foo(void); diff -puN arch/x86/kernel/asm-offsets_64.c~x86-use-kbuildh arch/x86/kernel/asm-offsets_64.c --- a/arch/x86/kernel/asm-offsets_64.c~x86-use-kbuildh +++ a/arch/x86/kernel/asm-offsets_64.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -17,14 +18,6 @@ #include #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)) - #define __NO_STUBS 1 #undef __SYSCALL #undef _ASM_X86_64_UNISTD_H_ _