]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mach-apic: Move generic_*_probe() declarations into genapic.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 17:34:32 +0000 (17:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2024 15:25:38 +0000 (15:25 +0000)
... as the implementations are in genapic/probe.c

This covers the only functions that both setup.c and boot.c were including
mach_apic.h for, although setup.c was depending on io_apic.h transitively too.

The happens to address two MISRA Rule 8.4 violations, as probe.c couldn't
previously see the declarations.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/boot.c
xen/arch/x86/include/asm/genapic.h
xen/arch/x86/include/asm/mach-generic/mach_apic.h
xen/arch/x86/setup.c

index 170f9783c55e83a912c166ac1216e688fa68f715..3901f9d9825b7941dc0f542697e9fdab132cf3f6 100644 (file)
@@ -38,7 +38,7 @@
 #include <asm/mpspec.h>
 #include <asm/processor.h>
 #include <asm/hpet.h> /* for hpet_address */
-#include <mach_apic.h>
+#include <asm/genapic.h>
 
 #define PREFIX                 "ACPI: "
 
index 4d39fb9a244b2c5ceea8fd4f111e3f3bb2b3cebd..6c8845d17d27f1bf51ecc2310ca6e5618926ee96 100644 (file)
@@ -51,4 +51,7 @@ unsigned int cf_check cpu_mask_to_apicid_phys(const cpumask_t *cpumask);
 void cf_check send_IPI_mask_phys(const cpumask_t *mask, int vector);
 const cpumask_t *cf_check vector_allocation_cpumask_phys(int cpu);
 
+void generic_apic_probe(void);
+void generic_bigsmp_probe(void);
+
 #endif
index c0d8b232c9eb37af1765c0935a8a3d15bb35f505..50f39b72ccfb385c8644556335ac6146ec79804f 100644 (file)
@@ -39,9 +39,6 @@ static inline int multi_timer_check(int apic, int irq)
        return 0;
 }
 
-extern void generic_apic_probe(void);
-extern void generic_bigsmp_probe(void);
-
 /*
  * The following functions based around phys_cpu_present_map are disabled in
  * some i386 Linux subarchitectures, and in x86_64 'cluster' genapic mode. I'm
index eac8488c4ca5415354655c1809b38249433a460d..4feef9f2e05ab418266ae0968e5651cbc1a291ad 100644 (file)
@@ -46,7 +46,8 @@
 #include <xsm/xsm.h>
 #include <asm/tboot.h>
 #include <asm/bzimage.h> /* for bzimage_headroom */
-#include <asm/mach-generic/mach_apic.h> /* for generic_apic_probe */
+#include <asm/genapic.h>
+#include <asm/io_apic.h>
 #include <asm/setup.h>
 #include <xen/cpu.h>
 #include <xen/cpuidle.h>