From: Christoph Lameter <clameter@sgi.com>
Date: Tue, 29 Apr 2008 08:04:12 +0000 (-0700)
Subject: v850: use kbuild.h instead of defining macros in asm-offsets.c
X-Git-Tag: firefly_0821_release~20851
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8972331292753c89dbdd10b175e999ce78dc3be7;p=firefly-linux-kernel-4.4.55.git

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

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Miles Bader <miles@gnu.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

diff --git a/arch/v850/kernel/asm-offsets.c b/arch/v850/kernel/asm-offsets.c
index cee5c3142d41..581e6986a776 100644
--- a/arch/v850/kernel/asm-offsets.c
+++ b/arch/v850/kernel/asm-offsets.c
@@ -13,14 +13,11 @@
 #include <linux/kernel_stat.h>
 #include <linux/ptrace.h>
 #include <linux/hardirq.h>
+#include <linux/kbuild.h>
+
 #include <asm/irq.h>
 #include <asm/errno.h>
 
-#define DEFINE(sym, val) \
-	asm volatile("\n->" #sym " %0 " #val : : "i" (val))
-
-#define BLANK() asm volatile("\n->" : : )
-
 int main (void)
 {
 	/* offsets into the task struct */