Linux EFI development
 help / color / mirror / Atom feed
* [PATCH 0/2] efi/runtime-wrappers: fix linker warnings
@ 2026-07-13 13:06 Breno Leitao
  2026-07-13 13:06 ` [PATCH 1/2] efi/runtime-wrappers: mark efi_rts_park_worker() as __noreturn Breno Leitao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Breno Leitao @ 2026-07-13 13:06 UTC (permalink / raw)
  To: Ard Biesheuvel, Ilias Apalodimas, Josh Poimboeuf, Peter Zijlstra,
	Catalin Marinas
  Cc: linux-efi, linux-kernel, Breno Leitao, kernel-team,
	kernel test robot

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/202607100848.iWPxdkhX-lkp@intel.com/

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/202607100518.uMJJPDfP-lkp@intel.com/

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

Signed-off-by: Breno Leitao <leitao@debian.org>
---
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,
--  
Breno Leitao <leitao@debian.org>


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

end of thread, other threads:[~2026-07-14  6:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 13:06 [PATCH 0/2] efi/runtime-wrappers: fix linker warnings Breno Leitao
2026-07-13 13:06 ` [PATCH 1/2] efi/runtime-wrappers: mark efi_rts_park_worker() as __noreturn Breno Leitao
2026-07-13 13:06 ` [PATCH 2/2] efi/runtime-wrappers: mark efi_runtime_lock_owner as __used Breno Leitao
2026-07-14  6:50 ` [PATCH 0/2] efi/runtime-wrappers: fix linker warnings Ard Biesheuvel

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