提交 d4d298fe 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

ppc/powerpc: use kbuild.h instead of defining macros in asm-offsets.c

Signed-off-by: NChristoph Lameter <clameter@sgi.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 943de37d
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/time.h> #include <linux/time.h>
#include <linux/hardirq.h> #include <linux/hardirq.h>
#endif #endif
#include <linux/kbuild.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/page.h> #include <asm/page.h>
...@@ -51,11 +52,6 @@ ...@@ -51,11 +52,6 @@
#include <asm/iseries/alpaca.h> #include <asm/iseries/alpaca.h>
#endif #endif
#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#define BLANK() asm volatile("\n->" : : )
int main(void) int main(void)
{ {
DEFINE(THREAD, offsetof(struct task_struct, thread)); DEFINE(THREAD, offsetof(struct task_struct, thread));
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <linux/suspend.h> #include <linux/suspend.h>
#include <linux/mman.h> #include <linux/mman.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/kbuild.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
...@@ -26,11 +28,6 @@ ...@@ -26,11 +28,6 @@
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/vdso_datapage.h> #include <asm/vdso_datapage.h>
#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#define BLANK() asm volatile("\n->" : : )
int int
main(void) main(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册