Skip to content

Commit

Permalink
[PATCH] x86: compile fix for asm-i386/alternatives.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill Smelkov authored and Linus Torvalds committed Jun 23, 2006
1 parent 224f611 commit 30343d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-i386/alternative.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#ifdef __KERNEL__

#include <asm/types.h>

struct alt_instr {
u8 *instr; /* original instruction */
u8 *replacement;
Expand Down

0 comments on commit 30343d6

Please sign in to comment.