[klibc] [patch] s390 klibc build fix for 2.6.15

maximilian attems maks at sternwelten.at
Wed Feb 1 02:41:10 PST 2006


klibc doesn't currently build on s390 since
commit 1e8e338325fa0f2bd5c1c800086e900cf188d2cd

belows patch adds some kernel ifdef for the newly added section.

Signed-off-by: maximilian attems <maks at sternwelten.at>


--- linux-2.6.15/include/asm-s390/setup.h.orig	2006-02-01 11:27:00.000000000 +0100
+++ linux-2.6.15/include/asm-s390/setup.h	2006-02-01 11:31:54.000000000 +0100
@@ -67,6 +67,8 @@
 #define SET_CONSOLE_3215	do { console_mode = 2; } while (0)
 #define SET_CONSOLE_3270	do { console_mode = 3; } while (0)
 
+#ifdef __KERNEL__
+
 struct ipl_list_header {
 	u32 length;
 	u8  reserved[3];
@@ -114,6 +116,8 @@
 				 IPL_PARMBLOCK_ORIGIN)
 #define IPL_PARMBLOCK_SIZE	(IPL_PARMBLOCK_START->hdr.length)
 
+#endif /* __KERNEL__ */
+
 #else 
 
 #ifndef __s390x__



More information about the klibc mailing list