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

Re: [PATCH v2] xen/misra: add rules 1.4 and 2.1


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Fri, 16 Jun 2023 06:59:26 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=geJ4ck+wDlAjV+Rj2So2JTHgIvF3DbzfN5ItGQdb12s=; b=QM2CgY4w8z58KPbzWAx/QqS9pmgeuUg44Hw32TgWimAPkd/gQAOeP26CzyQ3/efsfCjuCNsTurN+bBOWWC6j1x0gEmoEhAtDXoIixwxBIde26KNEVy28hmYa4VZCjY1WdFl6Wu9XzX8e7E1+wM6Asl7TYxSooLc1dDExfk16CQH8107Mcf00eYEkPuLyQNmAf5rwCjenoOGGNFkz0vd4mjmi8jKAkP37QR7FM3UAoaNVbhJ8M4cOcYnAsce7IwE6fY9RTitlPM7kk7uoMeWX5B+AcZMNj7E1zGCiHmrTUBqUoPXigK2/nz6XsqnEoi7BzP6WmhNn34IKgPpcTBrkdQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ry8YOvNysz6OwX9GpUq6LgCNuUvW58V7PAxAdrZL+qBtaDesQuck2NPQ0/UR6D1ZmOvEeLHZY2kP+VZhth95f2EgMpf4I1/lkZtu1oMVJNBD7+G+S+/2dzhb17g52cG5a8bXI77S2QtxrFuFjs2hdkITp78mQeQk/+V4+xnpoZFJXkzgh64N0w19tlJWDnz8XcUOsHV5TcEzUk7E5PFDzLnTXwS7YVoDepo0WatuWdoCTE0V6J59wg/0tzSGY0OyeZtq1QGwyHcMBZ/CRxg+fbHCbPlX+93buPVu01oB4x4PbCFUE+B4y+YLYMS12TsHUbNPOjHU16N1LrfMgX5/4Q==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, "roberto.bagnara@xxxxxxxxxxx" <roberto.bagnara@xxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Fri, 16 Jun 2023 06:59:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZn9A+0YpNQKb1cEue9Yb+wSfzh6+NAIAA
  • Thread-topic: [PATCH v2] xen/misra: add rules 1.4 and 2.1


> On 15 Jun 2023, at 22:27, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
> 
> From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> 
> Also add a comment at the top of the file to say rules.rst could be
> changed.
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>

Hi Stefano,

Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>


While I was testing the patch with our script that translates the docs to 
cppcheck
Inputs, I noticed we might have a small issue there, seems that Directives and 
Rules
clashes, and from a quick look to cppcheck addon, seems that only the rules are 
needed.

I’ll have a look on that soon.

> 
> ---
> 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, while 
> some others
> should be fixed. Both compliance and documenting deviations on the
> existing codebase are work-in-progress.
> 
> +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
> 
> @@ -90,6 +93,18 @@ existing codebase are work-in-progress.
>        behaviour
>      -
> 
> +   * - `Rule 1.4 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/>`_
> +     - 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 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_02_01_1.c>`_
> +     - Required
> +     - A project shall not contain unreachable code
> +     -
> +
>    * - `Rule 2.6 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_02_06.c>`_
>      - Advisory
>      - A function should not contain unused label declarations
> -- 
> 2.25.1
> 
> 


 


Rackspace

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