Skip to contentSkip to conversation

x86: compile fix for asm-i386/alternatives.h

PATCH New Kirill Smelkov 1 participant 1 message Jun 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

include/asm-i386/alternative.h +2 -0
Index: linux-2.6.17/include/asm-i386/alternative.h
===================================================================
@@ -3,6 +3,8 @@
 
 #ifdef __KERNEL__
 
+#include <asm/types.h>
+
 struct alt_instr {
 	u8 *instr; 		/* original instruction */
 	u8 *replacement;