Commit 59957fc3 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

mn10300: use kbuild.h instead of defining macros in asm-offsets.c

Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d8045b4a
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/kbuild.h>
#include <asm/ucontext.h> #include <asm/ucontext.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
...@@ -14,14 +15,6 @@ ...@@ -14,14 +15,6 @@
#include "sigframe.h" #include "sigframe.h"
#include "mn10300-serial.h" #include "mn10300-serial.h"
#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#define BLANK() asm volatile("\n->")
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem));
void foo(void) void foo(void)
{ {
OFFSET(SIGCONTEXT_d0, sigcontext, d0); OFFSET(SIGCONTEXT_d0, sigcontext, d0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment