|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v3 1/2] x86/vmsi: rename variables to address MISRA C:2012 Rule 5.3
On 08/08/2023 15:22, Jan Beulich wrote: On 08.08.2023 14:22, Nicola Vetrini wrote:The local variables 'irq_desc' shadow the homonymous global variable,declared in 'xen/arch/x86/include/asm/irq.h', therefore they are renamed'irqd' for consistency with ARM code. Other variables of the same type in the file are also renamed 'irqd' for consistency.I'm pretty sure I pointed out that Arm uses a mix of "desc" and "irqd". So "consistency with ARM code" doesn't ...--- a/xen/arch/x86/hvm/vmsi.c +++ b/xen/arch/x86/hvm/vmsi.c@@ -281,7 +281,7 @@ static int msixtbl_write(struct vcpu *v, unsigned long address, Well, but having struct irq_desc *desc; struct msi_desc *msi_desc;and then using them both within the function doesn't seem that readable, but if you prefer "desc" I have no objection (just two local variables that need to be changed). -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |