summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Yamin <plasmaroo@gentoo.org>2003-12-11 21:15:30 +0000
committerTim Yamin <plasmaroo@gentoo.org>2003-12-11 21:15:30 +0000
commit11063a7dfc92c06594c4e22151f9015d0fdb0801 (patch)
tree1806d32ca38b470e790b843dd03b7527846cb35e /sys-kernel/linux-headers/files
parentadded skencil ebuild (Manifest recommit) (diff)
downloadgentoo-2-11063a7dfc92c06594c4e22151f9015d0fdb0801.tar.gz
gentoo-2-11063a7dfc92c06594c4e22151f9015d0fdb0801.tar.bz2
gentoo-2-11063a7dfc92c06594c4e22151f9015d0fdb0801.zip
Fixed the 'linux-headers-strict-ansi.patch' to resolve bug #32246.
Diffstat (limited to 'sys-kernel/linux-headers/files')
-rw-r--r--sys-kernel/linux-headers/files/linux-headers-strict-ansi-fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/files/linux-headers-strict-ansi-fix.patch b/sys-kernel/linux-headers/files/linux-headers-strict-ansi-fix.patch
index 1e6a1f657308..f0f142c1ef00 100644
--- a/sys-kernel/linux-headers/files/linux-headers-strict-ansi-fix.patch
+++ b/sys-kernel/linux-headers/files/linux-headers-strict-ansi-fix.patch
@@ -19,3 +19,30 @@
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
+--- linux-2.4.22/include/asm-i386/byteorder.h 2003-12-05 20:02:56.000000000 +0000
++++ linux-2.4.22.plasmaroo/include/asm-i386/byteorder.h 2003-12-05 20:05:45.000000000 +0000
+@@ -35,7 +35,7 @@
+ }
+
+
+-static inline __u64 ___arch__swab64(__u64 val)
++static __inline__ __const__ __u64 ___arch__swab64(__u64 val)
+ {
+ union {
+ struct { __u32 a,b; } s;
+@@ -43,13 +43,13 @@
+ } v;
+ v.u = val;
+ #ifdef CONFIG_X86_BSWAP
+- asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
++ __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
+ : "=r" (v.s.a), "=r" (v.s.b)
+ : "0" (v.s.a), "1" (v.s.b));
+ #else
+ v.s.a = ___arch__swab32(v.s.a);
+ v.s.b = ___arch__swab32(v.s.b);
+- asm("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
++ __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
+ #endif
+ return v.u;
+ }