[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] docs/misra: add exceptions to rules


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 22 Aug 2023 09:03:11 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=igG/KmPKVy2voYzaiWRr9FXRC6eKpTDZ0Ri/lUqc3oc=; b=NO0DPZIJv5QSdMiw6fl41u2AhqKu4X+8YPU+H0G3KTdsAC42d1zda+/3YseRYAT2EQfsSXeTEU8ey9nQDwgkXLi2CXfzYC/14dv2oFVBZLOR5jTsDWSqqsgTtTu8YDabBZdxC9Fs6xwyLYuAPIL/YQY3sjQGaMlaIGH/4iF9FaZNeQaHasc2gbEuIdMLZHV49GNn+JwWxsXR9BSmkrIlOH5x6QYxMYXn8cGrd3J/yJP4YtOS42eICEDhBPJeJ92WQ3HM0WfF9hEPVqFrlUrryVSu06TkH0LY9hBXrhFIuA0uM7MauesfzTmIOgjHs7QxzmXEQxi+Y/W+g3Rbjt38MQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eOj5Fjp6XkwDewT1B8P9uDpb7iPLQh6jaDr61wjbEi7N/+t1qLAaGV+p7+PxEXt3zhmpLC9wePM4e+k+h/fcwBSdi2DewBzj52kHpKQ88MkWrUEHjGJXZpYV2gAWBk+VODUzjTEjLQf7wgBaXimByFqpcC4daQ2gYQITsOSu30lGejaK6Isc6Ws0mVJek7JOHJePz/QtNugqvzr71uS5Y80p9v0q9xygRmkVAa4uBBY+FVW3DN6A5Br6J94HL7/hBTVax0Oqk9AqV0lTdVyL4xDfcCnDL8ZFcSwe3k84G7UrwVoWIp/aB7LDn3WtLD7x7D7Hg3p+NlN2DplBNS75Mg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: andrew.cooper3@xxxxxxxxxx, roger.pau@xxxxxxxxxx, julien@xxxxxxx, george.dunlap@xxxxxxxxxx, bertrand.marquis@xxxxxxx, Stefano Stabellini <stefano.stabellini@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 22 Aug 2023 07:03:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.08.2023 03:30, Stefano Stabellini wrote:
> From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> 
> During the discussions that led to the acceptable of the Rules, we

Nit: acceptance

> 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 <stefano.stabellini@xxxxxxx>
>[...]
> @@ -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 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_08_04.c>`_
>       - 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)

Doesn't this want to be

     - Allowed exceptions: asm-offsets.c, definitions for asm modules
       not called from C code, and gcov_base.c (definitions only used in
       non-release builds)

? As to coverage: Why "only used in non-release builds"? COVERAGE doesn't
depend on DEBUG, and people may actually want to enable it for release
builds. Just likely not for production ones.

If you agree with and make respective adjustments:
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.