ERROR: modpost: "boot_cpu_hartid" [arch/riscv/kvm/kvm.ko] undefined!

Adam Borowski kilobyte at angband.pl
Mon Nov 22 09:14:04 PST 2021


Hi!
With CONFIG_KVM=m and CONFIG_SMP=n, the build fails with:
ERROR: modpost: "boot_cpu_hartid" [arch/riscv/kvm/kvm.ko] undefined!

An obvious fix would be to change riscv_cpuid_to_hartid_mask() from a
static inline function to a real exported symbol, but I wonder: is there
a point in allowing such combinations that no one will test?


Meow.
-- 
⢀⣴⠾⠻⢶⣦⠀ .--[ Makefile ]
⣾⠁⢠⠒⠀⣿⡁ # beware of races
⢿⡄⠘⠷⠚⠋⠀ all: pillage burn
⠈⠳⣄⠀⠀⠀⠀ `----



More information about the linux-riscv mailing list