[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] x86/amd: (More) use of U suffixes on integer constants



commit 56e231174e1050a43cf199411d5b8a041f5625c6
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Nov 23 15:20:32 2026 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Tue Nov 24 12:08:12 2026 +0000

    x86/amd: (More) use of U suffixes on integer constants
    
    This was missed, but necessary to fix in order to enable amd.c for MISRA
    scanning.
    
    Fixes: 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")
    Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Reviewed-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
 xen/arch/x86/cpu/amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c
index ff9fc0689f..8fd0b67516 100644
--- a/xen/arch/x86/cpu/amd.c
+++ b/xen/arch/x86/cpu/amd.c
@@ -39,7 +39,7 @@ static inline int rdmsr_amd_safe(unsigned int msr, unsigned 
int *lo,
         "1: rdmsr\n\t"
         _ASM_EXTABLE(1b, %l[fault])
         : "=a" (*lo), "=d" (*hi)
-        : "c" (msr), "D" (0x9c5a203a)
+        : "c" (msr), "D" (0x9c5a203aU)
         :
         : fault );
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.