Skip to content

Commit 8942664

Browse files
KarimAllah AhmedIngo Molnar
authored andcommitted
x86/headers/UAPI: Use __u64 instead of u64 in <uapi/asm/hyperv.h>
... since u64 has a hidden header dependency that was not there before using it (i.e. it breaks our VMM build). Also, __u64 is the right way to expose data types through UAPI. Signed-off-by: KarimAllah Ahmed <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Cc: Haiyang Zhang <[email protected]> Cc: K. Y. Srinivasan <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephen Hemminger <[email protected]> Cc: [email protected] Fixes: 9328626 ("x86/hyperv: Reenlightenment notifications support") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 91ab883 commit 8942664

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

arch/x86/include/uapi/asm/hyperv.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,24 +241,24 @@
241241
#define HV_X64_MSR_REENLIGHTENMENT_CONTROL 0x40000106
242242

243243
struct hv_reenlightenment_control {
244-
u64 vector:8;
245-
u64 reserved1:8;
246-
u64 enabled:1;
247-
u64 reserved2:15;
248-
u64 target_vp:32;
244+
__u64 vector:8;
245+
__u64 reserved1:8;
246+
__u64 enabled:1;
247+
__u64 reserved2:15;
248+
__u64 target_vp:32;
249249
};
250250

251251
#define HV_X64_MSR_TSC_EMULATION_CONTROL 0x40000107
252252
#define HV_X64_MSR_TSC_EMULATION_STATUS 0x40000108
253253

254254
struct hv_tsc_emulation_control {
255-
u64 enabled:1;
256-
u64 reserved:63;
255+
__u64 enabled:1;
256+
__u64 reserved:63;
257257
};
258258

259259
struct hv_tsc_emulation_status {
260-
u64 inprogress:1;
261-
u64 reserved:63;
260+
__u64 inprogress:1;
261+
__u64 reserved:63;
262262
};
263263

264264
#define HV_X64_MSR_HYPERCALL_ENABLE 0x00000001

0 commit comments

Comments
 (0)