Skip to content

Commit

Permalink
x86: asm-x86/msr.h: pull in linux/types.h
Browse files Browse the repository at this point in the history
Since the msr.h header uses types like __u32, it should pull in linux/types.h.

[ mingo@elte.hu: affects user-space that includes this header. We dont
  actually like user-space including raw kernel headers but it's a
  longstanding practice and it's easy for the kernel to be nice about
  this. ]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Mike Frysinger authored and Ingo Molnar committed Jan 15, 2008
1 parent 23be8c7 commit d43a331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-x86/msr.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

#include <asm/msr-index.h>

#ifndef __ASSEMBLY__
# include <linux/types.h>
#endif

#ifdef __i386__

#ifdef __KERNEL__
Expand Down

0 comments on commit d43a331

Please sign in to comment.