Message ID | 20250106154847.1100344-6-cleger@rivosinc.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | riscv: add SBI FWFT misaligned exception delegation support | expand |
On Mon, Jan 6, 2025 at 10:51 AM Clément Léger <cleger@rivosinc.com> wrote: > > 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@rivosinc.com> Reviewed-by: Jesse Taube <mr.bossman075@gmail.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 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
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) {
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@rivosinc.com> --- arch/riscv/kernel/traps_misaligned.c | 2 ++ 1 file changed, 2 insertions(+)