From nobody Mon Feb 9 16:26:23 2026 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 1698157926649758.8746900217694; Tue, 24 Oct 2023 07:32:06 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.622034.969123 (Exim 4.92) (envelope-from ) id 1qvIRe-0005ra-2T; Tue, 24 Oct 2023 14:31:46 +0000 Received: by outflank-mailman (output) from mailman id 622034.969123; Tue, 24 Oct 2023 14:31:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qvIRd-0005qG-U3; Tue, 24 Oct 2023 14:31:45 +0000 Received: by outflank-mailman (input) for mailman id 622034; Tue, 24 Oct 2023 14:31:45 +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 1qvIRd-0005kh-1l for xen-devel@lists.xenproject.org; Tue, 24 Oct 2023 14:31:45 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0e27b213-727a-11ee-98d5-6d05b1d4d9a1; Tue, 24 Oct 2023 16:31:44 +0200 (CEST) Received: from nico.bugseng.com (unknown [147.123.100.131]) by support.bugseng.com (Postfix) with ESMTPSA id 296784EE0746; Tue, 24 Oct 2023 16:31:43 +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: 0e27b213-727a-11ee-98d5-6d05b1d4d9a1 From: Nicola Vetrini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, michal.orzel@amd.com, xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com, consulting@bugseng.com, jbeulich@suse.com, andrew.cooper3@citrix.com, roger.pau@citrix.com, Nicola Vetrini , Wei Liu Subject: [RFC 1/4] x86/ioemul: address MISRA C:2012 Rule 9.3 Date: Tue, 24 Oct 2023 16:31:35 +0200 Message-Id: <76c9f78179a8bb5b4f99b34f163933394f79066c.1698155925.git.nicola.vetrini@bugseng.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1698157927765100001 Content-Type: text/plain; charset="utf-8" Partially explicitly initalized .matches arrays result in violations of Rule 9.3; this is resolved by using designated initializers, which is permitted by the Rule. Mechanical changes. Signed-off-by: Nicola Vetrini --- xen/arch/x86/ioport_emulate.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/xen/arch/x86/ioport_emulate.c b/xen/arch/x86/ioport_emulate.c index 6caeb3d470ce..4f8d5136746d 100644 --- a/xen/arch/x86/ioport_emulate.c +++ b/xen/arch/x86/ioport_emulate.c @@ -44,57 +44,57 @@ static const struct dmi_system_id __initconstrel ioport= _quirks_tbl[] =3D { { .ident =3D "HP ProLiant DL3xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL3"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL3"), }, }, { .ident =3D "HP ProLiant DL5xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL5"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL5"), }, }, { .ident =3D "HP ProLiant DL7xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL7"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant DL7"), }, }, { .ident =3D "HP ProLiant ML3xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML3"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML3"), }, }, { .ident =3D "HP ProLiant ML5xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML5"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant ML5"), }, }, { .ident =3D "HP ProLiant BL2xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL2"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL2"), }, }, { .ident =3D "HP ProLiant BL4xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL4"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL4"), }, }, { .ident =3D "HP ProLiant BL6xx", .matches =3D { - DMI_MATCH(DMI_BIOS_VENDOR, "HP"), - DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL6"), + [0] =3D DMI_MATCH(DMI_BIOS_VENDOR, "HP"), + [1] =3D DMI_MATCH(DMI_PRODUCT_NAME, "ProLiant BL6"), }, }, { } -- 2.34.1