[PATCH] fix userspace compile error in gcc_intrin.h

From: Doug Chapman <doug.chapman_at_hp.com>
Date: 2008-01-17 07:21:48
Fixes userspace build errors when linux/ipv6.h is included such as
in the dhcpv6 package under fedora.  Likely causes other userspace
build errors as well.  I found this in akpm's tree from 2.6.18 but
could not find any case of anyone proposing it for the main tree.

Signed-off-by: Doug Chapman <doug.chapman@hp.com>
CC: Anderw Morton <akpm@osdl.org>

diff -up linux-2.6.23.ia64/include/asm-ia64/gcc_intrin.h.broken linux-2.6.23.ia64/include/asm-ia64/gcc_intrin.h
--- linux-2.6.23.ia64/include/asm-ia64/gcc_intrin.h.broken	2008-01-16 12:16:21.000000000 -0500
+++ linux-2.6.23.ia64/include/asm-ia64/gcc_intrin.h	2008-01-16 12:16:37.000000000 -0500
@@ -24,7 +24,9 @@
 extern void ia64_bad_param_for_setreg (void);
 extern void ia64_bad_param_for_getreg (void);
+#ifdef __KERNEL__
 register unsigned long ia64_r13 asm ("r13") __attribute_used__;
 #define ia64_setreg(regnum, val)						\
 ({										\

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 17 07:22:21 2008

This archive was generated by hypermail 2.1.8 : 2008-01-17 07:22:49 EST