Skip to content

xen: address violations of MISRA C:2012 Rule 14.4

Simone Ballarin xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 8 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- rename patch prefix from AMD/IOMMU to x86/IOMMU;
- move changes on hpet.c and msi.c from xen/x86 to x86/IOMMU patch;
- rename patch prefix from xen/x86 to xen/x86_emulate.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/IOMMU: address violations of MISRA C:2012 Rule 14.4xen/arch/x86/hpet.c xen/arch/x86/msi.c xen/drivers/passthrough/amd/iommu_init.c +2 more+10 -107 replies
2/2xen/x86_emulate: address violations of MISRA C:2012 Rule 14.4xen/arch/x86/x86_emulate/x86_emulate.c+4 -41 reply

Reviews trailers per patch

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

PatchJan BeulichStefano Stabellini
1/2R-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] xen: address violations of MISRA C:2012 Rule 14.4

From: Maria Celeste Cesario <[email protected]>

The xen sources contain violations of MISRA C:2012 Rule 14.4 whose headline states:
"The controlling expression of an if statement and the controlling expression of an iteration-statement shall have essentially Boolean type".

Add comparisons to avoid using enum constants as controlling expressions to comply with Rule 14.4.

Changes in v2:
- rename patch prefix from AMD/IOMMU to x86/IOMMU;
- move changes on hpet.c and msi.c from xen/x86 to x86/IOMMU patch;
- rename patch prefix from xen/x86 to xen/x86_emulate.

Maria Celeste Cesario (2):
x86/IOMMU: address violations of MISRA C:2012 Rule 14.4 xen/x86_emulate: address violations of MISRA C:2012 Rule 14.4

 xen/arch/x86/hpet.c                      | 6 +++---
 xen/arch/x86/msi.c                       | 4 ++--
 xen/arch/x86/x86_emulate/x86_emulate.c   | 8 ++++----
 xen/drivers/passthrough/amd/iommu_init.c | 4 ++--
 xen/drivers/passthrough/vtd/iommu.c      | 4 ++--
 xen/drivers/passthrough/vtd/quirks.c     | 2 +-
 6 files changed, 14 insertions(+), 14 deletions(-)
Signature · 1 line
2.40.0