From nobody Tue May 14 12:11:45 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=1686864471; cv=none; d=zohomail.com; s=zohoarc; b=B/WwNg0LKsnk6NcGFgfnC75FGPZ75w9pYohMASLM2U/3y6P/gHLWMQSUY+1devoEhSoMPXDTTxlGAFGSmNpT64GLD8+U/b4Uz330h5M1Ge5KTVs//9ats9BmgRjvBhJSSWcNqW3CECmLZwslOMRMbQZyvIoGXDtBQlDcdvHLZjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686864471; 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=Vv/m/Swb6UWTji9LpLN6NjgU/Yh+cSIwn85KzEyozW4=; b=bv8NHUwOZsOT35ZYqzEDCOyN5nveWCLyCDCAvHhCYF4U4awLGlb5zgJclkTqYJtE7NB1zQXJ85LrE/qM6EltIcjcHz/T/zT4ALlbOQXHqQkTOz12OhQv4VqAoTfq41Ta82OUWfPojkPnotL34lKJLikTNVcOi4JK6TEwAFzbFv8= 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 1686864471162341.51845145826337; Thu, 15 Jun 2023 14:27:51 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.549924.858734 (Exim 4.92) (envelope-from ) id 1q9uV2-00085h-6x; Thu, 15 Jun 2023 21:27:24 +0000 Received: by outflank-mailman (output) from mailman id 549924.858734; Thu, 15 Jun 2023 21:27:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q9uV2-00085a-4K; Thu, 15 Jun 2023 21:27:24 +0000 Received: by outflank-mailman (input) for mailman id 549924; Thu, 15 Jun 2023 21:27:22 +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 1q9uV0-00085O-Su for xen-devel@lists.xenproject.org; Thu, 15 Jun 2023 21:27:22 +0000 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 68cf68dd-0bc3-11ee-8611-37d641c3527e; Thu, 15 Jun 2023 23:27:20 +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 A0F5061DCF; Thu, 15 Jun 2023 21:27:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF601C433C8; Thu, 15 Jun 2023 21:27:17 +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: 68cf68dd-0bc3-11ee-8611-37d641c3527e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686864439; bh=x1kXzx7pPDuFD2e7tslJipL42jrsChZD9clwm3g37Uk=; h=From:To:Cc:Subject:Date:From; b=XovzLdIerTfn6LYgbvtIeR2HNVbz39IN9EWrr/yA4bk6gmAmEPHVIp3AaIkvvBSZw A26d1DJMruZQkwVLBzS8uPfZ17SOnU+B5VdEv0jvivypjq+dzfHNvFSx2CAmrI1F1r LEGo4VsIg2wnyphg8RjP8P5daWuiobPFJYg1aWQsrZpWXY5tl2jUGekt5S7JRf/MNn 6OPZd45EiudOLdZ6bevMZhtwnqg9csoC2/aUr8coKRKpgC7XuVEflfaiaBp3SacsSs IaxGTV+GsMWfwutsS6p27RgGVa6N0AZWggV4gAfipR6XyXFa/9s7owQrMkdHmRP1bk Xkk8TTCwMmyKQ== From: Stefano Stabellini To: xen-devel@lists.xenproject.org Cc: sstabellini@kernel.org, jbeulich@suse.com, julien@xen.org, andrew.cooper3@citrix.com, roger.pau@citrix.com, bertrand.marquis@arm.com, roberto.bagnara@bugseng.com, Stefano Stabellini Subject: [PATCH v2] xen/misra: add rules 1.4 and 2.1 Date: Thu, 15 Jun 2023 14:27:16 -0700 Message-Id: <20230615212716.1330929-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: 1686864471884100001 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini Also add a comment at the top of the file to say rules.rst could be changed. Signed-off-by: Stefano Stabellini Reviewed-by: Bertrand Marquis Reviewed-by: Luca Fancellu --- Changes in v2: - add link for 1.4 - expand 1.4 comment to say it could be revisited - add comment at the top --- docs/misra/rules.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index a88c284e7d..11b9c42b70 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -32,6 +32,9 @@ violations are meant to be documented as deviations, whil= e some others should be fixed. Both compliance and documenting deviations on the existing codebase are work-in-progress. =20 +The list below might need to be updated over time. Reach out to THE REST +maintainers if you want to suggest a change. + .. list-table:: :header-rows: 1 =20 @@ -90,6 +93,18 @@ existing codebase are work-in-progress. behaviour - =20 + * - `Rule 1.4 `_ + - Required + - Emergent language features shall not be used + - Emergent language features, such as C11 features, should not be + confused with similar compiler extensions, which we use. When the + time comes to adopt C11, this rule will be revisited. + + * - `Rule 2.1 `_ + - Required + - A project shall not contain unreachable code + - + * - `Rule 2.6 `_ - Advisory - A function should not contain unused label declarations --=20 2.25.1