All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/amd: (More) use of U suffixes on integer constants
@ 2026-11-23 15:48 Andrew Cooper
  2026-11-23 16:14 ` Alejandro Vallejo
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cooper @ 2026-11-23 15:48 UTC (permalink / raw)
  To: Xen-devel
  Cc: Andrew Cooper, Alejandro Vallejo, Jan Beulich,
	Roger Pau Monné, Teddy Astie

This was missed, but necessary to fix in order to

Fixes: 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Alejandro Vallejo <alejandro.garciavallejo@amd.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>

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(-)

diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c
index ff9fc0689f3a..8fd0b675161e 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 );
 

base-commit: ada7fa3491668bbcf1afe525057c470903625d26
-- 
2.39.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/amd: (More) use of U suffixes on integer constants
  2026-11-23 15:48 [PATCH] x86/amd: (More) use of U suffixes on integer constants Andrew Cooper
@ 2026-11-23 16:14 ` Alejandro Vallejo
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Vallejo @ 2026-11-23 16:14 UTC (permalink / raw)
  To: Andrew Cooper, Xen-devel; +Cc: Jan Beulich, Roger Pau Monné, Teddy Astie

On Mon Nov 23, 2026 at 4:48 PM CET, Andrew Cooper wrote:
> 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,

  Reviewed-by: Alejandro Vallejo <alejandro.garciavallejo@amd.com>

>
> Fixes: 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Alejandro Vallejo <alejandro.garciavallejo@amd.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Roger Pau Monné <roger@xenproject.org>
> CC: Teddy Astie <teddy.astie@vates.tech>
>
> Found by an AI review looking over recent commits into staging.

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

> ---
>  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 ff9fc0689f3a..8fd0b675161e 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 );
>  
>
> base-commit: ada7fa3491668bbcf1afe525057c470903625d26



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-23 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 15:48 [PATCH] x86/amd: (More) use of U suffixes on integer constants Andrew Cooper
2026-11-23 16:14 ` Alejandro Vallejo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.