diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2005-01-05 18:29:46 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2005-01-05 18:29:46 +0000 |
commit | 0e87d292afa497541924642ef91fddf1edd3f806 (patch) | |
tree | 5619eaac97945156f358f22e3025be6a8b0a39ac /sys-kernel/linux26-headers | |
parent | ppc stable (Manifest recommit) (diff) | |
download | gentoo-2-0e87d292afa497541924642ef91fddf1edd3f806.tar.gz gentoo-2-0e87d292afa497541924642ef91fddf1edd3f806.tar.bz2 gentoo-2-0e87d292afa497541924642ef91fddf1edd3f806.zip |
Taking a different approach to handling barrier(); this should hopefully prevent any userspace clashes due to the <asm/...> inclusion now not being invoked.
Diffstat (limited to 'sys-kernel/linux26-headers')
-rw-r--r-- | sys-kernel/linux26-headers/ChangeLog | 8 | ||||
-rw-r--r-- | sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch | 86 |
2 files changed, 16 insertions, 78 deletions
diff --git a/sys-kernel/linux26-headers/ChangeLog b/sys-kernel/linux26-headers/ChangeLog index 3f86f9d4ecd4..2faa1d442f22 100644 --- a/sys-kernel/linux26-headers/ChangeLog +++ b/sys-kernel/linux26-headers/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-kernel/linux26-headers # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/ChangeLog,v 1.47 2005/01/05 17:11:33 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux26-headers/ChangeLog,v 1.48 2005/01/05 18:29:46 plasmaroo Exp $ + + 05 Jan 2005; <plasmaroo@gentoo.org> + files/linux26-headers-2.6.8.1-appCompat.patch: + Taking a different approach to handling barrier(); this should hopefully + prevent any userspace clashes due to the <asm/...> inclusion now not being + invoked. 05 Jan 2005; <plasmaroo@gentoo.org> files/linux26-headers-2.6.8.1-strict-ansi-fix.patch: diff --git a/sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch b/sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch index 4ed46eaf536d..05da1f2ee146 100644 --- a/sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch +++ b/sys-kernel/linux26-headers/files/linux26-headers-2.6.8.1-appCompat.patch @@ -972,14 +972,11 @@ diff -ur linux-2.6.8.1/include/linux/compiler.h linux-2.6.8.1-gentoo/include/lin /* Intel compiler defines __GNUC__. So we will overwrite implementations * coming from above header files here -@@ -47,7 +59,14 @@ +@@ -47,7 +59,11 @@ /* Optimization barrier */ #ifndef barrier -# define barrier() __memory_barrier() -+# define __ffs_X /* Prevent ffs(...) getting declared when we don't need it */ -+# include <asm/system.h> -+# undef __ffs_X +# ifdef mb +# define barrier() mb() +# else @@ -1820,79 +1817,14 @@ diff -ur linux-2.6.8.1/include/asm-alpha/signal.h linux-2.6.8.1-gentoo/include/a #ifdef __KERNEL__ #include <asm/sigcontext.h> -diff -ur linux-2.6.8.1/include/asm-alpha/bitops.h linux-2.6.8.1-gentoo/include/asm-alpha/bitops.h ---- linux-2.6.8.1/include/asm-alpha/bitops.h 2004-08-14 11:55:32.000000000 +0100 -+++ linux-2.6.8.1-gentoo/include/asm-alpha/bitops.h 2005-01-04 17:37:15.000000000 +0000 -@@ -280,6 +280,7 @@ - /* - * __ffs = Find First set bit in word. Undefined if no set bit exists. - */ -+#ifndef __ffs_X - static inline unsigned long __ffs(unsigned long word) - { - #if defined(__alpha_cix__) && defined(__alpha_fix__) -@@ -296,6 +297,7 @@ - return qofs*8 + bofs; - #endif - } -+#endif /* __ffs */ - - #ifdef __KERNEL__ - -diff -ur linux-2.6.8.1/include/asm-i386/bitops.h linux-2.6.8.1-gentoo/include/asm-i386/bitops.h ---- linux-2.6.8.1/include/asm-i386/bitops.h 2004-08-14 11:55:35.000000000 +0100 -+++ linux-2.6.8.1-gentoo/include/asm-i386/bitops.h 2005-01-04 17:37:24.000000000 +0000 -@@ -358,6 +358,7 @@ - * - * Undefined if no bit exists, so code should check against 0 first. - */ -+#ifndef __ffs_X - static inline unsigned long __ffs(unsigned long word) - { - __asm__("bsfl %1,%0" -@@ -365,6 +366,7 @@ - :"rm" (word)); - return word; - } -+#endif - - /* - * fls: find last bit set. -diff -ur linux-2.6.8.1/include/asm-ia64/bitops.h linux-2.6.8.1-gentoo/include/asm-ia64/bitops.h ---- linux-2.6.8.1/include/asm-ia64/bitops.h 2004-08-14 11:56:14.000000000 +0100 -+++ linux-2.6.8.1-gentoo/include/asm-ia64/bitops.h 2005-01-04 17:36:44.000000000 +0000 -@@ -302,6 +302,7 @@ - * - * Undefined if no bit exists, so code should check against 0 first. - */ -+#ifndef __ffs_X - static __inline__ unsigned long - __ffs (unsigned long x) - { -@@ -310,6 +311,7 @@ - result = ia64_popcnt((x-1) & ~x); - return result; - } -+#endif +diff -ur linux-2.6.8.1/include/linux/preempt.h linux-2.6.8.1-gentoo/include/linux/preempt.h +--- linux-2.6.8.1/include/linux/preempt.h 2004-08-14 11:55:32.000000000 +0100 ++++ linux-2.6.8.1-gentoo/include/linux/preempt.h 2004-12-26 19:58:15.881705760 +0000 +@@ -8,6 +8,7 @@ - #ifdef __KERNEL__ + #include <linux/config.h> + #include <linux/linkage.h> ++#include <asm/system.h> /* barrier() <--> mb() */ -diff -ur linux-2.6.8.1/include/asm-sparc64/bitops.h linux-2.6.8.1-gentoo/include/asm-sparc64/bitops.h ---- linux-2.6.8.1/include/asm-sparc64/bitops.h 2004-08-14 11:54:50.000000000 +0100 -+++ linux-2.6.8.1-gentoo/include/asm-sparc64/bitops.h 2005-01-04 17:36:57.000000000 +0000 -@@ -101,6 +101,7 @@ - * - * Undefined if no bit exists, so code should check against 0 first. - */ -+#ifndef __ffs_X - static __inline__ unsigned long __ffs(unsigned long word) - { - unsigned long result = 0; -@@ -111,6 +112,7 @@ - } - return result; - } -+#endif + #define preempt_count() (current_thread_info()->preempt_count) - /* - * fls: find last bit set. |