From nobody Sat May 18 11:26:04 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=1686783865; cv=none; d=zohomail.com; s=zohoarc; b=boirYU5rUrDErrdn3ucEFAKPgFv2Grx8zPChcssAMhIK4iUd4l5kFBsKImWfWCRSUeCM/ulb/KplsUv1uTblgwdYy7upRN5zSmv+NlnbWoNz7hqlxUZzCTZFDSCPqehMb0U5ppn8aYoj3C76fSj7vGlYmMt3hBJMD2D43AJcPLw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686783865; 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=LiuMUBZvyizRYWS+zoATnjqzIHZO15wEUIO4gTOpq60=; b=YJgRyDKqjdhWZUZ51TDX0LxBxw6gQzdJSiKzRJT+O+gmKs44wmwxhDYFVYg/daNPhvDAK0Iv152+vDzWJ2yHZVdqn/U9lHsFvbBEnvYYU4LsWUpNjiaCadGvpKgMGwN8pwWyXSmKEYK4VnCjAuYlECL02t2IBANMCTLtyJ+xWnk= 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 16867838651681001.5633166928359; Wed, 14 Jun 2023 16:04:25 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.549254.857697 (Exim 4.92) (envelope-from ) id 1q9ZWa-0005LB-Q7; Wed, 14 Jun 2023 23:03:36 +0000 Received: by outflank-mailman (output) from mailman id 549254.857697; Wed, 14 Jun 2023 23:03:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q9ZWa-0005L4-Ls; Wed, 14 Jun 2023 23:03:36 +0000 Received: by outflank-mailman (input) for mailman id 549254; Wed, 14 Jun 2023 23:03:34 +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 1q9ZWY-0005Ky-PF for xen-devel@lists.xenproject.org; Wed, 14 Jun 2023 23:03:34 +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 af33913a-0b07-11ee-b232-6b7b168915f2; Thu, 15 Jun 2023 01:03:33 +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 57FEA6355B; Wed, 14 Jun 2023 23:03:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AA0BC433C8; Wed, 14 Jun 2023 23:03:30 +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: af33913a-0b07-11ee-b232-6b7b168915f2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686783811; bh=cCuwpT8Xu8wzNNPOH1vRl/UyjmhgUyE3jKyHcmogiaw=; h=From:To:Cc:Subject:Date:From; b=Lr0O1UJRp/Go21t2q1m3E/agGYX4Hh6X39hgK1t5cDbmsv50aimVnUU6VTNZzSlN9 4kupMDkkeYi7dL7qbX/e13oG5sqkGluSWBt1DQDzX81wk4Jv5CR+UDqyjoMTd4broo FUTlx/Ma5y4eogVfhbgtNZ3RRUqOeVp+luEmixGJdmNRK7uoysfa5L7kbUGBlJ3yCd buq9xpu2JBBwCQb6W59bcMVCQD21ozBNhrnpNBJTLaun4gVFr12WGIw9j8lCKrD/WX Ve5xlVkTnuoL/tU3iZpa8Q/zf3XQnj784x5wd3VYTvWmiABnXZ9l5w+DmBz80Je0ks RR+A1GMfHemVg== 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] xen/misra: add rules 1.4 and 2.1 Date: Wed, 14 Jun 2023 16:03:28 -0700 Message-Id: <20230614230328.1060282-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: 1686783865560100001 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini Signed-off-by: Stefano Stabellini --- docs/misra/rules.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 41a727ca98..4179e49ac2 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -90,6 +90,17 @@ 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. + + * - `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