Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-12-04 Thread Jan Beulich
On 04.12.2023 12:52, Nicola Vetrini wrote: > On 2023-11-30 15:56, Jan Beulich wrote: >> On 30.11.2023 08:55, Jan Beulich wrote: >>> The rule demands that all array elements be initialized (or dedicated >>> initializers be used). Introduce a small set of macros to allow doing >>> so >>> without und

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-12-04 Thread Nicola Vetrini
On 2023-11-30 15:56, Jan Beulich wrote: On 30.11.2023 08:55, Jan Beulich wrote: The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affecting use sites (in particular in terms of how many

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Jan Beulich
On 30.11.2023 08:55, Jan Beulich wrote: > The rule demands that all array elements be initialized (or dedicated > initializers be used). Introduce a small set of macros to allow doing so > without unduly affecting use sites (in particular in terms of how many > elements .matches[] actually has; rig

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Nicola Vetrini
On 2023-11-30 13:03, Andrew Cooper wrote: On 30/11/2023 12:00 pm, Nicola Vetrini wrote: On 2023-11-30 08:55, Jan Beulich wrote: The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affectin

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Andrew Cooper
On 30/11/2023 12:00 pm, Nicola Vetrini wrote: > On 2023-11-30 08:55, Jan Beulich wrote: >> The rule demands that all array elements be initialized (or dedicated >> initializers be used). Introduce a small set of macros to allow doing so >> without unduly affecting use sites (in particular in terms

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Nicola Vetrini
On 2023-11-30 08:55, Jan Beulich wrote: The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affecting use sites (in particular in terms of how many elements .matches[] actually has; right n

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Nicola Vetrini
On 2023-11-30 11:27, Andrew Cooper wrote: On 30/11/2023 9:47 am, Nicola Vetrini wrote: On 2023-11-30 08:55, Jan Beulich wrote: The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affecting

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Andrew Cooper
On 30/11/2023 9:47 am, Nicola Vetrini wrote: > On 2023-11-30 08:55, Jan Beulich wrote: >> The rule demands that all array elements be initialized (or dedicated >> initializers be used). Introduce a small set of macros to allow doing so >> without unduly affecting use sites (in particular in terms o

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Jan Beulich
On 30.11.2023 10:47, Nicola Vetrini wrote: > On 2023-11-30 08:55, Jan Beulich wrote: >> The rule demands that all array elements be initialized (or dedicated >> initializers be used). Introduce a small set of macros to allow doing >> so >> without unduly affecting use sites (in particular in terms

Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-30 Thread Nicola Vetrini
On 2023-11-30 08:55, Jan Beulich wrote: The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affecting use sites (in particular in terms of how many elements .matches[] actually has; right n

[PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3

2023-11-29 Thread Jan Beulich
The rule demands that all array elements be initialized (or dedicated initializers be used). Introduce a small set of macros to allow doing so without unduly affecting use sites (in particular in terms of how many elements .matches[] actually has; right now there's no use of DMI_MATCH4(), so we cou