From: Doug Chapman Date: Mon, 28 Jan 2008 23:33:28 +0000 (-0800) Subject: [IA64] fix userspace compile error in gcc_intrin.h X-Git-Tag: v2.6.25-rc1~785^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0df29025fd0379d5950d206314d0b10a2c8a9607;p=linux-2.6-omap-h63xx.git [IA64] fix userspace compile error in gcc_intrin.h 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 Signed-off-by: Andrew Morton Signed-off-by: Tony Luck --- diff --git a/include/asm-ia64/gcc_intrin.h b/include/asm-ia64/gcc_intrin.h index 5b6665c754c..de2ed2cbdd8 100644 --- a/include/asm-ia64/gcc_intrin.h +++ b/include/asm-ia64/gcc_intrin.h @@ -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") __used; +#endif #define ia64_setreg(regnum, val) \ ({ \