From nobody Tue May 21 21:51:28 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 1699615456951818.1223526000584; Fri, 10 Nov 2023 03:24:16 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.630175.982873 (Exim 4.92) (envelope-from ) id 1r1Pbn-0004HD-AS; Fri, 10 Nov 2023 11:23:31 +0000 Received: by outflank-mailman (output) from mailman id 630175.982873; Fri, 10 Nov 2023 11:23:31 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r1Pbn-0004H6-7l; Fri, 10 Nov 2023 11:23:31 +0000 Received: by outflank-mailman (input) for mailman id 630175; Fri, 10 Nov 2023 11:23:30 +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 1r1Pbm-0004Fi-0x for xen-devel@lists.xenproject.org; Fri, 10 Nov 2023 11:23:30 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 92625068-7fbb-11ee-98da-6d05b1d4d9a1; Fri, 10 Nov 2023 12:23:28 +0100 (CET) Received: from Dell.bugseng.com (unknown [37.162.14.154]) by support.bugseng.com (Postfix) with ESMTPSA id BD4E54EE073C; Fri, 10 Nov 2023 12:23:27 +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: 92625068-7fbb-11ee-98da-6d05b1d4d9a1 From: Federico Serafini To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Federico Serafini , Simone Ballarin , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH] automation/eclair: add a deviation for MISRA C:2012 Rule 8.6 Date: Fri, 10 Nov 2023 12:23:21 +0100 Message-Id: <4de6c01f8af987750e578b3d5733dcd4ca536a9b.1699615143.git.federico.serafini@bugseng.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1699615459262100001 Content-Type: text/plain; charset="utf-8" Update ECLAIR configuration to take into account the standard search procedure adopted by Unix linkers. Signed-off-by: Federico Serafini --- automation/eclair_analysis/ECLAIR/deviations.ecl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/= eclair_analysis/ECLAIR/deviations.ecl index d8170106b4..43648232aa 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -214,6 +214,15 @@ definition is compiled-out or optimized-out by the com= piler)" -config=3DMC3R1.R8.6,reports+=3D{deliberate, "first_area(^.*has no definit= ion$)"} -doc_end =20 +-doc_begin=3D"For functions memcpy(), memmove() and memset(), if there are +multiple definitions, those belong to different archives and the behavior = of +linking is well defined by the toolchain: only one of the definitions will= be +linked in (the first that is encountered searching the archives in the ord= er +they appear on the command line)." +-config=3DMC3R1.R8.6,declarations+=3D{deliberate, "name(memcpy||memmove||m= emset)"} +-doc_end + + -doc_begin=3D"The gnu_inline attribute without static is deliberately allo= wed." -config=3DMC3R1.R8.10,declarations+=3D{deliberate,"property(gnu_inline)"} -doc_end --=20 2.34.1