LoongArch: signal.c: add header file to fix build error

Message ID 20231219232347.19479-1-rdunlap@infradead.org
State New
Headers
Series LoongArch: signal.c: add header file to fix build error |

Commit Message

Randy Dunlap Dec. 19, 2023, 11:23 p.m. UTC
  loongarch's signal.c uses rseq_signal_deliver() so it should
pull in the appropriate header to prevent a build error:

../arch/loongarch/kernel/signal.c: In function 'handle_signal':
../arch/loongarch/kernel/signal.c:1034:9: error: implicit declaration of function 'rseq_signal_deliver' [-Werror=implicit-function-declaration]
 1034 |         rseq_signal_deliver(ksig, regs);
      |         ^~~~~~~~~~~~~~~~~~~

Fixes: b74baf4ad05b ("LoongArch: Add signal handling support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
M:	Huacai Chen <chenhuacai@kernel.org>
R:	WANG Xuerui <kernel@xen0n.name>
L:	loongarch@lists.linux.dev

---
 arch/loongarch/kernel/signal.c |    1 +
 1 file changed, 1 insertion(+)
  

Patch

diff -- a/arch/loongarch/kernel/signal.c b/arch/loongarch/kernel/signal.c
--- a/arch/loongarch/kernel/signal.c
+++ b/arch/loongarch/kernel/signal.c
@@ -15,6 +15,7 @@ 
 #include <linux/context_tracking.h>
 #include <linux/entry-common.h>
 #include <linux/irqflags.h>
+#include <linux/rseq.h>
 #include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/personality.h>