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. ]
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -3,6 +3,10 @@ · 2 unmodified lines | |||
| 3 | 3 | ||
| 4 | #include <asm/msr-index.h> | 4 | #include <asm/msr-index.h> |
| 5 | 5 | ||
| 6 | #ifndef __ASSEMBLY__ | ||
| 7 | # include <linux/types.h> | ||
| 8 | #endif | ||
| 9 | |||
| 6 | #ifdef __i386__ | 10 | #ifdef __i386__ |
| 7 | 11 | ||
| 8 | #ifdef __KERNEL__ | 12 | #ifdef __KERNEL__ |