Skip to content

efi/runtime-wrappers: fix linker warnings

Breno Leitao linux-efi lkml 1 version Applied

Status from this message: Queued up now, thanks.

Get series with b4
b4 am [email protected] change-id 20260713-efi_fixes-b7193dd37bcf

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2efi/runtime-wrappers: mark efi_rts_park_worker() as __noreturndrivers/firmware/efi/runtime-wrappers.c include/linux/efi.h tools/objtool/noreturns.h+3 -20 replies
2/2efi/runtime-wrappers: mark efi_runtime_lock_owner as __useddrivers/firmware/efi/runtime-wrappers.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] efi/runtime-wrappers: fix linker warnings

When I've submitted my last patchset titled "efi/runtime-wrappers: bound the wait for EFI runtime service calls", I've got two reports

1) efi_rts_park_worker() loops forever and never returns, but wasn't marked __noreturn, so objtool warns about the unreachable code after the call.
https://lore.kernel.org/all/[email protected]/

2) efi_runtime_lock_owner is optimised away under CONFIG_BUG=n, leaving a dangling debug-info reference that breaks the link.
https://lore.kernel.org/all/[email protected]/

Patch 1 fixes the objtool warning; patch 2 fixes the link error.

---
Breno Leitao (2):
efi/runtime-wrappers: mark efi_rts_park_worker() as __noreturn efi/runtime-wrappers: mark efi_runtime_lock_owner as __used

 drivers/firmware/efi/runtime-wrappers.c | 4 ++--
 include/linux/efi.h                     | 2 +-
 tools/objtool/noreturns.h               | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

---
base-commit: cf790fdb851867532b9a0f88588dcce648dbffe9
change-id: 20260713-efi_fixes-b7193dd37bcf

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>