]>
Commit | Line | Data |
---|---|---|
5e993f12 | 1 | Use __u32 rather than u32 in checking_wrmsrl() exported to userspace. |
2 | ||
3 | Signed-off-by: Mike Frysinger <vapier@gentoo.org> | |
4 | ||
5 | --- a/include/asm-x86_64/msr.h | |
6 | +++ b/include/asm-x86_64/msr.h | |
7 | @@ -2,6 +2,9 @@ | |
8 | #define X86_64_MSR_H 1 | |
9 | ||
10 | #ifndef __ASSEMBLY__ | |
11 | + | |
12 | +#include <linux/types.h> | |
13 | + | |
14 | /* | |
15 | * Access to machine-specific registers (available on 586 and better only) | |
16 | * Note: the rd* operations modify the parameters directly (without using | |
17 | @@ -43,7 +46,7 @@ | |
18 | : "c" (msr), "0" (a), "d" (b), "i" (-EFAULT)); \ | |
19 | ret__; }) | |
20 | ||
21 | -#define checking_wrmsrl(msr,val) wrmsr_safe(msr,(u32)(val),(u32)((val)>>32)) | |
22 | +#define checking_wrmsrl(msr,val) wrmsr_safe(msr,(__u32)(val),(__u32)((val)>>32)) | |
23 | ||
24 | #define rdmsr_safe(msr,a,b) \ | |
25 | ({ int ret__; \ |