From nobody Sun May 12 10:55:42 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 1708679255485550.839120176309; Fri, 23 Feb 2024 01:07:35 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.684684.1064687 (Exim 4.92) (envelope-from ) id 1rdRWX-00086s-Th; Fri, 23 Feb 2024 09:07:17 +0000 Received: by outflank-mailman (output) from mailman id 684684.1064687; Fri, 23 Feb 2024 09:07:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rdRWX-00086c-OX; Fri, 23 Feb 2024 09:07:17 +0000 Received: by outflank-mailman (input) for mailman id 684684; Fri, 23 Feb 2024 09:07:16 +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 1rdRWW-00083u-In for xen-devel@lists.xenproject.org; Fri, 23 Feb 2024 09:07:16 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ef75a4a9-d22a-11ee-98f5-efadbce2ee36; Fri, 23 Feb 2024 10:07:14 +0100 (CET) Received: from Dell.bugsneg.com (unknown [37.161.242.66]) by support.bugseng.com (Postfix) with ESMTPSA id 9416F4EE0741; Fri, 23 Feb 2024 10:07:13 +0100 (CET) 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: ef75a4a9-d22a-11ee-98f5-efadbce2ee36 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: fully deviate MISRA C:2012 Rules 5.7 and 18.7 Date: Fri, 23 Feb 2024 10:06:59 +0100 Message-Id: <1fee04ad07b03c13c44f66a20c4ee70737069650.1708677243.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: 1708679256682100001 Content-Type: text/plain; charset="utf-8" Update ECLAIR configuration to fully deviate Rules 5.7 and 18.7 as agreed during MISRA meeetings. Signed-off-by: Federico Serafini Reviewed-by: Stefano Stabellini --- automation/eclair_analysis/ECLAIR/deviations.ecl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/= eclair_analysis/ECLAIR/deviations.ecl index fd32ff8a9c..02eae39786 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -107,6 +107,11 @@ number of guest paging levels." -config=3DMC3R1.R5.6,reports+=3D{deliberate,"any_area(any_loc(file(adopted= _r5_6)))"} -doc_end =20 +-doc_begin=3D"The project intentionally reuses tag names in order to have = identifiers matching the applicable external specifications as well as esta= blished internal conventions. +As there is little possibility for developer confusion not resulting into = compilation errors, the risk of renaming outweighs the potential advantages= of compliance." +-config=3DMC3R1.R5.7,reports+=3D{deliberate,"any()"} +-doc_end + # # Series 7. # @@ -373,6 +378,15 @@ explicit comment indicating the fallthrough intention = is present." -config=3DMC3R1.R16.3,reports+=3D{safe, "any_area(end_loc(any_exp(text(^(?= s).*/\\* [fF]all ?through.? \\*/.*$,0..1))))"} -doc_end =20 +# +# Series 18. +# + +-doc_begin=3D"Flexible array members are deliberately used and XEN develop= ers are aware of the dangers related to them: +unexpected result when the structure is given as argument to a sizeof() op= erator and the truncation in assignment between structures." +-config=3DMC3R1.R18.7,reports+=3D{deliberate, "any()"} +-doc_end + # # Series 20. # --=20 2.34.1 From nobody Sun May 12 10:55:42 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 170867925416791.49318387602875; Fri, 23 Feb 2024 01:07:34 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.684685.1064702 (Exim 4.92) (envelope-from ) id 1rdRWZ-000061-3X; Fri, 23 Feb 2024 09:07:19 +0000 Received: by outflank-mailman (output) from mailman id 684685.1064702; Fri, 23 Feb 2024 09:07:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rdRWY-00005s-Vg; Fri, 23 Feb 2024 09:07:18 +0000 Received: by outflank-mailman (input) for mailman id 684685; Fri, 23 Feb 2024 09:07:17 +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 1rdRWX-00083u-Im for xen-devel@lists.xenproject.org; Fri, 23 Feb 2024 09:07:17 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f03a5837-d22a-11ee-98f5-efadbce2ee36; Fri, 23 Feb 2024 10:07:15 +0100 (CET) Received: from Dell.bugsneg.com (unknown [37.161.242.66]) by support.bugseng.com (Postfix) with ESMTPSA id C26024EE0C8A; Fri, 23 Feb 2024 10:07:14 +0100 (CET) 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: f03a5837-d22a-11ee-98f5-efadbce2ee36 From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Simone Ballarin , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH 2/2] automation/eclair: tag MISRA C:2012 Rule 8.2 as clean Date: Fri, 23 Feb 2024 10:07:00 +0100 Message-Id: <59db8ce679a2ab46b23b39e8f1591cd9fc1c9218.1708677243.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: 1708679254486100003 Content-Type: text/plain; charset="utf-8" Update ECLAIR configuration to consider Rule 8.2 as clean. Signed-off-by: Federico Serafini Acked-by: Stefano Stabellini --- automation/eclair_analysis/ECLAIR/tagging.ecl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/eclair_analysis/ECLAIR/tagging.ecl b/automation/ecl= air_analysis/ECLAIR/tagging.ecl index 900c532196..a1dea32b21 100644 --- a/automation/eclair_analysis/ECLAIR/tagging.ecl +++ b/automation/eclair_analysis/ECLAIR/tagging.ecl @@ -30,7 +30,7 @@ =20 -doc_begin=3D"Clean guidelines: new violations for these guidelines are no= t accepted." =20 --service_selector=3D{clean_guidelines_common,"MC3R1.D1.1||MC3R1.D2.1||MC3R= 1.D4.11||MC3R1.D4.14||MC3R1.R1.1||MC3R1.R1.3||MC3R1.R1.4||MC3R1.R2.2||MC3R1= .R3.1||MC3R1.R3.2||MC3R1.R4.1||MC3R1.R4.2||MC3R1.R5.1||MC3R1.R5.2||MC3R1.R5= .4||MC3R1.R5.6||MC3R1.R6.1||MC3R1.R6.2||MC3R1.R7.1||MC3R1.R8.1||MC3R1.R8.5|= |MC3R1.R8.6||MC3R1.R8.8||MC3R1.R8.10||MC3R1.R8.12||MC3R1.R8.14||MC3R1.R9.2|= |MC3R1.R9.4||MC3R1.R9.5||MC3R1.R12.5||MC3R1.R17.3||MC3R1.R17.4||MC3R1.R17.6= ||MC3R1.R20.13||MC3R1.R20.14||MC3R1.R21.13||MC3R1.R21.19||MC3R1.R21.21||MC3= R1.R22.2||MC3R1.R22.4||MC3R1.R22.5||MC3R1.R22.6" +-service_selector=3D{clean_guidelines_common,"MC3R1.D1.1||MC3R1.D2.1||MC3R= 1.D4.11||MC3R1.D4.14||MC3R1.R1.1||MC3R1.R1.3||MC3R1.R1.4||MC3R1.R2.2||MC3R1= .R3.1||MC3R1.R3.2||MC3R1.R4.1||MC3R1.R4.2||MC3R1.R5.1||MC3R1.R5.2||MC3R1.R5= .4||MC3R1.R5.6||MC3R1.R6.1||MC3R1.R6.2||MC3R1.R7.1||MC3R1.R8.1||MC3R1.R8.2|= |MC3R1.R8.5||MC3R1.R8.6||MC3R1.R8.8||MC3R1.R8.10||MC3R1.R8.12||MC3R1.R8.14|= |MC3R1.R9.2||MC3R1.R9.4||MC3R1.R9.5||MC3R1.R12.5||MC3R1.R17.3||MC3R1.R17.4|= |MC3R1.R17.6||MC3R1.R20.13||MC3R1.R20.14||MC3R1.R21.13||MC3R1.R21.19||MC3R1= .R21.21||MC3R1.R22.2||MC3R1.R22.4||MC3R1.R22.5||MC3R1.R22.6" } =20 -setq=3Dtarget,getenv("XEN_TARGET_ARCH") --=20 2.34.1