Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

LoongArch: Remove some extern variables in source files

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>

authored by

Tiezhu Yang and committed by
Huacai Chen
0e6f596d 70b0faae

-7
-2
arch/loongarch/kernel/unwind_orc.c
··· 350 350 351 351 static inline unsigned long bt_address(unsigned long ra) 352 352 { 353 - extern unsigned long eentry; 354 - 355 353 #if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT) 356 354 int cpu; 357 355 int vec_sz = sizeof(exception_handlers);
-4
arch/loongarch/kernel/unwind_prologue.c
··· 23 23 extern const int unwind_hint_lbt; 24 24 extern const int unwind_hint_ri; 25 25 extern const int unwind_hint_watch; 26 - extern unsigned long eentry; 27 - #ifdef CONFIG_NUMA 28 - extern unsigned long pcpu_handlers[NR_CPUS]; 29 - #endif 30 26 31 27 static inline bool scan_handlers(unsigned long entry_offset) 32 28 {
-1
arch/loongarch/mm/tlb.c
··· 262 262 #ifdef CONFIG_NUMA 263 263 unsigned long pcpu_handlers[NR_CPUS]; 264 264 #endif 265 - extern long exception_handlers[VECSIZE * 128 / sizeof(long)]; 266 265 267 266 static void setup_tlb_handler(int cpu) 268 267 {