From 95e99f1579cb1a34b8178101d92c26f5337a8888 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 12 Apr 2026 17:10:21 +0200 Subject: [PATCH] Revert "LoongArch: Remove some extern variables in source files" This reverts commit 57b36d4c3474fccfad253d79e684505ce39ce853. --- arch/loongarch/kernel/unwind_prologue.c | 4 ++++ arch/loongarch/mm/tlb.c | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/loongarch/kernel/unwind_prologue.c b/arch/loongarch/kernel/unwind_prologue.c index d4c42dc67134..c9ee6892d81c 100644 --- a/arch/loongarch/kernel/unwind_prologue.c +++ b/arch/loongarch/kernel/unwind_prologue.c @@ -22,6 +22,10 @@ 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) { diff --git a/arch/loongarch/mm/tlb.c b/arch/loongarch/mm/tlb.c index 24add95ecb65..f46c15d6e7ea 100644 --- a/arch/loongarch/mm/tlb.c +++ b/arch/loongarch/mm/tlb.c @@ -260,6 +260,7 @@ 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) { -- 2.53.0