]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Avoid dragging in USB subsystem via efi_usb_path()
authorMichael Brown <mcb30@ipxe.org>
Fri, 30 Oct 2020 13:51:30 +0000 (13:51 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 30 Oct 2020 13:54:55 +0000 (13:54 +0000)
commit16873703ddea2d64fac1809967ef5198b8764baa
tree0e82a7b1d7719cfebaa6649406804ab99524738e
parente5e2f3fba840267118bf72c8093c673f056ffdc9
[efi] Avoid dragging in USB subsystem via efi_usb_path()

Commit 87e39a9c9 ("[efi] Split efi_usb_path() out to a separate
function") unintentionally introduced an undefined symbol reference
from efi_path.o to usb_depth(), causing the USB subsystem to become a
dependency of all EFI builds.

Fix by converting usb_depth() to a static inline function.

Reported-by: Pico Mitchell <pico@randomapplications.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c
src/include/ipxe/usb.h