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: NLen Brown <len.brown@intel.com>
Showing
想要评论请 注册 或 登录