 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] x86/DMI: adjustments to comply with Misra C:2012 Rule 9.3
 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 dedicatedinitializers be used). Introduce a small set of macros to allow doing so without unduly affecting use sites (in particular in terms of how manyelements .matches[] actually has; right now there's no use ofDMI_MATCH4(), so we could even consider reducing the array size to 3).Note that DMI_MATCH() needs adjustment because of the comma included inits expansion, which - due to being unparenthesized - would otherwise cause macro arguments in the "further replacement" step to be wrong. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> ---Of course a question is how many of these DMI table entries are in fact Yes -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com) 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |