[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] docs/misra: add rule 11.9
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Wed, 27 Sep 2023 08:16:22 +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=7KP7CU8B8G4gafGveW0xNPmjKP4Y1zKjvRG2FNNjnws=; b=Q97HToJwOLHS1Aq9J3L0d3C+gNiecqdwreRvDbhnjnEZPg8wy9mK4Bo8uarrpSvToNCIcctJ9tvE1WcMO5ZCPB+Vj7PyyQPVJF1F/louXMrZIgXHMylsLbkfALAzebIzDbJ17GNa12f4G/46hLyTv/XyFTsYMDx5Mn4jNqMNqRUUtDtupbqtNCQx0XjzNNDQV+OdXjYsqxPiTSjHQMXVIbUeeS6jqqXriB2CEaM0c4hhNGTrvi0bogSpofGr25UK59s7OdABFimADcQaCZZk6Y4Ql/7OzFvQb42qGDo0tbVBc+IK5hh8hhRhX2jV1P0R0Z7xNJeVhZw0ltAe/FrLrQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SUrWED0eB7lGHi/n2rff2hSrFEqh1ebQpXq8cLmjZkgJ3dvSIS5Csd7NBfkhC9A+Nr2rH8oJlFL5bWWKz1+kTXvLX3+Y5VEeHkhXzUR13i4LmEzKP6s6FMP87YmYiJS7WhAeOeqcfpBtciMIHHeMk8pMGhPCQU2Z9ITtmKCLN3Wi84ucZ2fsplEePJhhGS2B0mVcqvI9h7ELBiPU8+BlRoDzHYw6ZcGXJI6MYu3d+M8gkx9pGWzj3FjAm0cyubagKGfBt93kcLXswbUTdyRMqOh4AwQaTM8JjvuT0Khv042iY2+pJZsgnh9ETL9FwcwvmL+X5/c0gm3yWQkYW7cueQ==
- 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>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "roberto.bagnara@xxxxxxxxxxx" <roberto.bagnara@xxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
- Delivery-date: Wed, 27 Sep 2023 08:16:48 +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: AQHZ8N7F1acUGyfgHkSrRU6Q0Z48aLAuVAMA
- Thread-topic: [PATCH] docs/misra: add rule 11.9
Hi Stefano,
> On 27 Sep 2023, at 03:05, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>
> From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
>
> Following up from the MISRA C group discussion, add Rule 11.9 to
> docs/misra/rules.rst.
>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
I agree with Jan on dropping the "integer" word here.
With that done:
Acked-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
Cheers
Bertrand
> ---
> Rule 13.1 also discussed but it is already in docs/misra/rules.rst
> ---
> docs/misra/rules.rst | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst
> index 8e7d17d242..28dc3a4d66 100644
> --- a/docs/misra/rules.rst
> +++ b/docs/misra/rules.rst
> @@ -373,6 +373,11 @@ maintainers if you want to suggest a change.
> - A cast shall not remove any const or volatile qualification from the
> type pointed to by a pointer
> -
>
> + * - `Rule 11.9
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_11_09.c>`_
> + - Required
> + - The macro NULL shall be the only permitted form of integer null
> pointer constant
> + -
> +
> * - `Rule 12.5
> <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_12_05.c>`_
> - Mandatory
> - The sizeof operator shall not have an operand which is a function
> --
> 2.25.1
>
|