]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
LoongArch: Remove some extern variables in source files
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 10 Feb 2026 11:31:14 +0000 (19:31 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Tue, 10 Feb 2026 11:31:14 +0000 (19:31 +0800)
There are declarations of the variable "eentry", "pcpu_handlers[]" and
"exception_handlers[]" in asm/setup.h, the source files already include
this header file directly or indirectly, so no need to declare them in
the source files, just remove the code.

Cc: stable@vger.kernel.org
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/unwind_orc.c
arch/loongarch/kernel/unwind_prologue.c
arch/loongarch/mm/tlb.c

index 11ba3e4ac9eee94f4830ec472dd00d7aa639fe40..9cfb5bb1991f26047bddefb86b2749e5a86014d2 100644 (file)
@@ -350,8 +350,6 @@ EXPORT_SYMBOL_GPL(unwind_start);
 
 static inline unsigned long bt_address(unsigned long ra)
 {
-       extern unsigned long eentry;
-
 #if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
        int cpu;
        int vec_sz = sizeof(exception_handlers);
index ee1c29686ab050dc87a11ded9fde52eb23f3fd04..da07acad7973aa15af3de21d26770137ec0a219c 100644 (file)
@@ -23,10 +23,6 @@ extern const int unwind_hint_lasx;
 extern const int unwind_hint_lbt;
 extern const int unwind_hint_ri;
 extern const int unwind_hint_watch;
-extern unsigned long eentry;
-#ifdef CONFIG_NUMA
-extern unsigned long pcpu_handlers[NR_CPUS];
-#endif
 
 static inline bool scan_handlers(unsigned long entry_offset)
 {
index 6a3c91b9cacdcf30cfa341457822de9640ad3a75..4014c44695878222829a033050ce77bfb009ea88 100644 (file)
@@ -262,7 +262,6 @@ static void output_pgtable_bits_defines(void)
 #ifdef CONFIG_NUMA
 unsigned long pcpu_handlers[NR_CPUS];
 #endif
-extern long exception_handlers[VECSIZE * 128 / sizeof(long)];
 
 static void setup_tlb_handler(int cpu)
 {