[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 1/2] x86/IOMMU: address violations of MISRA C:2012 Rule 14.4
On Mon, 5 Feb 2024, Jan Beulich wrote: > On 05.02.2024 16:36, Nicola Vetrini wrote: > > On 2023-12-13 17:10, Simone Ballarin wrote: > >> From: Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx> > >> > >> 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. > >> No functional change. > >> > >> Signed-off-by: Maria Celeste Cesario > >> <maria.celeste.cesario@xxxxxxxxxxx> > >> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx> > >> --- > >> Changes in v2 > >> - rename prefix from AMD/IOMMU to x86/IOMMU > >> - move changes on msi.c and hpet.c in this patch. > >> --- > >> xen/arch/x86/hpet.c | 6 +++--- > >> xen/arch/x86/msi.c | 4 ++-- > >> xen/drivers/passthrough/amd/iommu_init.c | 4 ++-- > >> xen/drivers/passthrough/vtd/iommu.c | 4 ++-- > >> xen/drivers/passthrough/vtd/quirks.c | 2 +- > >> 5 files changed, 10 insertions(+), 10 deletions(-) > >> > > > > +Stefano > > > > Hi all, > > > > this patch seems not to have been committed into staging, unlike the > > other patch from this series. Since these are the only remaining > > violations for Rule 14.4, then I think these changes could be reviewed. > > It's no surprise the change isn't committed yet, when it hasn't had any > of the necessary tags. As far as I'm concerned, I seem to recall > indicating clearly that I'm not happy with this change, and hence acks > would need to come from elsewhere. Thanks Jan for not blocking it. I gave my reviewed-by, let's see if one of the other x86 maintainers is OK to ack it.
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |