|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v2 4/4] x86/setup: address MISRA C:2012 Rule 5.3
On 07/08/2023 15:05, Jan Beulich wrote: On 04.08.2023 10:03, Nicola Vetrini wrote:The parameters renamed in the function declaration caused shadowing with the homonymous variable in 'xen/common/efi/boot.c'. Renaming them also addresses Rule 8.3: "All declarations of an object or function shall use the same names and type qualifiers".Can you explain to me how shadowing can happen in a declaration? I would focus on 8.3 here, and only mention the other name collision. There's "static struct file __initdata kernel;" in xen/common/efi/boot.c, which is visible when the function is declared. Since renaming these parameter names would have been addressed by Federico for R8.3 anyway, my intention was to address them both. --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c@@ -1577,8 +1577,7 @@ void __init noreturn __start_xen(unsigned long mbi_p) I guess I should have mentioned it -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |