Mailing List Archive

[xen staging] x86/msr: add suffix 'U' to MSR_AMD_CSTATE_CFG macro
commit 8c01d0e3361d827b552a8f5323c18a4d4f07e06a
Author: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
AuthorDate: Thu Apr 25 09:53:24 2024 +0200
Commit: Jan Beulich <jbeulich@suse.com>
CommitDate: Thu Apr 25 09:53:24 2024 +0200

x86/msr: add suffix 'U' to MSR_AMD_CSTATE_CFG macro

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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/include/asm/msr-index.h b/xen/arch/x86/include/asm/msr-index.h
index 92dd9fa496..9cdb5b2625 100644
--- a/xen/arch/x86/include/asm/msr-index.h
+++ b/xen/arch/x86/include/asm/msr-index.h
@@ -236,7 +236,7 @@

#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.
--
generated by git-patchbot for /home/xen/git/xen.git#staging