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

Re: [PATCH v3] docs/misra: add R21.6 R21.9 R21.10 R21.14 R21.15 R21.16


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 22 May 2024 06:26:51 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • 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=2; 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=RZEpCOmpNmuIPw/Yy9KgxrXyWOZlbKX61cWq1sUfZMg=; b=hsRo5tKeR+QPCynKL1L7bi9B2FPbbMMXCMbDt61LEDB3RE7To/qy3BxD/HYGuPI1SxkchAtdN26yKenJ7XLXlz/cN13auRg3kI3iUiUXH4ujzfHwzjo72vSMZlRdVBR2+noJ1IpjiySZ3foBp/IINYoZdNHWaIa365KWzxpX29JICu+psSazMZhTyMd01CGN1Xsww8tbkX2TkJ+bcbQ3cxNMlHivfx03SJV5xCKPJGHg2tvFcbgOxc6ooyMb9GtF2uzEzfEQcjqwy5lMJGz6l+dBfBzm6WKiMlhQx7vGow5cix1iKihTrbilrQ7UNfCsBnKa+zspGMJ7DTdsL+g3yg==
  • 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=RZEpCOmpNmuIPw/Yy9KgxrXyWOZlbKX61cWq1sUfZMg=; b=ml0phyu0EjRnxlIF0hPt7rGQ3L81ek47F+LRbNIc6SUVReY+naXjL+DWymep8V1OTWgMvm7IThyiJ1D/Fv5id3i/obz2YzvR3nfgf7szl94Cn12gW0UfgaIlzK1YO6867BMimLcpzYDgJBQ+bxru0kOTWdw3/r48K7GzE86Quj0fQs/aRMRnPzSL19BszXcce7keGCE2veYWZF5CTEFR5qr0M2NxTVudNkqwCggBFOOVYeXCd8GNHJJ0ev5b+TWgHBLKnyluBmcNcJez72Ek5USNIXiAKmeQCoIfQ0nkTkXZlYHZsx2tUwZRauQbUc86bWpuh5/5LEv2IXWuOsjukA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Tj+ICPQDdeOcvfW0ROMbV+YmydkT56QD1hc/xW32T3ISNX2Vc6wRh/jb4uoEnzDuADSzqQap6oS+8anh2LXokEwyG9UuMEu+cyr+3vjrbMC2XJPeWpW65AYDkBxOATlgGaYMaPWHllGAEeJOATKu3G3zN1Wr0UxsDfexlSBh/SjPjE7bo6j/gXDfCMXINrZ/jKGC70UWgHz5mcm5jKlkQGpavfyBAHS7Cxvvf/EMwMIWtZLkcO8tt76TqoI093ZnkztgZVMaUNBatT+dQyASPIFS1drLoub77uPnZtm529L3FYwHcNy4HwF9I49A3KWSfYcBHY8h8KBRsqy+LhGhPw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VU/QvnW39OfSIjRtlk+4jdvnAicFKjQQN2iIqgmqJMMaKVP8Pwt+I3FJI3ss3oBD66RCbW818GbTsOoHQvZXgU5Qa1eIDt2c91QvDp8mCCKovXI/JkkjTOHx1hQjgFdT8925DyoLZAmOb+3UvYO3HyeX9jZMiALAkKsKqHjF3PQCFNQ4RI2NKM0wzBWQMK/RpC4uG4W6VmMNWVOgZumiC1qRNY26xaJ6Eo1kJhu2ZVvSsHAU9A07v5ejRlC8UN9F/LKh8m9Y54fUM8G1KO2ZJN/WvujX0b/AOFfTurHAzGGCFDr3zczr5N86F+VgXVIKCDHE0BpJSmb9MaAdMbPDkA==
  • 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>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Wed, 22 May 2024 06:27:24 +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: AQHamCHZQDAooijVSkmDWqQKzv2AALGi8cCA
  • Thread-topic: [PATCH v3] docs/misra: add R21.6 R21.9 R21.10 R21.14 R21.15 R21.16

Hi Stefano,


> On 26 Apr 2024, at 23:36, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>

You might want to answer to Andrew on the footnote and agree or not on his way 
to fix.

Appart from that:
Acked-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Cheers
Bertrand


> ---
> 
> Changes in v3:
> - add explanation in footnote
> - remove comment from 21.14, 21.15, 21.16
> 
> docs/misra/rules.rst | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
> 
> diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
> index b7b447e152..5ba7394f05 100644
> --- a/docs/misra/rules.rst
> +++ b/docs/misra/rules.rst
> @@ -652,12 +652,48 @@ maintainers if you want to suggest a change.
>        declared
>      - See comment for Rule 21.1
> 
> +   * - `Rule 21.6 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_06.c>`_
> +     - Required
> +     - The Standard Library input/output routines shall not be used
> +     - Xen doesn't provide, use, or link against a Standard Library [1]_
> +
> +   * - `Rule 21.9 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_09.c>`_
> +     - Required
> +     - The library functions bsearch and qsort of <stdlib.h> shall not be 
> used
> +     - Xen doesn't provide, use, or link against a Standard Library [1]_
> +
> +   * - `Rule 21.10 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_10.c>`_
> +     - Required
> +     - The Standard Library time and date routines shall not be used
> +     - Xen doesn't provide, use, or link against a Standard Library [1]_
> +
>    * - `Rule 21.13 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_13.c>`_
>      - Mandatory
>      - Any value passed to a function in <ctype.h> shall be representable as 
> an
>        unsigned char or be the value EOF
>      -
> 
> +   * - `Rule 21.14 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_14.c>`_
> +     - Required
> +     - The Standard Library function memcmp shall not be used to compare
> +       null terminated strings
> +     -
> +
> +   * - `Rule 21.15 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_15.c>`_
> +     - Required
> +     - The pointer arguments to the Standard Library functions memcpy,
> +       memmove and memcmp shall be pointers to qualified or unqualified
> +       versions of compatible types
> +     -
> +
> +   * - `Rule 21.16 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_16.c>`_
> +     - Required
> +     - The pointer arguments to the Standard Library function memcmp
> +       shall point to either a pointer type, an essentially signed type,
> +       an essentially unsigned type, an essentially Boolean type or an
> +       essentially enum type
> +     - void* arguments are allowed
> +
>    * - `Rule 21.17 
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_21_17.c>`_
>      - Mandatory
>      - Use of the string handling functions from <string.h> shall not result 
> in
> @@ -712,3 +748,9 @@ maintainers if you want to suggest a change.
>      - The value of a pointer to a FILE shall not be used after the associated
>        stream has been closed
>      -
> +
> +
> +.. [1] Xen implements itself a few functions with names that match the
> +       corresponding function names of the Standard Library for developers'
> +       convenience. These functions are part of the Xen code and subject to
> +       analysis.
> -- 
> 2.25.1
> 




 


Rackspace

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