From patchwork Tue Sep 10 14:15:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alessandro Zucchelli X-Patchwork-Id: 13798607 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 A4881ECE564 for ; Tue, 10 Sep 2024 14:18:36 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.795639.1205039 (Exim 4.92) (envelope-from ) id 1so1hF-0001X3-H6; Tue, 10 Sep 2024 14:18:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 795639.1205039; Tue, 10 Sep 2024 14:18:21 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1so1hF-0001Ww-Ee; Tue, 10 Sep 2024 14:18:21 +0000 Received: by outflank-mailman (input) for mailman id 795639; Tue, 10 Sep 2024 14:18:20 +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 1so1hD-0001Wq-LY for xen-devel@lists.xenproject.org; Tue, 10 Sep 2024 14:18:20 +0000 Received: from support.bugseng.com (mail.bugseng.com [162.55.131.47]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 861d0c22-6f7f-11ef-99a1-01e77a169b0f; Tue, 10 Sep 2024 16:18:17 +0200 (CEST) Received: from delta.bugseng.com.homenet.telecomitalia.it (host-87-1-204-86.retail.telecomitalia.it [87.1.204.86]) by support.bugseng.com (Postfix) with ESMTPSA id 415444EE07BC; Tue, 10 Sep 2024 16:18:16 +0200 (CEST) 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: 861d0c22-6f7f-11ef-99a1-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bugseng.com; s=mail; t=1725977896; bh=1J686XlCmw7EI4vldMSQWfospTYDyDQ6IgngvX1bksE=; h=From:To:Cc:Subject:Date:From; b=dWQFSmasAukhhgfQK+CtsAhHn0qciArgkN3nIfyc6q8Gk6aTXGjtu1MtN7VoAjxTt Pe5vBHjHy8QPIVYEjEpP2cIBroEDKOLR2dfVbOkNBbZ7Ly7RSnJRinogRhfOUajDy/ etFeGfVKVlB6O9sp5/uvy42ySAFt01GfNiukECvhmP4wT++eb403E6Zw/NFGu2dnZr gqnCfh0t8ulQShAOJVVo2Y7YEW5gHzERMIeCAH48RZFBvCC4HRwwiI6MMnFUr8m9/N it54RkePznTczncGeQr/laq86uCAGOMM659J75jf624h1yKZPdCI4y7r6mByVvUlig 4EVtCWdt+jT/A== From: Alessandro Zucchelli To: xen-devel@lists.xenproject.org Cc: consulting@bugseng.com, Alessandro Zucchelli , Simone Ballarin , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH] automation/eclair: add deviation for MISRA C 2012 Dir 4.10 Date: Tue, 10 Sep 2024 16:15:36 +0200 Message-Id: <8b1e260ebc77efe3d317dd66a09045056f2acbfc.1725977659.git.alessandro.zucchelli@bugseng.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Add deviation to address violations of MISRA C:2012 Directive 4.10 ("Precautions shall be taken in order to prevent the contents of a header file being included more than once"). This deviation suppresses the violation arising from autogenerated file xen/include/generated/autoconf.h No functional change. Signed-off-by: Alessandro Zucchelli Acked-by: Stefano Stabellini --- automation/eclair_analysis/ECLAIR/deviations.ecl | 1 + 1 file changed, 1 insertion(+) diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl b/automation/eclair_analysis/ECLAIR/deviations.ecl index 9051f41602..165322811c 100644 --- a/automation/eclair_analysis/ECLAIR/deviations.ecl +++ b/automation/eclair_analysis/ECLAIR/deviations.ecl @@ -76,6 +76,7 @@ they are not instances of commented-out code." conform to the directive." -config=MC3R1.D4.10,reports+={safe, "first_area(text(^/\\* This file is legitimately included multiple times\\. \\*/$, begin-4))"} -config=MC3R1.D4.10,reports+={safe, "first_area(text(^/\\* Generated file, do not edit! \\*/$, begin-3))"} +-config=MC3R1.D4.10,reports+={safe, "all_area(all_loc(file(^xen/include/generated/autoconf.h$)))"} -doc_end -doc_begin="Including multiple times a .c file is safe because every function or data item