FAILED: Patch "LoongArch: Remove some extern variables in source files" failed to apply to 5.10-stable tree
Subsystems (2)
Sasha Levin
maintainerThe patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 0e6f596d6ac635e80bb265d587b2287ef8fa1cd6 Mon Sep 17 00:00:00 2001
From: Tiezhu Yang <[email protected]>
Date: Tue, 10 Feb 2026 19:31:14 +0800
Subject: [PATCH] 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.
--- arch/loongarch/kernel/unwind_orc.c | 2 -- arch/loongarch/kernel/unwind_prologue.c | 4 ---- arch/loongarch/mm/tlb.c | 1 - 3 files changed, 7 deletions(-)
arch/loongarch/kernel/unwind_orc.c +0 -2
@@ -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);
arch/loongarch/kernel/unwind_prologue.c +0 -4
@@ -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) {
arch/loongarch/mm/tlb.c +0 -1
@@ -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) {
Signature · 1 line
2.51.0