public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] riscv: vector: Fixup modules compile error
@ 2023-05-29  7:38 guoren
  2023-05-29 13:42 ` Conor Dooley
  0 siblings, 1 reply; 9+ messages in thread
From: guoren @ 2023-05-29  7:38 UTC (permalink / raw)
  To: guoren, greentime.hu, vincent.chen, andy.chiu, paul.walmsley,
	palmer
  Cc: linux-riscv, linux-kernel, Guo Ren

From: Guo Ren <guoren@linux.alibaba.com>

Some .ko also need the riscv_v_user_allowed symbol.

ERROR: modpost: "riscv_v_user_allowed" [arch/riscv/kvm/kvm.ko]
undefined!
make[3]: ***
[/home/guoren/source/kernel/linux/scripts/Makefile.modpost:136:
Module.symvers] Error 1

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
---
 arch/riscv/kernel/vector.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/kernel/vector.c b/arch/riscv/kernel/vector.c
index 1c4ac821e008..3ae08816d608 100644
--- a/arch/riscv/kernel/vector.c
+++ b/arch/riscv/kernel/vector.c
@@ -129,6 +129,7 @@ bool riscv_v_user_allowed(void)
 {
 	return riscv_v_get_cur_ctrl(current) == PR_RISCV_V_VSTATE_CTRL_ON;
 }
+EXPORT_SYMBOL(riscv_v_user_allowed);
 
 bool riscv_v_first_use_handler(struct pt_regs *regs)
 {
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-30 16:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-29  7:38 [PATCH] riscv: vector: Fixup modules compile error guoren
2023-05-29 13:42 ` Conor Dooley
2023-05-30  2:59   ` Guo Ren
2023-05-30  6:52     ` Guo Ren
2023-05-30  9:48       ` Andy Chiu
2023-05-30 15:37         ` Guo Ren
2023-05-30 16:04           ` Conor Dooley
2023-05-30 16:14             ` Guo Ren
2023-05-30 16:22               ` Guo Ren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox