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

From: Kirill Smelkov
Date: Mon Jun 19 2006 - 08:55:39 EST


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@xxxxxxxxxx>

Index: linux-2.6.17/include/asm-i386/alternative.h
===================================================================
--- linux-2.6.17.orig/include/asm-i386/alternative.h 2006-06-18 05:49:35.000000000 +0400
+++ linux-2.6.17/include/asm-i386/alternative.h 2006-06-19 16:44:17.000000000 +0400
@@ -3,6 +3,8 @@

#ifdef __KERNEL__

+#include <asm/types.h>
+
struct alt_instr {
u8 *instr; /* original instruction */
u8 *replacement;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/