From 0b5bca91aa490ec6d57045550b3dc1bc22babf6e Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Tue, 26 Sep 2023 18:05:38 -0700 Subject: [PATCH] docs/misra: add rule 11.9 Following up from the MISRA C group discussion, add Rule 11.9 to docs/misra/rules.rst. Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich Acked-by: Bertrand Marquis Release-acked-by: Henry Wang --- docs/misra/rules.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 67c9195ed8..661aa95e23 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -374,6 +374,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 `_ + - Required + - The macro NULL shall be the only permitted form of null pointer constant + - + * - `Rule 12.5 `_ - Mandatory - The sizeof operator shall not have an operand which is a function