[PATCH -next] x86/apic: Remove unused extern declarations

Yue Haibing posted 1 patch 1 year, 6 months ago
There is a newer version of this series
arch/x86/include/asm/apic.h | 6 ------
1 file changed, 6 deletions(-)
[PATCH -next] x86/apic: Remove unused extern declarations
Posted by Yue Haibing 1 year, 6 months ago
Commit 517234446c1a ("x86/apic: Get rid of get_physical_broadcast()")
removed get_physical_broadcast() but leave the declaration. And
commit 79c9a17c16e9 ("x86/apic/32: Decrapify the def_bigsmp mechanism")
leave generic_bigsmp_probe() declaration. Commit d8666cf78020 ("x86/apic:
Sanitize APIC ID range validation") leave default_apic_id_valid() declaration.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 arch/x86/include/asm/apic.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index 9dd22ee27117..d48c03e947d3 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -127,8 +127,6 @@ static inline bool apic_is_x2apic_enabled(void)
 
 extern void enable_IR_x2apic(void);
 
-extern int get_physical_broadcast(void);
-
 extern int lapic_get_maxlvt(void);
 extern void clear_local_APIC(void);
 extern void disconnect_bsp_APIC(int virt_wire_setup);
@@ -516,8 +514,6 @@ static inline bool is_vector_pending(unsigned int vector)
 #define TRAMPOLINE_PHYS_LOW		0x467
 #define TRAMPOLINE_PHYS_HIGH		0x469
 
-extern void generic_bigsmp_probe(void);
-
 #ifdef CONFIG_X86_LOCAL_APIC
 
 #include <asm/smp.h>
@@ -540,8 +536,6 @@ static inline int default_acpi_madt_oem_check(char *a, char *b) { return 0; }
 static inline void x86_64_probe_apic(void) { }
 #endif
 
-extern int default_apic_id_valid(u32 apicid);
-
 extern u32 apic_default_calc_apicid(unsigned int cpu);
 extern u32 apic_flat_calc_apicid(unsigned int cpu);
 
-- 
2.34.1
[tip: x86/apic] x86/apic: Remove unused extern declarations
Posted by tip-bot2 for Yue Haibing 1 year, 5 months ago
The following commit has been merged into the x86/apic branch of tip:

Commit-ID:     2db5f86c0d5da9ef0f3a1a5a9c460bf0f36268bf
Gitweb:        https://git.kernel.org/tip/2db5f86c0d5da9ef0f3a1a5a9c460bf0f36268bf
Author:        Yue Haibing <yuehaibing@huawei.com>
AuthorDate:    Sat, 10 Aug 2024 17:36:10 +08:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 13 Aug 2024 12:00:09 +02:00

x86/apic: Remove unused extern declarations

The removal of get_physical_broadcast(), generic_bigsmp_probe() and
default_apic_id_valid() left the stale declarations around.

Remove them.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240810093610.2586665-1-yuehaibing@huawei.com
---
 arch/x86/include/asm/apic.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index 53f0844..f21ff19 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -127,8 +127,6 @@ static inline bool apic_is_x2apic_enabled(void)
 
 extern void enable_IR_x2apic(void);
 
-extern int get_physical_broadcast(void);
-
 extern int lapic_get_maxlvt(void);
 extern void clear_local_APIC(void);
 extern void disconnect_bsp_APIC(int virt_wire_setup);
@@ -508,8 +506,6 @@ static inline bool is_vector_pending(unsigned int vector)
 #define TRAMPOLINE_PHYS_LOW		0x467
 #define TRAMPOLINE_PHYS_HIGH		0x469
 
-extern void generic_bigsmp_probe(void);
-
 #ifdef CONFIG_X86_LOCAL_APIC
 
 #include <asm/smp.h>
@@ -532,8 +528,6 @@ static inline int default_acpi_madt_oem_check(char *a, char *b) { return 0; }
 static inline void x86_64_probe_apic(void) { }
 #endif
 
-extern int default_apic_id_valid(u32 apicid);
-
 extern u32 apic_default_calc_apicid(unsigned int cpu);
 extern u32 apic_flat_calc_apicid(unsigned int cpu);