[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1349946181-27277-1-git-send-email-james.hogan@imgtec.com>
Date: Thu, 11 Oct 2012 10:03:01 +0100
From: James Hogan <james.hogan@...tec.com>
To: Jonas Bonn <jonas@...thpole.se>
CC: <linux@...ts.openrisc.net>, <linux-kernel@...r.kernel.org>,
James Hogan <james.hogan@...tec.com>
Subject: [PATCH] openrisc: use kbuild.h instead of defining macros in asm-offset.c
This is modelled on commits such as the one below:
Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e ("sh: use kbuild.h
instead of defining macros in asm-offsets.c") introduced in v2.6.26.
Signed-off-by: James Hogan <james.hogan@...tec.com>
---
Note I haven't tested compilation on openrisc. I'd appreciate if
somebody could check it doesn't break anything.
arch/openrisc/kernel/asm-offsets.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/arch/openrisc/kernel/asm-offsets.c b/arch/openrisc/kernel/asm-offsets.c
index 1a242a0..ddb7368 100644
--- a/arch/openrisc/kernel/asm-offsets.c
+++ b/arch/openrisc/kernel/asm-offsets.c
@@ -34,15 +34,11 @@
#include <linux/mm.h>
#include <linux/io.h>
#include <linux/thread_info.h>
+#include <linux/kbuild.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/processor.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 */
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists