mbox series

[XEN,v2,0/3] address violations of MISRA C Rule 20.7

Message ID cover.1714487169.git.nicola.vetrini@bugseng.com (mailing list archive)
Headers show
Series address violations of MISRA C Rule 20.7 | expand

Message

Nicola Vetrini April 30, 2024, 2:28 p.m. UTC
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.

Patch 1/3 is derived from that of v1; patches 2 and 3 are new to this series.

Nicola Vetrini (3):
  drivers: char: address violation of MISRA C Rule 20.7
  xen/unaligned: address violation of MISRA C Rule 20.7
  xen/pci: address violations of MISRA C Rule 20.7

 tools/include/xen-tools/common-macros.h | 2 +-
 xen/drivers/char/omap-uart.c            | 5 +++--
 xen/include/xen/pci_regs.h              | 6 +++---
 xen/include/xen/unaligned.h             | 2 +-
 xen/include/xen/vpci.h                  | 2 +-
 5 files changed, 9 insertions(+), 8 deletions(-)