Commit 7a88d7a8 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

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

s390 has a strange marker in DEFINE.  Undefine the DEFINE from kbuild.h and
define it the way s390 wants it to preserve things as they were.

May be good if the arch maintainer could go over this and check if this
workaround is really necessary.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d4d298fe
...@@ -5,14 +5,13 @@ ...@@ -5,14 +5,13 @@
*/ */
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/kbuild.h>
/* Use marker if you need to separate the values later */ /* Use marker if you need to separate the values later */
#undef DEFINE
#define DEFINE(sym, val, marker) \ #define DEFINE(sym, val, marker) \
asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val)) asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val))
#define BLANK() asm volatile("\n->" : : )
int main(void) int main(void)
{ {
DEFINE(__THREAD_info, offsetof(struct task_struct, stack),); DEFINE(__THREAD_info, offsetof(struct task_struct, stack),);
......
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