[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250106154847.1100344-6-cleger@rivosinc.com>
Date: Mon, 6 Jan 2025 16:48:42 +0100
From: Clément Léger <cleger@...osinc.com>
To: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Anup Patel <anup@...infault.org>,
Atish Patra <atishp@...shpatra.org>,
linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org,
kvm@...r.kernel.org,
kvm-riscv@...ts.infradead.org
Cc: Clément Léger <cleger@...osinc.com>
Subject: [PATCH 5/6] riscv: export unaligned_ctl_available() as a GPL symbol
This symbol will be used by the KVM SBI firmware feature extension
implementation. Since KVM can be built as a module, this needs to be
exported. Export it using EXPORT_SYMBOL_GPL().
Signed-off-by: Clément Léger <cleger@...osinc.com>
---
arch/riscv/kernel/traps_misaligned.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/kernel/traps_misaligned.c b/arch/riscv/kernel/traps_misaligned.c
index 4aca600527e9..7118d74673ee 100644
--- a/arch/riscv/kernel/traps_misaligned.c
+++ b/arch/riscv/kernel/traps_misaligned.c
@@ -684,6 +684,8 @@ bool unaligned_ctl_available(void)
{
return unaligned_ctl;
}
+EXPORT_SYMBOL_GPL(unaligned_ctl_available);
+
#else
bool check_unaligned_access_emulated_all_cpus(void)
{
--
2.47.1
Powered by blists - more mailing lists