Skip to content

Commit

Permalink
sh: 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: Paul Mundt <lethal@linux-sh.org>
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 Linus Torvalds committed Apr 29, 2008
1 parent 4ca4d7b commit fc1c3a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/sh/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@
#include <linux/stddef.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <asm/thread_info.h>

#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#include <linux/kbuild.h>

#define BLANK() asm volatile("\n->" : : )
#include <asm/thread_info.h>

int main(void)
{
Expand Down

0 comments on commit fc1c3a0

Please sign in to comment.