summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2006-06-23 02:04:33 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-23 07:42:59 -0700
commit30343d6c3d4e3fe961369e7be19935683e808c88 (patch)
tree61efa604ac9f9d27b950dd16790a583e9e3b1fb4 /include
parent224f611c1639cb6c134a934dae7f7b9f0ac3b540 (diff)
[PATCH] x86: compile fix for asm-i386/alternatives.h
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: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/alternative.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-i386/alternative.h b/include/asm-i386/alternative.h
index e201decea0c..d79e9ee10fd 100644
--- a/include/asm-i386/alternative.h
+++ b/include/asm-i386/alternative.h
@@ -3,6 +3,8 @@
#ifdef __KERNEL__
+#include <asm/types.h>
+
struct alt_instr {
u8 *instr; /* original instruction */
u8 *replacement;