diff options
author | James Hogan <james.hogan@imgtec.com> | 2012-10-11 05:03:01 -0400 |
---|---|---|
committer | Jonas Bonn <jonas@southpole.se> | 2012-10-25 09:54:33 -0400 |
commit | 634bd40a894d64df09ba36c12bb6e70787989ba9 (patch) | |
tree | 21473b4b6f2cf1331baf2aac584c4f037e52658e /arch/openrisc | |
parent | d48444cf39161bca014b9f6402e409d3e193e530 (diff) |
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 <james.hogan@imgtec.com>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/asm-offsets.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/openrisc/kernel/asm-offsets.c b/arch/openrisc/kernel/asm-offsets.c index 1a242a0d7583..ddb736855863 100644 --- a/arch/openrisc/kernel/asm-offsets.c +++ b/arch/openrisc/kernel/asm-offsets.c | |||
@@ -34,15 +34,11 @@ | |||
34 | #include <linux/mm.h> | 34 | #include <linux/mm.h> |
35 | #include <linux/io.h> | 35 | #include <linux/io.h> |
36 | #include <linux/thread_info.h> | 36 | #include <linux/thread_info.h> |
37 | #include <linux/kbuild.h> | ||
37 | #include <asm/page.h> | 38 | #include <asm/page.h> |
38 | #include <asm/pgtable.h> | 39 | #include <asm/pgtable.h> |
39 | #include <asm/processor.h> | 40 | #include <asm/processor.h> |
40 | 41 | ||
41 | #define DEFINE(sym, val) \ | ||
42 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | ||
43 | |||
44 | #define BLANK() asm volatile("\n->" : : ) | ||
45 | |||
46 | int main(void) | 42 | int main(void) |
47 | { | 43 | { |
48 | /* offsets into the task_struct */ | 44 | /* offsets into the task_struct */ |