From nobody Tue May 14 09:25:08 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 1692265429498928.6042198675124; Thu, 17 Aug 2023 02:43:49 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.585227.916279 (Exim 4.92) (envelope-from ) id 1qWZX2-00066K-Rf; Thu, 17 Aug 2023 09:43:08 +0000 Received: by outflank-mailman (output) from mailman id 585227.916279; Thu, 17 Aug 2023 09:43:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qWZX2-00066D-Ne; Thu, 17 Aug 2023 09:43:08 +0000 Received: by outflank-mailman (input) for mailman id 585227; Thu, 17 Aug 2023 09:43:07 +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 1qWZX1-00065w-6G for xen-devel@lists.xenproject.org; Thu, 17 Aug 2023 09:43:07 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 77923730-3ce2-11ee-8779-cb3800f73035; Thu, 17 Aug 2023 11:43:06 +0200 (CEST) Received: from Dell.homenet.telecomitalia.it (host-79-55-201-67.retail.telecomitalia.it [79.55.201.67]) by support.bugseng.com (Postfix) with ESMTPSA id D00F44EE0739; Thu, 17 Aug 2023 11:43:05 +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: 77923730-3ce2-11ee-8779-cb3800f73035 From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Simone Ballarin , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH 1/2] automation/eclair: update configuration Date: Thu, 17 Aug 2023 11:42:55 +0200 Message-Id: <577236484d748d2941f6fc07b7e4fc3fa7501e95.1692261955.git.federico.serafini@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: 1692265430593100003 Content-Type: text/plain; charset="utf-8" Mark more files as "adopted" and configure Rule 8.3 in order to: - exclude violations involving the type ret_t; - exclude violations involving both an internal and an external file, thus avoiding touching adopted code. Signed-off-by: Federico Serafini Acked-by: Stefano Stabellini --- .../eclair_analysis/ECLAIR/deviations.ecl | 29 +++++++++++++++++++ .../eclair_analysis/ECLAIR/out_of_scope.ecl | 3 ++ 2 files changed, 32 insertions(+) diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/= eclair_analysis/ECLAIR/deviations.ecl index 696618b59e..d8170106b4 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -175,6 +175,35 @@ const-qualified." -config=3DMC3R1.R8.2,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _r8_2)))"} -doc_end =20 +-doc_begin=3D"The type ret_t is deliberately used and defined as int or lo= ng depending on the architecture." +-config=3DMC3R1.R8.3,reports+=3D{deliberate,"any_area(any_loc(text(^.*ret_= t.*$)))"} +-doc_end + +-doc_begin=3D"The following files are imported from Linux and decompress.h= defines a unique and documented interface towards all the (adopted) decomp= ress functions." +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/bunzip2\\.c$"} +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/unlz4\\.c$"} +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/unlzma\\.c$"} +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/unlzo\\.c$"} +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/unxz\\.c$"} +-file_tag+=3D{adopted_decompress_r8_3,"^xen/common/unzstd\\.c$"} +-config=3DMC3R1.R8.3,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _decompress_r8_3)))&&any_area(any_loc(file(^xen/include/xen/decompress\\.h$= )))"} +-doc_end + +-doc_begin=3D"The following file is imported from Linux: ignore for now." +-file_tag+=3D{adopted_time_r8_3,"^xen/arch/x86/time\\.c$"} +-config=3DMC3R1.R8.3,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _time_r8_3)))&&(any_area(any_loc(file(^xen/include/xen/time\\.h$)))||any_ar= ea(any_loc(file(^xen/arch/x86/include/asm/setup\\.h$))))"} +-doc_end + +-doc_begin=3D"The following file is imported from Linux: ignore for now." +-file_tag+=3D{adopted_cpu_idle_r8_3,"^xen/arch/x86/acpi/cpu_idle\\.c$"} +-config=3DMC3R1.R8.3,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _cpu_idle_r8_3)))&&any_area(any_loc(file(^xen/include/xen/pmstat\\.h$)))"} +-doc_end + +-doc_begin=3D"The following file is imported from Linux: ignore for now." +-file_tag+=3D{adopted_mpparse_r8_3,"^xen/arch/x86/mpparse\\.c$"} +-config=3DMC3R1.R8.3,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _mpparse_r8_3)))&&any_area(any_loc(file(^xen/arch/x86/include/asm/mpspec\\.= h$)))"} +-doc_end + -doc_begin=3D"The following variables are compiled in multiple translation= units belonging to different executables and therefore are safe." -config=3DMC3R1.R8.6,declarations+=3D{safe, "name(current_stack_pointer||b= search||sort)"} diff --git a/automation/eclair_analysis/ECLAIR/out_of_scope.ecl b/automatio= n/eclair_analysis/ECLAIR/out_of_scope.ecl index 44db6997b5..e1ec4a607c 100644 --- a/automation/eclair_analysis/ECLAIR/out_of_scope.ecl +++ b/automation/eclair_analysis/ECLAIR/out_of_scope.ecl @@ -22,6 +22,9 @@ -file_tag+=3D{adopted,"^xen/drivers/acpi/numa\\.c$"} -file_tag+=3D{adopted,"^xen/drivers/acpi/osl\\.c$"} -file_tag+=3D{adopted,"^xen/drivers/acpi/tables\\.c$"} +-file_tag+=3D{adopted,"^xen/include/xen/acpi\\.h$"} +-file_tag+=3D{adopted,"^xen/include/acpi/acpiosxf\\.h$"} +-file_tag+=3D{adopted,"^xen/include/acpi/acpixf\\.h$"} -file_tag+=3D{adopted,"^xen/lib/list-sort\\.c$"} -file_tag+=3D{adopted,"^xen/lib/rbtree\\.c$"} -file_tag+=3D{adopted,"^xen/lib/xxhash.*\\.c$"} --=20 2.34.1 From nobody Tue May 14 09:25:08 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 1692265423922118.1447282320704; Thu, 17 Aug 2023 02:43:43 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.585228.916284 (Exim 4.92) (envelope-from ) id 1qWZX3-00069X-2W; Thu, 17 Aug 2023 09:43:09 +0000 Received: by outflank-mailman (output) from mailman id 585228.916284; Thu, 17 Aug 2023 09:43:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qWZX2-000686-UH; Thu, 17 Aug 2023 09:43:08 +0000 Received: by outflank-mailman (input) for mailman id 585228; Thu, 17 Aug 2023 09:43:07 +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 1qWZX1-00065w-RS for xen-devel@lists.xenproject.org; Thu, 17 Aug 2023 09:43:07 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 77cdc449-3ce2-11ee-8779-cb3800f73035; Thu, 17 Aug 2023 11:43:06 +0200 (CEST) Received: from Dell.homenet.telecomitalia.it (host-79-55-201-67.retail.telecomitalia.it [79.55.201.67]) by support.bugseng.com (Postfix) with ESMTPSA id 273854EE073C; Thu, 17 Aug 2023 11:43:06 +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: 77cdc449-3ce2-11ee-8779-cb3800f73035 From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [XEN PATCH 2/2] misra: add more entires to exclude-list.json Date: Thu, 17 Aug 2023 11:42:56 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1692265425682100001 Content-Type: text/plain; charset="utf-8" Add entries to the exclude-list.json for those files that need to be excluded from the analysis scan. Signed-off-by: Federico Serafini Reviewed-by: Federico Serafini --- docs/misra/exclude-list.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index ca1e2dd678..3be9421e4d 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -181,6 +181,18 @@ "rel_path": "drivers/video/font_*", "comment": "Imported from Linux, ignore for now" }, + { + "rel_path": "include/acpi/acpiosxf.h", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "include/acpi/acpixf.h", + "comment": "Imported from Linux, ignore for now" + }, + { + "rel_path": "include/xen/acpi.h", + "comment": "Imported from Linux, ignore for now" + }, { "rel_path": "lib/list-sort.c", "comment": "Imported from Linux, ignore for now" --=20 2.34.1