diff options
author | James Hogan <james.hogan@imgtec.com> | 2012-10-11 11:00:58 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper@jni.nu> | 2012-12-20 12:45:40 +0100 |
commit | 8e6b4dd1e1fbe81e7f9756eb8299632de641b2e1 (patch) | |
tree | c51f284e28881d5df6596b325adc26736fa52aa2 /arch/cris | |
parent | f01af9f85855e38fbd601e033a8eac204cc4cc1c (diff) |
CRIS: 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 <james.hogan@imgtec.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/kernel/asm-offsets.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/cris/kernel/asm-offsets.c b/arch/cris/kernel/asm-offsets.c index dd7b8e98322..a5fd88d816a 100644 --- a/arch/cris/kernel/asm-offsets.c +++ b/arch/cris/kernel/asm-offsets.c @@ -1,3 +1,4 @@ +#include <linux/kbuild.h> #include <linux/sched.h> #include <asm/thread_info.h> @@ -7,11 +8,6 @@ * and format the required data. */ -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : : ) - #if !defined(CONFIG_ETRAX_ARCH_V10) && !defined(CONFIG_ETRAX_ARCH_V32) #error One of ARCH v10 and ARCH v32 must be true! #endif |