From patchwork Thu Feb 8 07:55:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Vetrini X-Patchwork-Id: 13549402 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5151C4828F for ; Thu, 8 Feb 2024 07:56:08 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.678014.1055021 (Exim 4.92) (envelope-from ) id 1rXzGF-0001lM-Rr; Thu, 08 Feb 2024 07:55:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 678014.1055021; Thu, 08 Feb 2024 07:55:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rXzGF-0001lF-OL; Thu, 08 Feb 2024 07:55:55 +0000 Received: by outflank-mailman (input) for mailman id 678014; Thu, 08 Feb 2024 07:55:54 +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 1rXzGE-0001l9-Lo for xen-devel@lists.xenproject.org; Thu, 08 Feb 2024 07:55:54 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 7b8a708d-c657-11ee-8a4a-1f161083a0e0; Thu, 08 Feb 2024 08:55:53 +0100 (CET) Received: from nico.bugseng.com (unknown [147.123.100.131]) by support.bugseng.com (Postfix) with ESMTPSA id 4C9114EE0739; Thu, 8 Feb 2024 08:55:51 +0100 (CET) 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: 7b8a708d-c657-11ee-8a4a-1f161083a0e0 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, bertrand.marquis@arm.com, julien@xen.org, Nicola Vetrini , George Dunlap , Wei Liu Subject: [XEN PATCH] docs/misra: add x86_64 and arm64 asm-offset.c to exclude-list Date: Thu, 8 Feb 2024 08:55:47 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 These two files contain several deliberate violations of MISRA C rules and they are not linked in the final Xen binary, therefore they can be exempted from MISRA compliance. No functional change. Signed-off-by: Nicola Vetrini Acked-by: Julien Grall --- Since the exclude list only contains arm64 and x86 files I reasoned that introducing an entry that would match all architectures would not be desirable (e.g., arm32). I'm happy to change that, though. --- docs/misra/exclude-list.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index 7971d0e70f5b..bd05478e03e9 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -17,6 +17,10 @@ "rel_path": "arch/arm/arm64/lib/find_next_bit.c", "comment": "Imported from Linux, ignore for now" }, + { + "rel_path": "arch/arm/arm64/asm-offsets.c", + "comment": "The resulting code is not included in the final Xen binary, ignore for now" + }, { "rel_path": "arch/x86/acpi/boot.c", "comment": "Imported from Linux, ignore for now" @@ -97,6 +101,10 @@ "rel_path": "arch/x86/x86_64/mmconf-fam10h.c", "comment": "Imported from Linux, ignore for now" }, + { + "rel_path": "arch/x86/x86_64/asm-offsets.c", + "comment": "The resulting code is not included in the final Xen binary, ignore for now" + }, { "rel_path": "arch/x86/efi/check.c", "comment": "The resulting code is not included in the final Xen binary, ignore for now"