On Tue, 19 Dec 2023, Simone Ballarin wrote: > From: Maria Celeste Cesario <maria.celeste.cesa...@bugseng.com> > > The xen sources contain violations of MISRA C:2012 Rule 11.8 whose > headline states: > "A conversion shall not remove any const, volatile or _Atomic qualification > from the type pointed to by a pointer". > > The macro 'container_of' violates the Rule because it casts away any > qualifier to do pointer arithmetic, but making the macro definition compliant > would add additional complexity, therefore a deviation is introduced. > > Signed-off-by: Maria Celeste Cesario <maria.celeste.cesa...@bugseng.com> > Signed-off-by: Simone Ballarin <simone.balla...@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>