From 920985c3136dc1510f8a3379b01b3fc42bbbc309 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 18 May 2026 09:00:23 +0200 Subject: [PATCH] x86/guest: rename a local variable ... shadowing a file scope one, thuis violating Misra C:2012 rule 5.3 ("An identifier declared in an inner scope shall not hide an identifier declared in an outer scope"). No difference in generated code. Signed-off-by: Jan Beulich Reviewed-by: Nicola Vetrini Acked-by: Andrew Cooper --- xen/arch/x86/guest/xen/xen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/guest/xen/xen.c b/xen/arch/x86/guest/xen/xen.c index 315e5ded05..a184c51ef1 100644 --- a/xen/arch/x86/guest/xen/xen.c +++ b/xen/arch/x86/guest/xen/xen.c @@ -203,11 +203,11 @@ static void __init init_memmap(void) static void cf_check xen_evtchn_upcall(void) { - struct vcpu_info *vcpu_info = this_cpu(vcpu_info); + struct vcpu_info *vi = this_cpu(vcpu_info); unsigned long pending; - vcpu_info->evtchn_upcall_pending = 0; - pending = xchg(&vcpu_info->evtchn_pending_sel, 0); + vi->evtchn_upcall_pending = 0; + pending = xchg(&vi->evtchn_pending_sel, 0); while ( pending ) {