Skip to content

Commit

Permalink
s390: use kbuild.h instead of defining macros in asm-offsets.c
Browse files Browse the repository at this point in the history
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: Christoph Lameter <clameter@sgi.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.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 Linus Torvalds committed Apr 29, 2008
1 parent d4d298f commit 7a88d7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/s390/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
*/

#include <linux/sched.h>
#include <linux/kbuild.h>

/* Use marker if you need to separate the values later */

#undef DEFINE
#define DEFINE(sym, val, marker) \
asm volatile("\n->" #sym " %0 " #val " " #marker : : "i" (val))

#define BLANK() asm volatile("\n->" : : )

int main(void)
{
DEFINE(__THREAD_info, offsetof(struct task_struct, stack),);
Expand Down

0 comments on commit 7a88d7a

Please sign in to comment.