Re: [XEN PATCH] xen: add explicit comment to identify notifier patterns

2024-06-20 Thread Jan Beulich
On 21.06.2024 03:09, Stefano Stabellini wrote: > On Mon, 17 Jun 2024, Jan Beulich wrote: >> On 17.06.2024 11:49, Federico Serafini wrote: >>> MISRA C Rule 16.4 states that every `switch' statement shall have a >>> `default' label" and a statement or a comment prior to the >>> terminating break stat

Re: [XEN PATCH] xen: add explicit comment to identify notifier patterns

2024-06-20 Thread Stefano Stabellini
On Mon, 17 Jun 2024, Jan Beulich wrote: > On 17.06.2024 11:49, Federico Serafini wrote: > > MISRA C Rule 16.4 states that every `switch' statement shall have a > > `default' label" and a statement or a comment prior to the > > terminating break statement. > > > > This patch addresses some violatio

Re: [XEN PATCH] xen: add explicit comment to identify notifier patterns

2024-06-17 Thread Federico Serafini
On 17/06/24 12:03, Jan Beulich wrote: On 17.06.2024 11:49, Federico Serafini wrote: MISRA C Rule 16.4 states that every `switch' statement shall have a `default' label" and a statement or a comment prior to the terminating break statement. This patch addresses some violations of the rule relate

Re: [XEN PATCH] xen: add explicit comment to identify notifier patterns

2024-06-17 Thread Jan Beulich
On 17.06.2024 11:49, Federico Serafini wrote: > MISRA C Rule 16.4 states that every `switch' statement shall have a > `default' label" and a statement or a comment prior to the > terminating break statement. > > This patch addresses some violations of the rule related to the > "notifier pattern":

[XEN PATCH] xen: add explicit comment to identify notifier patterns

2024-06-17 Thread Federico Serafini
MISRA C Rule 16.4 states that every `switch' statement shall have a `default' label" and a statement or a comment prior to the terminating break statement. This patch addresses some violations of the rule related to the "notifier pattern": a frequently-used pattern whereby only a few values are ha