All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xen: address violations of MISRA C:2012 Rule 14.4
@ 2023-12-13 16:10 Simone Ballarin
  2023-12-13 16:10 ` [PATCH v2 1/2] x86/IOMMU: " Simone Ballarin
  2023-12-13 16:10 ` [PATCH v2 2/2] xen/x86_emulate: " Simone Ballarin
  0 siblings, 2 replies; 11+ messages in thread
From: Simone Ballarin @ 2023-12-13 16:10 UTC (permalink / raw)
  To: xen-devel
  Cc: consulting, Maria Celeste Cesario, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Wei Liu, Kevin Tian

From: Maria Celeste Cesario <maria.celeste.cesario@bugseng.com>

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(-)

-- 
2.40.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-15 11:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 16:10 [PATCH v2 0/2] xen: address violations of MISRA C:2012 Rule 14.4 Simone Ballarin
2023-12-13 16:10 ` [PATCH v2 1/2] x86/IOMMU: " Simone Ballarin
2024-02-05 15:36   ` Nicola Vetrini
2024-02-05 15:47     ` Jan Beulich
2024-02-07  0:52       ` Stefano Stabellini
2024-02-07  0:51   ` Stefano Stabellini
2024-02-07  7:20     ` Jan Beulich
2024-03-12 11:01   ` Roger Pau Monné
2024-03-15 11:20     ` Nicola Vetrini
2023-12-13 16:10 ` [PATCH v2 2/2] xen/x86_emulate: " Simone Ballarin
2023-12-14 10:40   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.