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 35C0BEE4996 for ; Tue, 22 Aug 2023 07:56:45 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.588193.919677 (Exim 4.92) (envelope-from ) id 1qYMFP-0008Dg-Tz; Tue, 22 Aug 2023 07:56:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 588193.919677; Tue, 22 Aug 2023 07:56:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qYMFP-0008DZ-QH; Tue, 22 Aug 2023 07:56:19 +0000 Received: by outflank-mailman (input) for mailman id 588193; Tue, 22 Aug 2023 07:56:18 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qYMFO-0008DR-9e for xen-devel@lists.xenproject.org; Tue, 22 Aug 2023 07:56:18 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qYMFN-0003xJ-Rv; Tue, 22 Aug 2023 07:56:17 +0000 Received: from [54.239.6.178] (helo=[192.168.0.85]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qYMFN-00011O-Il; Tue, 22 Aug 2023 07:56:17 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=Ut+C0+dTd3V9XjICXYZXQ5j+jjK8kfAdRIER5oYUQLs=; b=Me6SGQwGEUT+kkx3NGfXiXIKt1 uoLplD6Tkro4EmLsZBADfQXlNrF9EdYCLog8oXD6Vjp1Zf8LFNqqRiWblP28MxYHe7MndOoEkb2Ps RcML9HeCuMD+S9A82JsKMiTUHW3jl0NQ6vooZO2uiDum6P6wl3Xq2pNWM34P0bPMCES4=; Message-ID: Date: Tue, 22 Aug 2023 08:56:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] docs/misra: add exceptions to rules Content-Language: en-GB To: Stefano Stabellini , xen-devel@lists.xenproject.org Cc: jbeulich@suse.com, andrew.cooper3@citrix.com, roger.pau@citrix.com, george.dunlap@citrix.com, bertrand.marquis@arm.com, Stefano Stabellini References: <20230822013014.2523202-1-sstabellini@kernel.org> From: Julien Grall In-Reply-To: <20230822013014.2523202-1-sstabellini@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Stefano, On 22/08/2023 02:30, Stefano Stabellini wrote: > From: Stefano Stabellini > > During the discussions that led to the acceptable of the Rules, we > decided on a few exceptions that were not properly recorded in > rules.rst. Other times, the exceptions were decided later when it came > to enabling a rule in ECLAIR. > > Either way, update rules.rst with appropriate notes. > > Signed-off-by: Stefano Stabellini > --- > v2: > - remove autogenerated from D4.10 > - remove R2.1 > - remove R5.6 > - remove R7.1 > - reword R8.3 > --- > docs/misra/rules.rst | 36 +++++++++++++++++++++++++++++------- > 1 file changed, 29 insertions(+), 7 deletions(-) > > diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst > index 8f0e4d3f25..62bd4620fd 100644 > --- a/docs/misra/rules.rst > +++ b/docs/misra/rules.rst > @@ -59,7 +59,8 @@ maintainers if you want to suggest a change. > - Required > - Precautions shall be taken in order to prevent the contents of a > header file being included more than once > - - It is not clear to me why this line is removed. Was it added by mistake in a previous commit? > + - Files that are intended to be included more than once do not need to > + conform to the directive > > * - `Dir 4.11 `_ > - Required > @@ -117,7 +131,7 @@ maintainers if you want to suggest a change. > - Required > - The character sequences /* and // shall not be used within a > comment > - - > + - Comments containing hyperlinks inside C-style block comments are safe > > * - `Rule 3.2 `_ > - Required > @@ -239,13 +256,16 @@ maintainers if you want to suggest a change. > - Required > - All declarations of an object or function shall use the same > names and type qualifiers > - - > + - The type ret_t maybe be deliberately used and defined as int or > + long depending on the type of guest to service > > * - `Rule 8.4 `_ > - Required > - A compatible declaration shall be visible when an object or > function with external linkage is defined > - - > + - Allowed exceptions: asm-offsets.c (definitions for asm modules > + not called from C code), gcov_base.c (definitions only used in > + non-release builds) > > * - `Rule 8.5 `_ > - Required > @@ -369,7 +389,9 @@ maintainers if you want to suggest a change. > - Required > - Expressions resulting from the expansion of macro parameters > shall be enclosed in parentheses > - - > + - Extra parentheses are not required when macro parameters are used > + as function arguments, as macro arguments, array indices, lhs in > + assignments > > * - `Rule 20.13 `_ > - Required -- Julien Grall