From: Nicola Vetrini <nicola.vetrini@bugseng.com>
The rule disallows the usage of an identifier reserved by the C standard.
All identfiers starting with '__' are reserved for any use, so the label
can be renamed in order to avoid the violation.
No functional change.
Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
---
xen/arch/x86/apic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c
index 6567af685a..2a60e6fe26 100644
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -925,7 +925,7 @@ void __init init_apic_mappings(void)
unsigned long apic_phys;
if ( x2apic_enabled )
- goto __next;
+ goto next;
/*
* If no local APIC can be found then set up a fake all
* zeroes page to simulate the local APIC and another
@@ -941,7 +941,7 @@ void __init init_apic_mappings(void)
apic_printk(APIC_VERBOSE, "mapped APIC to %08Lx (%08lx)\n", APIC_BASE,
apic_phys);
-__next:
+next:
/*
* Fetch the APIC ID of the BSP in case we have a
* default configuration (or the MP table is broken).
--
2.34.1
On 19.06.2024 19:09, Alessandro Zucchelli wrote: > From: Nicola Vetrini <nicola.vetrini@bugseng.com> > > The rule disallows the usage of an identifier reserved by the C standard. > All identfiers starting with '__' are reserved for any use, so the label > can be renamed in order to avoid the violation. > > No functional change. > > Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com> While the code change is certainly okay (with a cosmetic remark below), you sending a change Nicola made requires, aiui, you own S-o-b as well. > @@ -941,7 +941,7 @@ void __init init_apic_mappings(void) > apic_printk(APIC_VERBOSE, "mapped APIC to %08Lx (%08lx)\n", APIC_BASE, > apic_phys); > > -__next: > +next: While touching this (or any) label, can you please also make sure that from now on it respects this section of ./CODING_STYLE (part of the section "Indentation")? "Due to the behavior of GNU diffutils "diff -p", labels should be indented by at least one blank. Non-case labels inside switch() bodies are preferred to be indented the same as the block's case labels." Jan
© 2016 - 2024 Red Hat, Inc.