From 86a796b19c82176f3f613d24842c510ce9ba9930 Mon Sep 17 00:00:00 2001 From: James Hogan Date: Thu, 11 Oct 2012 10:03:01 +0100 Subject: [PATCH] openrisc: use kbuild.h instead of defining macros in asm-offset.c This is modelled on commits such as the one below: Commit ecdf755167705e762f2a17ef20e7bf198e4063dd ("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 --- arch/openrisc/kernel/asm-offsets.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/openrisc/kernel/asm-offsets.c b/arch/openrisc/kernel/asm-offsets.c index 1a242a0d7583d..ddb7368558631 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 */ -- 2.39.5