Skip to contentSkip to conversation

riscv: Remove unused asm/signal.h file

PATCH Superseded Stafford Horne 2 participants 2 messages Mar 10, 2024 – Mar 11, 2024 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: Remove unused asm/signal.h file

When riscv moved to common entry the definition and usage of do_work_pending was removed. This unused header file remains.

Remove the header file as it is not used.

I have tested compiling the kernel with this patch applied and saw no issues. Noticed when auditing how different ports handle signals related to saving FPU state.

Fixes f0bddf50586d ("riscv: entry: Convert to generic entry")
---
 arch/riscv/include/asm/signal.h | 12 ------------
 1 file changed, 12 deletions(-)
 delete mode 100644 arch/riscv/include/asm/signal.h
arch/riscv/include/asm/signal.h deleted +0 -12
deleted file mode 100644
index 956ae0a01bad..000000000000
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef __ASM_SIGNAL_H
-#define __ASM_SIGNAL_H
-
-#include <uapi/asm/signal.h>
-#include <uapi/asm/ptrace.h>
-
-asmlinkage __visible
-void do_work_pending(struct pt_regs *regs, unsigned long thread_info_flags);
-
-#endif
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Stafford Horne

When riscv moved to common entry the definition and usage of do_work_pending was removed. This unused header file remains.

Remove the header file as it is not used.

I have tested compiling the kernel with this patch applied and saw no issues. Noticed when auditing how different ports handle signals related to saving FPU state.

Fixes f0bddf50586d ("riscv: entry: Convert to generic entry")
---
 arch/riscv/include/asm/signal.h | 12 ------------
 1 file changed, 12 deletions(-)
 delete mode 100644 arch/riscv/include/asm/signal.h
arch/riscv/include/asm/signal.h deleted +0 -0
deleted file mode 100644
index 956ae0a01bad..000000000000

arch/riscv/include/asm/signal.h line 10

Quoted 10 lines
arch/riscv/include/asm/signal.h deleted +0 -10
@@ -1,12 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef __ASM_SIGNAL_H
-#define __ASM_SIGNAL_H
-
-#include <uapi/asm/signal.h>
-#include <uapi/asm/ptrace.h>
-
-asmlinkage __visible
-void do_work_pending(struct pt_regs *regs, unsigned long thread_info_flags);

No more calling in arch/riscv for do_work_pending.

Quoted 5 lines
arch/riscv/include/asm/signal.h deleted +0 -3
-
-#endif
--

2.41.0

LGTM, Thx.

Signature · 2 lines
Best Regards
 Guo Ren