Skip to content

Commit 6e5416d

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Remove is_entry_func() and kernel_entry_end
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>
1 parent 1b2f470 commit 6e5416d

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

arch/loongarch/kernel/head.S

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,3 @@ SYM_CODE_START(smpboot_entry)
144144
SYM_CODE_END(smpboot_entry)
145145

146146
#endif /* CONFIG_SMP */
147-
148-
SYM_ENTRY(kernel_entry_end, SYM_L_GLOBAL, SYM_A_NONE)

arch/loongarch/kernel/unwind_orc.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,6 @@ void unwind_start(struct unwind_state *state, struct task_struct *task,
348348
}
349349
EXPORT_SYMBOL_GPL(unwind_start);
350350

351-
static bool is_entry_func(unsigned long addr)
352-
{
353-
extern u32 kernel_entry;
354-
extern u32 kernel_entry_end;
355-
356-
return addr >= (unsigned long)&kernel_entry && addr < (unsigned long)&kernel_entry_end;
357-
}
358-
359351
static inline unsigned long bt_address(unsigned long ra)
360352
{
361353
extern unsigned long eentry;
@@ -402,9 +394,6 @@ bool unwind_next_frame(struct unwind_state *state)
402394
/* Don't let modules unload while we're reading their ORC data. */
403395
guard(rcu)();
404396

405-
if (is_entry_func(state->pc))
406-
goto end;
407-
408397
orc = orc_find(state->pc);
409398
if (!orc) {
410399
/*

0 commit comments

Comments
 (0)