Skip to content

address violations of MISRA C Rule 20.7

Nicola Vetrini xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/vpmu: address violations of MISRA C Rule 20.7xen/arch/x86/cpu/vpmu_amd.c+2 -22 replies
2/4x86/hvm: address violations of MISRA C Rule 20.7xen/arch/x86/hvm/mtrr.c xen/arch/x86/hvm/rtc.c xen/arch/x86/include/asm/hvm/save.h+3 -33 replies
3/4x86_64/uaccess: address violations of MISRA C Rule 20.7xen/arch/x86/include/asm/x86_64/uaccess.h+4 -32 replies
4/4x86_64/cpu_idle: address violations of MISRA C Rule 20.7xen/arch/x86/x86_64/cpu_idle.c+1 -12 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStefano StabelliniJan Beulich
1/4R-b A-b
2/4R-b A-b
3/4R-b A-b
4/4R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [XEN PATCH 0/4] address violations of MISRA C Rule 20.7

Hi all,

this series aims to refactor some macros that cause violations of MISRA C Rule 20.7 ("Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses"). All the macros touched by these patches are in some way involved in violations, and the strategy adopted to bring them into compliance is to add parentheses around macro arguments where needed.

Nicola Vetrini (4):
x86/vpmu: address violations of MISRA C Rule 20.7 x86/hvm: address violations of MISRA C Rule 20.7 x86_64/uaccess: address violations of MISRA C Rule 20.7 x86_64/cpu_idle: address violations of MISRA C Rule 20.7

 xen/arch/x86/cpu/vpmu_amd.c               | 4 ++--
 xen/arch/x86/hvm/mtrr.c                   | 2 +-
 xen/arch/x86/hvm/rtc.c                    | 2 +-
 xen/arch/x86/include/asm/hvm/save.h       | 2 +-
 xen/arch/x86/include/asm/x86_64/uaccess.h | 7 ++++---
 xen/arch/x86/x86_64/cpu_idle.c            | 2 +-
 6 files changed, 10 insertions(+), 9 deletions(-)
Signature · 1 line
2.34.1