[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/amd: (More) use of U suffixes on integer constants
- To: "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, "Xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Alejandro Vallejo" <alejandro.garciavallejo@xxxxxxx>
- Date: Mon, 23 Nov 2026 17:14:27 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aO0PYDmVjxoRk2WttyohG69ZVL+77WLBKKYTjNinLB8=; b=s/Ub8htnGfQdd225WsyNBFGnKdG8+q9aBilI9oIrmFb89UpKSM+NGC2WTrRlSVhfjM4FuHTLrPzj5QyK3ErEKu2nrJhbs+8n75uURsYCWoDoCE52r6yqDEo8LRIN5v3HZSusUH6TJ6/ZdOfkjyoj6lZo2aix5GB6QDvJWAWbpJ4DJhB242LoneeHetDmWjhDfUkFoG77pZOAJynObSNueyV9k5Thi587lOvzrOBK/1EV3g00EbeN3J5BRSqPD3dBV2fXa824dVHKvEWzPLjtHjNeeMvJv+tKopURk31SgtS2C2EuSX6GqmULiK1sCScztAJxv/UGR9OY1i2IfmFVFg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tOA097V7tEv3ci92QyUWMFakh/HsGTl2LekytrVOJhPdcjO7Wy/QBADsUXp9avV6hhzty8YMseP1Iu3eBn+J4rqA1mRH0HI/OG1pwWrO6VenfyRGBGncKz9MO+DUhhDsHv9U9aojMl4hOHewCMfRJPdmct1deGwemNJVWUiNwjYbzT0QM6UJmbejxXqaKakIJkqLvzKK2eLCDDl5urZtc3atyjmv4yCrWFRIKsPs3GNGMmdwF7IN/bfw0MV8O8AJv4tjXPrCGx6iF2Iui/FM9PnMavj1rpnBvH2zhsx5WYMEnPEgPbD9Qfb0w1RvtKPswiHWLyzaIcu/lQFYVEnTFg==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-Id:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: "Jan Beulich" <jbeulich@xxxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, "Teddy Astie" <teddy.astie@xxxxxxxxxx>
- Delivery-date: Mon, 23 Nov 2026 16:14:50 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxx>
>
> Fixes: 92ddcda17fb0 ("x86/cpu: Use U suffixes on integer constants")
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> ---
> CC: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
> CC: Jan Beulich <jbeulich@xxxxxxxx>
> CC: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
> CC: Teddy Astie <teddy.astie@xxxxxxxxxx>
>
> 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
|