]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
i386 alternatives compile fix, fwd from akpm
authorChris Wright <chrisw@sous-sol.org>
Tue, 20 Jun 2006 08:37:43 +0000 (01:37 -0700)
committerChris Wright <chrisw@sous-sol.org>
Tue, 20 Jun 2006 08:37:43 +0000 (01:37 -0700)
queue-2.6.17/series
queue-2.6.17/x86-compile-fix-for-asm-i386-alternatives.h.patch [new file with mode: 0644]

index c96386b452ed00ec384f93d0c59f4f494bf60974..c7a2e5f784dcde1780e860a3419cf5ebb9c8446e 100644 (file)
@@ -10,3 +10,4 @@ sctp-fix-persistent-slowdown-in-sctp-when-a-gap-ack-consumes-rx-buffer.patch
 ethtool-fix-ufo-typo.patch
 sparc32-fix-iommu_flush_iotlb-end-address.patch
 ntfs-critical-bug-fix.patch
+x86-compile-fix-for-asm-i386-alternatives.h.patch
diff --git a/queue-2.6.17/x86-compile-fix-for-asm-i386-alternatives.h.patch b/queue-2.6.17/x86-compile-fix-for-asm-i386-alternatives.h.patch
new file mode 100644 (file)
index 0000000..d94809e
--- /dev/null
@@ -0,0 +1,35 @@
+From stable-bounces@linux.kernel.org  Tue Jun 20 00:32:35 2006
+Date: Tue, 20 Jun 2006 00:32:01 -0700
+From: akpm@osdl.org
+To: kirr@mns.spb.ru, stable@kernel.org
+Cc: 
+Subject: x86: compile fix for asm-i386/alternatives.h
+
+From: Kirill Smelkov <kirr@mns.spb.ru>
+
+compile fix:  <asm-i386/alternative.h>  needs  <asm/types.h> for 'u8' --
+just look at struct alt_instr.
+
+My module includes <asm/bitops.h> as the first header, and as of 2.6.17 this
+leads to compilation errors.
+
+Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
+Cc: <stable@kernel.org>
+Signed-off-by: Andrew Morton <akpm@osdl.org>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+
+ include/asm-i386/alternative.h |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- linux-2.6.17.1.orig/include/asm-i386/alternative.h
++++ linux-2.6.17.1/include/asm-i386/alternative.h
+@@ -3,6 +3,8 @@
+ #ifdef __KERNEL__
++#include <asm/types.h>
++
+ struct alt_instr {
+       u8 *instr;              /* original instruction */
+       u8 *replacement;