[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230529073845.2859178-1-guoren@kernel.org>
Date: Mon, 29 May 2023 03:38:45 -0400
From: guoren@...nel.org
To: guoren@...nel.org, greentime.hu@...ive.com,
vincent.chen@...ive.com, andy.chiu@...ive.com,
paul.walmsley@...ive.com, palmer@...osinc.com
Cc: linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
Guo Ren <guoren@...ux.alibaba.com>
Subject: [PATCH] riscv: vector: Fixup modules compile error
From: Guo Ren <guoren@...ux.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@...ux.alibaba.com>
Signed-off-by: Guo Ren <guoren@...nel.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
Powered by blists - more mailing lists