From nobody Wed May 22 03:15:20 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; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1712100144; cv=none; d=zohomail.com; s=zohoarc; b=L7YRdjX5pOd29MHefkjzBmNm1RspplrQsmK2IWnZv5gif7tSUSw4OGKjPVlNeCJxeYNBxF6G+4ZUHBV2ZMbEk0OB7lCOD6+hKfIbMtZ7Ox9DKJSzjCvqIRaMPEAqe7IiDLAqe0XSDzUn+IrqFbNYeKWxSI/mz7ntWGfTjeLrmHA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1712100144; h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jR3xvSkVvwJoVpM+VudGp5WgozwJTLAwef7qLUhJwFU=; b=CrguvfdnMwyyVvEvJg6Sa+GULUoW+kd1WfTDlWYv77qK5ZgS8hPeGK7307JFtCPSvcm+bpmrKsVQCuEW5V+B7nvHXTgAHf1ZGOhn5MiweVYAbrlVoaeMyc2Suvkk5UuYy19lB1XgpkhnCRa+K90NJtLzlru1uA2M12fil5DlUeo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 171210014469158.15496299175197; Tue, 2 Apr 2024 16:22:24 -0700 (PDT) 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 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-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: 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 X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1712100147038100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 - =20 + * - `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