From patchwork Tue Apr 2 23:21:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 13614701 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 AF44DCD1284 for ; Tue, 2 Apr 2024 23:22:18 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.700244.1093071 (Exim 4.92) (envelope-from ) id 1rrnRy-0005Ng-Ta; Tue, 02 Apr 2024 23:21:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 700244.1093071; Tue, 02 Apr 2024 23: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 1rrnRy-0005NZ-PB; Tue, 02 Apr 2024 23:21:54 +0000 Received: by outflank-mailman (input) for mailman id 700244; Tue, 02 Apr 2024 23:21:52 +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 1rrnRw-0005NT-Sh for xen-devel@lists.xenproject.org; Tue, 02 Apr 2024 23:21:52 +0000 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c75e77e7-f147-11ee-a1ef-f123f15fe8a2; Wed, 03 Apr 2024 01:21:50 +0200 (CEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 61771CE1E5D; Tue, 2 Apr 2024 23:21:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACAB8C433C7; Tue, 2 Apr 2024 23:21:42 +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: c75e77e7-f147-11ee-a1ef-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712100103; bh=CxiARtPXVyYs3sl9Wqk24XA1llUNiyPjEbjht2Ja6pw=; h=Date:From:To:cc:Subject:From; b=BDdy8vtPOCL2g9E8uhMEVXNGgL8gvIV5++zjj2LXjKp0bhjIaiJliWBdz7QV/gQLs rWdMfitdIzvV0i4RZHADcaUzjEtAcQL2rADcAO4D6vLz0INF03ffwr9FfdY0Xh/Rq8 ioPFRg9z6m8svARslwghL3afvibwTrgqgWadW6lcbYaQWNi/o2YY3HtVgIfJp8tcM4 rM78d/GgUYtOhuUxvNwkzM0Sdu5a0gPZun2RaR0jsbsKYbSmOvFGZazPYYkiZfNZdr ZoO15flEUbtbzwNB1prDxyu51IUhP2OoOk8xuF0am8ik4v5ynzjjjw7cYG/o5wsUOX VCMOLzkuhjEqg== Date: Tue, 2 Apr 2024 16:21:41 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop To: xen-devel@lists.xenproject.org cc: sstabellini@kernel.org, Jan Beulich , Andrew Cooper , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Bertrand Marquis , Julien Grall Subject: [PATCH] docs/misra: add 13.6 to rules.rst Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 As agreed during MISRA C meetings, add Rule 13.6 to rules.rst. Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich --- There was a request to expand the scope to also include alignof and typeof. Depending on whether the MISRA C scanners support it, and under which rules violations will be listed, rules.rst will be updated accordingly (either updating the notes section of 13.6 or adding a new entry.) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 1e134ccebc..415b5b63c3 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -445,6 +445,12 @@ maintainers if you want to suggest a change. - Initializer lists shall not contain persistent side effects - + * - `Rule 13.6 `_ + - Required + - The operand of the sizeof operator shall not contain any + expression which has potential side-effects + - + * - `Rule 14.1 `_ - Required - A loop counter shall not have essentially floating type