ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next head: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 commit: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 [1/1] efi: add ovmf debug log driver config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250709/[email protected]/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 7 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next head: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 commit: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 [1/1] efi: add ovmf debug log driver config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250709/[email protected]/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/[email protected]/reproduce)
Quoted 8 lines
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>, old ones prefixed by <<):
Quoted 1 line
Quoted 1 line
ERROR: modpost: "
efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
I think this is because ovmf-debug-log is the first /modular/ user of efi_kobj. So the options are to (a) export the symbol, or (b) switch the driver from tristate to bool.
Ard, any preference?
take care,
Gerd
Ard Biesheuvel
maintainerQuoted 14 lines · Gerd Hoffmann
Quoted 12 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next head: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 commit: 42c68c6e354f71498f9e3e31aa5b0f9243bc1618 [1/1] efi: add ovmf debug log driver config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250709/[email protected]/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Quoted 6 lines
Quoted 3 lines
All errors (new ones prefixed by >>, old ones prefixed by <<):
Quoted 1 line
Quoted 1 line
ERROR: modpost: "
efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!I think this is because ovmf-debug-log is the first /modular/ user of
efi_kobj.
Indeed.
Quoted 5 lines
So the options are to (a) export the symbol, or (b) switch the driver from tristate to bool.
Ard, any preference?
I'd lean towards the latter, as it would allow us to remove all the platform device/driver code too, and just have a call from efisubsys_init() to the probe function (which can be made __init), conditional on IS_ENABLED(CONFIG_OVMF_DEBUG_LOG). That way, the actual runtime code that gets retained after boot is only ovmf_log_read() and nothing else, which means the overhead of having it as a builtin in negligible.