]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
LoongArch: Remove is_entry_func() and kernel_entry_end
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 31 Dec 2025 07:19:10 +0000 (15:19 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 31 Dec 2025 07:19:10 +0000 (15:19 +0800)
For now, the related code of is_entry_func() is useless, so they can be
removed. Then the symbol kernel_entry_end is not used any more, so it can
be removed too.

Link: https://lore.kernel.org/lkml/kjiyla6qj3l7ezspitulrdoc5laj2e6hoecvd254hssnpddczm@g6nkaombh6va/
Suggested-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
arch/loongarch/kernel/head.S
arch/loongarch/kernel/unwind_orc.c

index ce7f6c04f4ab4649fc50daccbb4d0d784997690b..7f288e89573b7bd876d9769add8c112519cc2c7f 100644 (file)
@@ -144,5 +144,3 @@ SYM_CODE_START(smpboot_entry)
 SYM_CODE_END(smpboot_entry)
 
 #endif /* CONFIG_SMP */
-
-SYM_ENTRY(kernel_entry_end, SYM_L_GLOBAL, SYM_A_NONE)
index 0d5fa64a222522897df7f7c4bfbad8d2262a207e..710f82d73797b1d03d69485ba674f4c4f05079b5 100644 (file)
@@ -348,14 +348,6 @@ void unwind_start(struct unwind_state *state, struct task_struct *task,
 }
 EXPORT_SYMBOL_GPL(unwind_start);
 
-static bool is_entry_func(unsigned long addr)
-{
-       extern u32 kernel_entry;
-       extern u32 kernel_entry_end;
-
-       return addr >= (unsigned long)&kernel_entry && addr < (unsigned long)&kernel_entry_end;
-}
-
 static inline unsigned long bt_address(unsigned long ra)
 {
        extern unsigned long eentry;
@@ -402,9 +394,6 @@ bool unwind_next_frame(struct unwind_state *state)
        /* Don't let modules unload while we're reading their ORC data. */
        guard(rcu)();
 
-       if (is_entry_func(state->pc))
-               goto end;
-
        orc = orc_find(state->pc);
        if (!orc) {
                /*