Skip to contentSkip to conversation

x86/amd: (More) use of U suffixes on integer constants

PATCH In review Andrew Cooper 2 participants 2 messages Nov 23

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/amd: (More) use of U suffixes on integer constants

This was missed, but necessary to fix in order to

Fixes 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")

---
CC: Alejandro Vallejo <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>

Found by an AI review looking over recent commits into staging.

---
 xen/arch/x86/cpu/amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/cpu/amd.c +1 -1
index ff9fc0689f3a..8fd0b675161e 100644
@@ -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 );
 

base-commit: ada7fa3491668bbcf1afe525057c470903625d26

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Andrew Cooper

This was missed, but necessary to fix in order to

You probably meant to write a bit more.

"This was missed, but necessary to fix in order to add amd.c to the set of scanned files"

With that, or something similar,

Quoted 10 lines
Fixes 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")

---
CC: Alejandro Vallejo <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Teddy Astie <[email protected]>

Found by an AI review looking over recent commits into staging.

I didn't notice this (for me) compiled out hunk

Quoted 19 lines
---
 xen/arch/x86/cpu/amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/cpu/amd.c +1 -1
index ff9fc0689f3a..8fd0b675161e 100644
@@ -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 );
 

base-commit: ada7fa3491668bbcf1afe525057c470903625d26