From nobody Mon Feb 9 00:02:47 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; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1670624790; cv=none; d=zohomail.com; s=zohoarc; b=a4uNmzDHbcg0NK+o/VuaVBOtmF/7A3TNCOMP27XIga+rLIcHPcJ9HVw7IezqoHXRhfifTDxRut9exV04AJz2Ru88Tu8hwbGvUOWfdJHjjf85D2E0EnFY8FTJTMBKbhJMpLv4LGxdrDVQHWTdD7mHGmrh9BzXhjU9yaJewy1S2s0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670624790; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=gJIUm15dtos/kvJ3fy7HZGl/R4J/2X9Yju55MXC2y6s=; b=a69tNt4krLySm6mSRUpo7mFo0/k51YNWfsCZ03rnQahHkcHRanUHaL/FADNIDl48PGGK90uVfEhNaL5ogKbFoyIIvW04t2/ouv+kaXpZHV2ROuLETNBgQ2pZKQQXdA7DqHbrLNAnV1WOuTkCwR6mgoPpNKy5basO87BiAufoi+E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1670624790016430.7160601227142; Fri, 9 Dec 2022 14:26:30 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.458315.716221 (Exim 4.92) (envelope-from ) id 1p3lol-0004Pn-Cs; Fri, 09 Dec 2022 22:26:07 +0000 Received: by outflank-mailman (output) from mailman id 458315.716221; Fri, 09 Dec 2022 22:26:07 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1p3lol-0004Pg-8C; Fri, 09 Dec 2022 22:26:07 +0000 Received: by outflank-mailman (input) for mailman id 458315; Fri, 09 Dec 2022 22:26:05 +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 1p3loj-0004Pa-GM for xen-devel@lists.xenproject.org; Fri, 09 Dec 2022 22:26:05 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [2604:1380:4641:c500::1]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 76c1dac8-7810-11ed-8fd2-01056ac49cbb; Fri, 09 Dec 2022 23:26:04 +0100 (CET) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2AE806235F; Fri, 9 Dec 2022 22:26:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0CE6C433D2; Fri, 9 Dec 2022 22:25:59 +0000 (UTC) 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: 76c1dac8-7810-11ed-8fd2-01056ac49cbb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670624761; bh=Cy/cEwU8tKy+Z8VSGYn/Z8dnVOdEpC8SjqUidsTDLN8=; h=From:To:Cc:Subject:Date:From; b=ixmxKJaWzcQuDkw85v447u3lGQbF5wPuXeN8fWfUsPRDyjht5foAdGTI1nv0Yj7td CMXrdKwX7tacu6ulm8IU7aaNE+Rui0SIMjiMTB4/ZCVzKn4Wew+tao7ZyBw9C1S91s vYbvcJuDtm1Xt5JSMvajv+qT0OP8RgbL/6Vch+XU6LAL2irpOKqeJgdcSd6eFTAGJX KDlnWAsJvQOG5dIWeDWWxril0Dp2vFWIZsWIk1sNSsUkf5XKJL39zKv3rhCZFEBdiW 7rJ9JkW+ETO/Qe4BulkH0rTvk2m4tVp2i0VZPHeiCNCMjo4ttTgR6P7VOSuHIZ/pjU di8/demelTfTg== From: Stefano Stabellini To: julien@xen.org, bertrand.marquis@arm.com Cc: sstabellini@kernel.org, Volodymyr_Babchuk@epam.com, xen-devel@lists.xenproject.org, jbeulich@suse.com, Luca.Fancellu@arm.com, Stefano Stabellini Subject: [PATCH v2] xen/arm: efi-boot misra rule 4.1 fix Date: Fri, 9 Dec 2022 14:25:52 -0800 Message-Id: <20221209222552.3353993-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1670624790764100001 Content-Type: text/plain; charset="utf-8" We have 3 violations of MISRA C Rule 4.1 ("Octal and hexadecimal escape sequences shall be terminated") in xen/arch/arm/efi/efi-boot.h. Fix them and take the opportunity to declare them as static const __initconst and improve the style. Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall --- Changes in v2: - add static const __initconst - add blank newline for style --- xen/arch/arm/efi/efi-boot.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/efi/efi-boot.h b/xen/arch/arm/efi/efi-boot.h index 43a836c3a7..223db0c4da 100644 --- a/xen/arch/arm/efi/efi-boot.h +++ b/xen/arch/arm/efi/efi-boot.h @@ -542,7 +542,9 @@ static void __init efi_arch_handle_module(const struct = file *file, =20 if ( file =3D=3D &ramdisk ) { - char ramdisk_compat[] =3D "multiboot,ramdisk\0multiboot,module"; + static const char __initconst ramdisk_compat[] =3D "multiboot,ramd= isk\0" + "multiboot,module= "; + node =3D fdt_add_subnode(fdt, chosen, "ramdisk"); if ( node < 0 ) blexit(L"Unable to add ramdisk FDT node."); @@ -555,7 +557,9 @@ static void __init efi_arch_handle_module(const struct = file *file, } else if ( file =3D=3D &xsm ) { - char xsm_compat[] =3D "xen,xsm-policy\0multiboot,module"; + static const char __initconst xsm_compat[] =3D "xen,xsm-policy\0" + "multiboot,module"; + node =3D fdt_add_subnode(fdt, chosen, "xsm"); if ( node < 0 ) blexit(L"Unable to add xsm FDT node."); @@ -568,7 +572,9 @@ static void __init efi_arch_handle_module(const struct = file *file, } else if ( file =3D=3D &kernel ) { - char kernel_compat[] =3D "multiboot,kernel\0multiboot,module"; + static const char __initconst kernel_compat[] =3D "multiboot,kerne= l\0" + "multiboot,module"; + node =3D fdt_add_subnode(fdt, chosen, "kernel"); if ( node < 0 ) blexit(L"Unable to add dom0 FDT node."); --=20 2.25.1