Skip to content

Commit 0e6f596

Browse files
seehearfeelchenhuacai
authored andcommitted
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>
1 parent 70b0faa commit 0e6f596

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

arch/loongarch/kernel/unwind_orc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,6 @@ EXPORT_SYMBOL_GPL(unwind_start);
350350

351351
static inline unsigned long bt_address(unsigned long ra)
352352
{
353-
extern unsigned long eentry;
354-
355353
#if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
356354
int cpu;
357355
int vec_sz = sizeof(exception_handlers);

arch/loongarch/kernel/unwind_prologue.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ extern const int unwind_hint_lasx;
2323
extern const int unwind_hint_lbt;
2424
extern const int unwind_hint_ri;
2525
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
3026

3127
static inline bool scan_handlers(unsigned long entry_offset)
3228
{

arch/loongarch/mm/tlb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ static void output_pgtable_bits_defines(void)
262262
#ifdef CONFIG_NUMA
263263
unsigned long pcpu_handlers[NR_CPUS];
264264
#endif
265-
extern long exception_handlers[VECSIZE * 128 / sizeof(long)];
266265

267266
static void setup_tlb_handler(int cpu)
268267
{

0 commit comments

Comments
 (0)