On 01.08.2023 09:20, Nicola Vetrini wrote: > On 31/07/2023 16:34, Jan Beulich wrote: >> On 31.07.2023 15:35, Nicola Vetrini wrote: >>> --- a/xen/common/compat/memory.c >>> +++ b/xen/common/compat/memory.c >>> @@ -321,12 +321,12 @@ int compat_memory_op(unsigned int cmd, >>> XEN_GUEST_HANDLE_PARAM(void) compat) >>> >>> case XENMEM_remove_from_physmap: >>> { >>> - struct compat_remove_from_physmap cmp; >>> + struct compat_remove_from_physmap c; >> >> The intention of the outer scope cmp is to avoid such inner scope >> ones then consuming extra stack space. This wants making part of the >> union there. >> > > Makes sense, though I've not been able to find a definition for the type > 'struct compat_remove_from_physmap'.
This is a generated type, so you'll need to look in the build tree under xen/include/compat/. (In this context I'm curious how Misra and Eclair deal with generated code.) Jan