Skip to content

Commit 4783ce3

Browse files
vfalanisJassi Brar
authored andcommitted
riscv: export __cpuid_to_hartid_map
EXPORT_SYMBOL_GPL() is missing for __cpuid_to_hartid_map array. Export this symbol to allow drivers compiled as modules to use cpuid_to_hartid_map(). Signed-off-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
1 parent c138285 commit 4783ce3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ enum ipi_message_type {
4343
unsigned long __cpuid_to_hartid_map[NR_CPUS] __ro_after_init = {
4444
[0 ... NR_CPUS-1] = INVALID_HARTID
4545
};
46+
EXPORT_SYMBOL_GPL(__cpuid_to_hartid_map);
4647

4748
void __init smp_setup_processor_id(void)
4849
{

0 commit comments

Comments
 (0)