]> xenbits.xensource.com Git - xen.git/commitdiff
x86/msr: add suffix 'U' to MSR_AMD_CSTATE_CFG macro
authorAlessandro Zucchelli <alessandro.zucchelli@bugseng.com>
Thu, 25 Apr 2024 07:53:24 +0000 (09:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Apr 2024 07:53:24 +0000 (09:53 +0200)
This addresses violations of MISRA C:2012 Rule 7.2 which states as
following: A ā€œuā€ or ā€œUā€ suffix shall be applied to all integer constants
that are represented in an unsigned type.

No functional change.

Fixes: 652683e1aeaa ("x86/hvm: address violations of MISRA C:2012 Rule 7.2")
Signed-off-by: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/include/asm/msr-index.h

index 92dd9fa4962cda197840381199450a2f328f07fb..9cdb5b262566e5854481fb451cc502a28db6bcde 100644 (file)
 
 #define MSR_VIRT_SPEC_CTRL                  _AC(0xc001011f, U) /* Layout matches MSR_SPEC_CTRL */
 
-#define MSR_AMD_CSTATE_CFG                  0xc0010296
+#define MSR_AMD_CSTATE_CFG                  0xc0010296U
 
 /*
  * Legacy MSR constants in need of cleanup.  No new MSRs below this comment.