From nobody Sun May 19 02:38:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 171396105552312.175266438979747; Wed, 24 Apr 2024 05:17:35 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.711374.1111281 (Exim 4.92) (envelope-from ) id 1rzbYq-0000Ej-P6; Wed, 24 Apr 2024 12:17:16 +0000 Received: by outflank-mailman (output) from mailman id 711374.1111281; Wed, 24 Apr 2024 12:17:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzbYq-0000Ak-Ji; Wed, 24 Apr 2024 12:17:16 +0000 Received: by outflank-mailman (input) for mailman id 711374; Wed, 24 Apr 2024 12:12:01 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzbTl-0007vM-Ks for xen-devel@lists.xenproject.org; Wed, 24 Apr 2024 12:12:01 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id d9c9d17a-0233-11ef-b4bb-af5377834399; Wed, 24 Apr 2024 14:11:59 +0200 (CEST) Received: from LAPTOP-EFA9O91E.localdomain (host-79-60-221-62.business.telecomitalia.it [79.60.221.62]) by support.bugseng.com (Postfix) with ESMTPSA id 0A2E74EE073D; Wed, 24 Apr 2024 14:11:59 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d9c9d17a-0233-11ef-b4bb-af5377834399 From: Alessandro Zucchelli To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Alessandro Zucchelli , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [XEN PATCH 1/2] pci: add suffix 'U' to PCI_CONF_ADDRESS macro. Date: Wed, 24 Apr 2024 14:11:32 +0200 Message-Id: <10dc3a59085c801c91551625c036fcc9e5eb4729.1713956723.git.alessandro.zucchelli@bugseng.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1713961056834100004 This addresses violations of MISRA C:2012 Rule 7.2 which states as following: A =E2=80=9Cu=E2=80=9D or =E2=80=9CU=E2=80=9D suffix shall be app= lied to all integer constants that are represented in an unsigned type. No functional change. Signed-off-by: Alessandro Zucchelli Acked-by: Jan Beulich --- xen/arch/x86/x86_64/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_64/pci.c b/xen/arch/x86/x86_64/pci.c index aad1c3f7cf..8d33429103 100644 --- a/xen/arch/x86/x86_64/pci.c +++ b/xen/arch/x86/x86_64/pci.c @@ -9,7 +9,7 @@ #include =20 #define PCI_CONF_ADDRESS(sbdf, reg) \ - (0x80000000 | ((sbdf).bdf << 8) | ((reg) & ~3)) + (0x80000000U | ((sbdf).bdf << 8) | ((reg) & ~3)) =20 uint8_t pci_conf_read8(pci_sbdf_t sbdf, unsigned int reg) { --=20 2.25.1 From nobody Sun May 19 02:38:13 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1713961054506810.5816638448214; Wed, 24 Apr 2024 05:17:34 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.711373.1111277 (Exim 4.92) (envelope-from ) id 1rzbYq-00007i-Ii; Wed, 24 Apr 2024 12:17:16 +0000 Received: by outflank-mailman (output) from mailman id 711373.1111277; Wed, 24 Apr 2024 12:17:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzbYq-00006V-Cx; Wed, 24 Apr 2024 12:17:16 +0000 Received: by outflank-mailman (input) for mailman id 711373; Wed, 24 Apr 2024 12:12:01 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rzbTl-0007vC-89 for xen-devel@lists.xenproject.org; Wed, 24 Apr 2024 12:12:01 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id da06f5eb-0233-11ef-909a-e314d9c70b13; Wed, 24 Apr 2024 14:11:59 +0200 (CEST) Received: from LAPTOP-EFA9O91E.localdomain (host-79-60-221-62.business.telecomitalia.it [79.60.221.62]) by support.bugseng.com (Postfix) with ESMTPSA id 51EB44EE073F; Wed, 24 Apr 2024 14:11:59 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: da06f5eb-0233-11ef-909a-e314d9c70b13 From: Alessandro Zucchelli To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Alessandro Zucchelli , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [XEN PATCH 2/2] x86/msr: add suffix 'U' to MSR_AMD_CSTATE_CFG macro. Date: Wed, 24 Apr 2024 14:11:33 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1713961055256100001 This addresses violations of MISRA C:2012 Rule 7.2 which states as following: A =E2=80=9Cu=E2=80=9D or =E2=80=9CU=E2=80=9D suffix shall be app= lied to all integer constants that are represented in an unsigned type. No functional change. Signed-off-by: Alessandro Zucchelli Acked-by: Jan Beulich --- 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/as= m/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 @@ =20 #define MSR_VIRT_SPEC_CTRL _AC(0xc001011f, U) /* Layout m= atches MSR_SPEC_CTRL */ =20 -#define MSR_AMD_CSTATE_CFG 0xc0010296 +#define MSR_AMD_CSTATE_CFG 0xc0010296U =20 /* * Legacy MSR constants in need of cleanup. No new MSRs below this commen= t. --=20 2.25.1