From patchwork Wed Mar 1 09:53:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Fancellu X-Patchwork-Id: 13155725 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 75FABC64ED6 for ; Wed, 1 Mar 2023 09:53:56 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.503938.776371 (Exim 4.92) (envelope-from ) id 1pXJ9V-0007nj-IZ; Wed, 01 Mar 2023 09:53:37 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 503938.776371; Wed, 01 Mar 2023 09:53:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pXJ9V-0007mV-DX; Wed, 01 Mar 2023 09:53:37 +0000 Received: by outflank-mailman (input) for mailman id 503938; Wed, 01 Mar 2023 09:53:36 +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 1pXJ9U-0007ZN-GF for xen-devel@lists.xenproject.org; Wed, 01 Mar 2023 09:53:36 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id ee00b70f-b816-11ed-a550-8520e6686977; Wed, 01 Mar 2023 10:53:34 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 21648152B; Wed, 1 Mar 2023 01:54:17 -0800 (PST) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.195.25]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 96D4C3F881; Wed, 1 Mar 2023 01:53:32 -0800 (PST) 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: ee00b70f-b816-11ed-a550-8520e6686977 From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, wei.chen@arm.com, Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Michal Orzel Subject: [PATCH v2 2/2] xen/misra: add entries to exclude-list.json Date: Wed, 1 Mar 2023 09:53:20 +0000 Message-Id: <20230301095320.264301-3-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301095320.264301-1-luca.fancellu@arm.com> References: <20230301095320.264301-1-luca.fancellu@arm.com> MIME-Version: 1.0 Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Luca Fancellu Signed-off-by: Michal Orzel Reviewed-by: Stefano Stabellini --- This list is originated from Michal's work here: https://patchwork.kernel.org/project/xen-devel/patch/20221116092032.4423-1-michal.orzel@amd.com/#25123099 and changed to adapt to this task. Changes from v1: - updated list with new files from Stefano - add comment field for every entry (Jan) --- --- docs/misra/exclude-list.json | 199 ++++++++++++++++++++++++++++++++++- 1 file changed, 198 insertions(+), 1 deletion(-) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index 1fb0ac67747b..ca1e2dd678ff 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -1,4 +1,201 @@ { "version": "1.0", - "content": [] + "content": [ + { + "rel_path": "arch/arm/arm64/cpufeature.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/arm/arm64/insn.c", + "comment": "Imported on Linux, ignore for now" + }, + { + "rel_path": "arch/arm/arm64/lib/find_next_bit.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/acpi/boot.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/acpi/cpu_idle.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/acpi/cpufreq/cpufreq.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/acpi/cpuidle_menu.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/acpi/lib.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/amd.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/centaur.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/common.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/hygon.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/intel.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/intel_cacheinfo.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/mcheck/non-fatal.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/mtrr/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/cpu/mwait-idle.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/delay.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/dmi_scan.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/mpparse.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/srat.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/time.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "arch/x86/x86_64/mmconf-fam10h.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/bitmap.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/bunzip2.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/earlycpio.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/inflate.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/libfdt/*", + "comment": "External library" + }, + { + "rel_path": "common/livepatch_elf.c", + "comment": "Not in scope initially as it generates many violations and it is not enabled in safety configurations" + }, + { + "rel_path": "common/lzo.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/lz4/decompress.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/radix-tree.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/ubsan/ubsan.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/un*.c", + "comment": "unlz4.c implementation by Yann Collet, the others un* are from Linux, ignore for now" + }, + { + "rel_path": "common/xz/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "common/zstd/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "crypto/*", + "comment": "Origin is external and documented in crypto/README.source" + }, + { + "rel_path": "drivers/acpi/apei/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/hwregs.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/numa.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/osl.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/tables.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/tables/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/acpi/utilities/*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "drivers/video/font_*", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "lib/list-sort.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "lib/rbtree.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "lib/xxhash*.c", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "xsm/flask/*", + "comment": "Not in scope initially as it generates many violations and it is not enabled in safety configurations" + } + ] }