Skip to content

efivarfs: import symbols in EFIVAR namespace

Eric Chanudet requested to merge echanude/centos-stream-9:rhel-31861 into main

JIRA: https://issues.redhat.com/browse/RHEL-31861
Upstream-Status: RHEL-only

The EFIVAR symbol namespace was initially imported with:
d2e852ba ("efi: vars: Move efivar caching layer into efivarfs")
which was then reverted with:
b1e166a4 ("Revert "efi: vars: Move efivar caching layer into efivarfs"")
efivar_query_variable_info was then introduced as part of the firmware
efi driver upgrade with:
957cae71 ("efivarfs: expose used and total size")

In the end efivarfs ends up using the efivar_query_variable_info symbol
but does not import the namespace. Correct that, so when built as a
module (e.g, automotive configuration), modpost doesn't trip because the
EFIVAR namespace is not imported. The general upgrade was kept out of
CS9 for compatibility, as part of:
https://bugzilla.redhat.com/2234390.

Signed-off-by: Eric Chanudet echanude@redhat.com

Edited by Eric Chanudet

Merge request reports