Re: [XEN PATCH v4] xen/domain: deviate MISRA C Rule 16.2 violation

2024-04-19 Thread Jan Beulich
On 19.04.2024 09:05, Nicola Vetrini wrote: > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -457,6 +457,7 @@ static int domain_teardown(struct domain *d) > > for_each_vcpu ( d, v ) > { > +/* SAF-5-safe MISRA C Rule 16.2: switch label enclosed by for >

[XEN PATCH v4] xen/domain: deviate MISRA C Rule 16.2 violation

2024-04-19 Thread Nicola Vetrini
MISRA C Rule 16.2 states: "A switch label shall only be used when the most closely-enclosing compound statement is the body of a switch statement". The PROGRESS_VCPU local helper specifies a case that is directly inside the compound statement of a for loop, hence violating the rule. To avoid