On 14.11.2023 23:37, Stefano Stabellini wrote: > [PATCH v2] docs/misra: add R11.1 R11.2 R11.3 R11.6 > > Add MISRA C Rules 11.1, 11.2, 11.3, 11.6 as discussed. > > Explicitly add in the notes that conversions to integer types are > permitted if the destination type has enough bits to hold the entire > value. GCC gives enough guarantees in terms of preserving the bit > content in such situations. > > Also allow for bool conversions (e.g. to check if a function point is > valid). > > Signed-off-by: Stefano Stabellini <stefano.stabell...@amd.com>
Acked-by: Jan Beulich <jbeul...@suse.com>