From patchwork Tue Jul 11 20:21:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 13309352 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 BF393EB64DD for ; Tue, 11 Jul 2023 20:22:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.561893.878463 (Exim 4.92) (envelope-from ) id 1qJJrv-00041M-0U; Tue, 11 Jul 2023 20:21:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 561893.878463; Tue, 11 Jul 2023 20:21:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qJJru-00041F-Ss; Tue, 11 Jul 2023 20:21:54 +0000 Received: by outflank-mailman (input) for mailman id 561893; Tue, 11 Jul 2023 20:21:53 +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 1qJJrs-000419-SH for xen-devel@lists.xenproject.org; Tue, 11 Jul 2023 20:21:53 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 918493c9-2028-11ee-b239-6b7b168915f2; Tue, 11 Jul 2023 22:21:51 +0200 (CEST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4BC54615DD; Tue, 11 Jul 2023 20:21:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B41FC433C8; Tue, 11 Jul 2023 20:21:48 +0000 (UTC) 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: 918493c9-2028-11ee-b239-6b7b168915f2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689106909; bh=s5cOSymdjcLQwXjedQSQ4b1V0Qqbv9IUkI9Uizo+ch8=; h=From:To:Cc:Subject:Date:From; b=nDwxLhL46DE0Ve3L1akBgukj4QROHHZjTLpma/qddHwhqCHxerYWCuFpoSpF2D1+/ maKToYmTehb+RTvOlynBSvJgRnNhJ7LbPMD6usjWLvNqgt8aAixDYE/n8gOJ/bhrmd r71wAdACvizaBFBXSZ3q4cHXOY23tyf2ZuWE9VWNonXjtoKspQ/g4j+TwLWIhmdTz2 FhVY/1uSQWXeqc34qSa6+bJUtxWinSE+W/6SP7TI5KmniT/u8kynghc421NqfVvb9a goOFrCjqExgL0f0kixNAA1iKce2dxF9bJ49WTKbN1iFql8XAMqsyrxlPKmnlQ3uXK/ Nq7h90O9bmAmg== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: jbeulich@suse.com, andrew.cooper3@citrix.com, roger.pau@citrix.com, julien@xen.org, sstabellini@kernel.org, george.dunlap@citrix.com, bertrand.marquis@arm.com, Stefano Stabellini Subject: [PATCH] docs/misra: add Rule 9.3 Date: Tue, 11 Jul 2023 13:21:45 -0700 Message-Id: <20230711202145.2334563-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 From: Stefano Stabellini Specify that {} is allowed for zero-initialization. Signed-off-by: Stefano Stabellini Reviewed-by: Luca Fancellu Acked-by: Jan Beulich --- docs/misra/rules.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 72aa986bce..29a777938a 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -284,6 +284,11 @@ maintainers if you want to suggest a change. braces - + * - `Rule 9.3 `_ + - Required + - Arrays shall not be partially initialized + - {} is also allowed to specify explicit zero-initialization + * - `Rule 9.4 `_ - Required - An element of an object shall not be initialized more than once