[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/6] xen: add deviations for Rule 11.8
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
- Date: Wed, 20 Dec 2023 12:39:52 +0100
- Cc: Simone Ballarin <simone.ballarin@xxxxxxxxxxx>, consulting@xxxxxxxxxxx, Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Wed, 20 Dec 2023 11:40:09 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2023-12-20 11:50, Jan Beulich wrote:
On 19.12.2023 12:05, Simone Ballarin wrote:
--- a/docs/misra/deviations.rst
+++ b/docs/misra/deviations.rst
@@ -248,6 +248,13 @@ Deviations related to MISRA C:2012 Rules:
If no bits are set, 0 is returned.
- Tagged as `safe` for ECLAIR.
+ * - R11.8
+ - Violations caused by container_of are due to pointer
arithmetic operations
+ with the provided offset. The resulting pointer is then
immediately cast back to its
+ original type, which preserves the qualifier. This use is
deemed safe.
+ Fixing this violation would require to increase code
complexity and lower readability.
+ - Tagged as `safe` for ECLAIR.
+
Going forward can you please avoid adding trailing whitespace. "git am"
doesn't really like that, and hence it requires extra steps to clean
up.
Jan
Noted, sorry for the inconvenience.
--
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)
|