]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/include/asm/msr-index.h
x86: msr-index.h: fix shifts to ULL results in HWP macros.
authorLen Brown <len.brown@intel.com>
Sat, 29 Apr 2017 04:11:46 +0000 (00:11 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 29 Apr 2017 04:11:46 +0000 (00:11 -0400)
commit2fc49cb0b508947bf048ecb0f5710169e62ce68e
tree0cf27e1a00912ff4eba997deb032fba250608ab9
parent8d84e906f5db80540510e448226f2718a686eb2a
x86: msr-index.h: fix shifts to ULL results in HWP macros.

x = 1
ulong_long = x << 32;

results in:

warning: left shift count >= width of type

x = 8
ulong_long = x << 24;

results in a sign extended ulong_long

Cast x to unsigned long long in these macros
to prevent these errors.

Signed-off-by: Len Brown <len.brown@intel.com>
arch/x86/include/asm/msr-index.h