public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [efi:next 1/1] ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
@ 2025-07-09  6:10 kernel test robot
  2025-07-09  8:43 ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-07-09  6:10 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: llvm, oe-kbuild-all, linux-efi, Ard Biesheuvel

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/202507091432.rbbrjGoU-lkp@intel.com/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/202507091432.rbbrjGoU-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507091432.rbbrjGoU-lkp@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [efi:next 1/1] ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
  2025-07-09  6:10 [efi:next 1/1] ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined! kernel test robot
@ 2025-07-09  8:43 ` Gerd Hoffmann
  2025-07-09  8:54   ` Ard Biesheuvel
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2025-07-09  8:43 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, oe-kbuild-all, linux-efi, Ard Biesheuvel

On Wed, Jul 09, 2025 at 02:10:09PM +0800, kernel test robot wrote:
> 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/202507091432.rbbrjGoU-lkp@intel.com/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/202507091432.rbbrjGoU-lkp@intel.com/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 <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202507091432.rbbrjGoU-lkp@intel.com/
> 
> All errors (new ones prefixed by >>, old ones prefixed by <<):
> 
> >> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [efi:next 1/1] ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined!
  2025-07-09  8:43 ` Gerd Hoffmann
@ 2025-07-09  8:54   ` Ard Biesheuvel
  0 siblings, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2025-07-09  8:54 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: kernel test robot, llvm, oe-kbuild-all, linux-efi

On Wed, 9 Jul 2025 at 18:43, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> On Wed, Jul 09, 2025 at 02:10:09PM +0800, kernel test robot wrote:
> > 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/202507091432.rbbrjGoU-lkp@intel.com/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/202507091432.rbbrjGoU-lkp@intel.com/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 <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202507091432.rbbrjGoU-lkp@intel.com/
> >
> > All errors (new ones prefixed by >>, old ones prefixed by <<):
> >
> > >> 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.

> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-09  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-09  6:10 [efi:next 1/1] ERROR: modpost: "efi_kobj" [drivers/firmware/efi/ovmf-debug-log.ko] undefined! kernel test robot
2025-07-09  8:43 ` Gerd Hoffmann
2025-07-09  8:54   ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox