Skip to content

Commit 0163005

Browse files
committed
LoongArch: Adjust arch_do_signal_or_restart() to adapt generic entry
Commit 8ba62d3 ("task_work: Call tracehook_notify_signal from get_signal on all architectures") adjust arch_do_signal_or_restart() for all architectures. LoongArch hasn't been upstream yet at that time and can be still built successfully without adjustment because this function has a weak version with the correct prototype. It is obviously that we should convert LoongArch to use new API, otherwise some signal handlings will be lost. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 1429cfd commit 0163005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/loongarch/kernel/signal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,11 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs)
529529
signal_setup_done(ret, ksig, 0);
530530
}
531531

532-
void arch_do_signal_or_restart(struct pt_regs *regs, bool has_signal)
532+
void arch_do_signal_or_restart(struct pt_regs *regs)
533533
{
534534
struct ksignal ksig;
535535

536-
if (has_signal && get_signal(&ksig)) {
536+
if (get_signal(&ksig)) {
537537
/* Whee! Actually deliver the signal. */
538538
handle_signal(&ksig, regs);
539539
return;

0 commit comments

Comments
 (0)