Skip to content

Commit

Permalink
mn10300: use kbuild.h instead of defining macros in asm-offsets.c
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christoph Lameter authored and torvalds committed Apr 29, 2008
1 parent d8045b4 commit 59957fc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arch/mn10300/kernel/asm-offsets.c
Expand Up @@ -7,21 +7,14 @@
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/personality.h>
#include <linux/kbuild.h>
#include <asm/ucontext.h>
#include <asm/processor.h>
#include <asm/thread_info.h>
#include <asm/ptrace.h>
#include "sigframe.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)
{
OFFSET(SIGCONTEXT_d0, sigcontext, d0);
Expand Down

0 comments on commit 59957fc

Please sign in to comment.