[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080411114654.GA12270@osiris.boeblingen.de.ibm.com>
Date: Fri, 11 Apr 2008 13:46:54 +0200
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Jakub Jelinek <jakub@...hat.com>, Dave Jones <davej@...hat.com>,
drepper@...hat.com, mingo@...hat.com, tglx@...hat.com,
linux-kernel@...r.kernel.org, Roland McGrath <roland@...hat.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>
Subject: [PATCH] Fix compile breakage caused by asmlinkage_protect
From: Heiko Carstens <heiko.carstens@...ibm.com>
git commit 54a015104136974262afa4b8ddd943ea70dec8a2
"asmlinkage_protect replaces prevent_tail_call" causes this build failure
on s390:
AS arch/s390/kernel/entry64.o
In file included from arch/s390/kernel/entry64.S:14:
include/linux/linkage.h:34: error: syntax error in macro parameter list
make[1]: *** [arch/s390/kernel/entry64.o] Error 1
make: *** [arch/s390/kernel] Error 2
So just surround the new define with an #ifndef __ASSEMBLY__ to prevent
any side effects on asm code.
Cc: Roland McGrath <roland@...hat.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@...ibm.com>
---
include/linux/linkage.h | 2 ++
1 file changed, 2 insertions(+)
Index: linux-2.6/include/linux/linkage.h
===================================================================
--- linux-2.6.orig/include/linux/linkage.h
+++ linux-2.6/include/linux/linkage.h
@@ -30,9 +30,11 @@
* protection to work (ie no more work that the compiler might
* end up needing stack temporaries for).
*/
+#ifndef __ASSEMBLY__
#ifndef asmlinkage_protect
# define asmlinkage_protect(n, ret, args...) do { } while (0)
#endif
+#endif
#ifndef __ALIGN
#define __ALIGN .align 4,0x90
--
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