From: James Hogan Date: Thu, 11 Oct 2012 09:03:01 +0000 (+0100) Subject: openrisc: use kbuild.h instead of defining macros in asm-offset.c X-Git-Tag: v3.8~278^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=634bd40a894d64df09ba36c12bb6e70787989ba9;p=platform%2Fkernel%2Flinux-amlogic.git openrisc: use kbuild.h instead of defining macros in asm-offset.c This is modelled on commits such as the one below: Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e ("sh: use kbuild.h instead of defining macros in asm-offsets.c") introduced in v2.6.26. Signed-off-by: James Hogan Signed-off-by: Jonas Bonn --- diff --git a/arch/openrisc/kernel/asm-offsets.c b/arch/openrisc/kernel/asm-offsets.c index 1a242a0..ddb7368 100644 --- a/arch/openrisc/kernel/asm-offsets.c +++ b/arch/openrisc/kernel/asm-offsets.c @@ -34,15 +34,11 @@ #include #include #include +#include #include #include #include -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) - int main(void) { /* offsets into the task_struct */