From b5a601093d1f9d5e96eb74b692f1b6252a2598a2 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Wed, 13 Sep 2023 16:16:17 -0700 Subject: [PATCH] docs/misra: accept 11.7 and 11.8 As per the last MISRA C group discussion, let's accept 11.7 (for which we have no violations) and 11.8. Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich --- docs/misra/rules.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 34916e266a..8e7d17d242 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -363,6 +363,16 @@ maintainers if you want to suggest a change. CFLAGS="-Warith-conversion -Wno-error=arith-conversion" make -C xen + * - `Rule 11.7 `_ + - Required + - A cast shall not be performed between pointer to object and a noninteger arithmetic type + - + + * - `Rule 11.8 `_ + - Required + - A cast shall not remove any const or volatile qualification from the type pointed to by a pointer + - + * - `Rule 12.5 `_ - Mandatory - The sizeof operator shall not have an operand which is a function -- 2.39.5