From: Christoph Lameter Date: Tue, 29 Apr 2008 08:04:07 +0000 (-0700) Subject: mn10300: use kbuild.h instead of defining macros in asm-offsets.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59957fc31fb78806fc95c99466caa9a0fff735aa;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mn10300: use kbuild.h instead of defining macros in asm-offsets.c Signed-off-by: Christoph Lameter Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/mn10300/kernel/asm-offsets.c b/arch/mn10300/kernel/asm-offsets.c index ee2d9f8af5a..2646fcbd7d8 100644 --- a/arch/mn10300/kernel/asm-offsets.c +++ b/arch/mn10300/kernel/asm-offsets.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -14,14 +15,6 @@ #include "sigframe.h" #include "mn10300-serial.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)); - void foo(void) { OFFSET(SIGCONTEXT_d0, sigcontext, d0);