From nobody Mon May 13 06:24:06 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=1674844575; cv=none; d=zohomail.com; s=zohoarc; b=X5kMQnmJtPtpW4KjjJvrMW3LaTmUvvC+1AOB1tykgqxC4sCoQHd30yuzMhqseHuX+Z2NYDfYbLh+0zyjNS3vpN6nlIQ0NvRyCZSFTOpD1bOtDQ/wtXZfPH/98lhf6W0emD/9adiBG8Tnyt2quiDfYJzDVBdi7+HfGmf2/GK+1ZM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674844575; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=N/rawJAMqwFiXamHA1JrRYNjQQP7JL/GNwl6vGsslsw=; b=n6unKZAiLSmygs3hq9WONzXVa/cJ7JLs/9KGx81+TUBmvO9pMS86Q6JCZHjDGxJ6ZXVpVOqYo7/3AE5KW2s5Yt+r59aSRxewcdW5d/SE8dJOWq6W719BqI3tk9hDHbxxAUqBiqN0GMTOb3h4+YBmOcMKkplPHPnR7zhv3Ukyswc= 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 1674844575078615.6626708909537; Fri, 27 Jan 2023 10:36:15 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.485863.753283 (Exim 4.92) (envelope-from ) id 1pLTZm-00036J-EY; Fri, 27 Jan 2023 18:35:50 +0000 Received: by outflank-mailman (output) from mailman id 485863.753283; Fri, 27 Jan 2023 18:35:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pLTZm-00036C-Bg; Fri, 27 Jan 2023 18:35:50 +0000 Received: by outflank-mailman (input) for mailman id 485863; Fri, 27 Jan 2023 18:35:49 +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 1pLTZl-000364-FL for xen-devel@lists.xenproject.org; Fri, 27 Jan 2023 18:35:49 +0000 Received: from ams.source.kernel.org (ams.source.kernel.org [2604:1380:4601:e00::1]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 6ac31c6d-9e71-11ed-a5d9-ddcf98b90cbd; Fri, 27 Jan 2023 19:35:48 +0100 (CET) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3533EB8214D; Fri, 27 Jan 2023 18:35:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1002C433EF; Fri, 27 Jan 2023 18:35:44 +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: 6ac31c6d-9e71-11ed-a5d9-ddcf98b90cbd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674844545; bh=hpHAcdSFOtCLhFqbX/JA+8llrM6/bNsw7JHhCmB7eMM=; h=From:To:Cc:Subject:Date:From; b=lhofPJvfW1aIU6810KInaKJVTLgTtzeQlPMzsthBXJy5CUj3Q6q6hdF5DGay1ypyO exKMsMu9gZuxwzBXEgHtEQY2qAIAASln9TB+ufGL40dTlX7zf60rcPb63Cm+awgNd5 iE4o/RbJrZPcNmoqLhZ8Q0RzxOhbYXJPGdk21ERhRfG45unRggpWwa62tk2+CaME58 cMUjBtSQn+EnZlLKW9VwV8mUIxpOUwxotIJ5aKxbuPmDJo9B4jBxCFxuLk/eufItnd ZaB62Hrh++ou18Y8oA37W141VTQaJkS7gOZNevkMTPsTQYbif59lZgWpLAmcZdzoM2 1WDVHoZ4W5EfQ== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, george.dunlap@citrix.com, andrew.cooper3@citrix.com, jbeulich@suse.com, roger.pau@citrix.com, Bertrand.Marquis@arm.com, julien@xen.org, stefano.stabellini@amd.com Subject: [PATCH v2] Add more rules to docs/misra/rules.rst Date: Fri, 27 Jan 2023 10:35:41 -0800 Message-Id: <20230127183541.3013908-1-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1674844577292100001 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini As agreed during the last MISRA C discussion, I am adding the following MISRA C rules: 7.1, 7.3, 18.3. I am also adding 13.1 that was "agreed pending an analysis on the amount of violations". There are zero violations reported by cppcheck. Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich --- Changes in v2: - remove 18.2 --- docs/misra/rules.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index dcceab9388..83f01462f7 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -138,6 +138,16 @@ existing codebase are work-in-progress. - Single-bit named bit fields shall not be of a signed type - =20 + * - `Rule 7.1 `_ + - Required + - Octal constants shall not be used + - + + * - `Rule 7.3 `_ + - Required + - The lowercase character l shall not be used in a literal suffix + - + * - `Rule 8.1 `_ - Required - Types shall be explicitly specified @@ -200,6 +210,11 @@ existing codebase are work-in-progress. expression which has potential side effects - =20 + * - `Rule 13.1 `_ + - Required + - Initializer lists shall not contain persistent side effects + - + * - `Rule 14.1 `_ - Required - A loop counter shall not have essentially floating type @@ -227,6 +242,11 @@ existing codebase are work-in-progress. static keyword between the [ ] - =20 + * - `Rule 18.3 `_ + - Required + - The relational operators > >=3D < and <=3D shall not be applied to = objects of pointer type except where they point into the same object + - + * - `Rule 19.1 `_ - Mandatory - An object shall not be assigned or copied to an overlapping --=20 2.25.1