|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH][for-4.19 v2 2/2] docs/misra: add deviations.rst to document additional deviations.
On 10/10/2023 03:19, Stefano Stabellini wrote: +Henry On Mon, 9 Oct 2023, Nicola Vetrini wrote:This file contains the deviation that are not marked by a deviation comment, as specified in docs/misra/documenting-violations.rst. Suggested-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>This is great! Thank you so much! I have a few questions below but even as-is it is way better than nothing. I think we should add this for 4.18--- docs/index.rst | 1 +docs/misra/deviations.rst | 240 ++++++++++++++++++++++++++++++++++++++ Yes. + * - D4.3+ - The inline asm in 'xen/arch/arm/arm64/lib/bitops.c' is tightly coupled + with the surronding C code that acts as a wrapper, so it has been decided+ not to add an additional encapsulation layer. + - Tagged as `deliberate` for ECLAIR. + +Deviations related to MISRA C:2012 Rules: +----------------------------------------- + +.. list-table:: + :header-rows: 1 + + * - Rule identifier + - Justification + - Notes + + * - R2.1+ - The compiler implementation guarantees that the unreachable code is + removed. Constant expressions and unreachable branches of if and switch+ statements are expected. + - Tagged as `safe` for ECLAIR. + + * - R2.1 + - Some functions are intended not to be referenced. + - Tagged as `deliberate` for ECLAIR.What does it mean "some functions" in this case? Should we list which functions? Well, there are a lot, typically resulting from build configurations that do not use them, or because they are used only in asm code. I can mention these reasons in the document, to make it easier to understand. Other than this, I checked and everything else looks great -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |