From patchwork Tue Oct 31 13:23:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Fancellu X-Patchwork-Id: 13441526 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 239D8C4332F for ; Tue, 31 Oct 2023 13:23:47 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.625719.975324 (Exim 4.92) (envelope-from ) id 1qxoiO-0005OW-3q; Tue, 31 Oct 2023 13:23:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 625719.975324; Tue, 31 Oct 2023 13:23:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qxoiN-0005Nf-Vv; Tue, 31 Oct 2023 13:23:27 +0000 Received: by outflank-mailman (input) for mailman id 625719; Tue, 31 Oct 2023 13:23:26 +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 1qxoiM-0003uy-5o for xen-devel@lists.xenproject.org; Tue, 31 Oct 2023 13:23:26 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id ab9b930d-77f0-11ee-98d6-6d05b1d4d9a1; Tue, 31 Oct 2023 14:23:25 +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 7958A139F; Tue, 31 Oct 2023 06:24:06 -0700 (PDT) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.199.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BF1343F738; Tue, 31 Oct 2023 06:23:23 -0700 (PDT) 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: ab9b930d-77f0-11ee-98d6-6d05b1d4d9a1 From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [RFC PATCH v2 6/8] [WIP]x86/exclude-list: protect mm_type_tbl in mtrr from being formatted Date: Tue, 31 Oct 2023 13:23:02 +0000 Message-Id: <20231031132304.2573924-7-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231031132304.2573924-1-luca.fancellu@arm.com> References: <20231031132304.2573924-1-luca.fancellu@arm.com> MIME-Version: 1.0 The array mm_type_tbl initialization is formatted in a way that the formatting tool can't keep, so disable the formatting on that array initialization. Signed-off-by: Luca Fancellu --- docs/misra/exclude-list.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index d48dcf3ac971..b8976bc671a4 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -99,6 +99,19 @@ "rel_path": "arch/x86/cpu/mwait-idle.c", "comment": "Imported from Linux, ignore for now" }, + { + "rel_path": "arch/x86/hvm/mtrr.c", + "comment": "Contains structure formatted in a particular way", + "checkers": "codestyle", + "codestyle": { + "protect": [ + { + "syntax_opening": "static const uint8_t mm_type_tbl", + "syntax_closing": "};" + } + ] + } + }, { "rel_path": "arch/x86/include/asm/alternative-asm.h", "comment": "Includes mostly assembly macro and it's meant to be included only in assembly code",