Files
ack-tegra/include/linux
Nathan Chancellor 7caedbb5ad integrity: Eliminate weak definition of arch_get_secureboot()
security/integrity/secure_boot.c contains a single __weak function,
which breaks recordmcount when building with clang:

  $ make -skj"$(nproc)" ARCH=powerpc LLVM=1 ppc64_defconfig security/integrity/secure_boot.o
  Cannot find symbol for section 2: .text.
  security/integrity/secure_boot.o: failed

Introduce a Kconfig symbol, CONFIG_HAVE_ARCH_GET_SECUREBOOT, to indicate
that an architecture provides a definition of arch_get_secureboot().
Provide a static inline stub when this symbol is not defined to achieve
the same effect as the __weak function, allowing secure_boot.c to be
removed altogether. Move the s390 definition of arch_get_secureboot()
out of the CONFIG_KEXEC_FILE block to ensure it is always available, as
it does not actually depend on KEXEC_FILE.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 31a6a07eef ("integrity: Make arch_ima_get_secureboot integrity-wide")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
2026-03-13 11:37:13 -04:00
..
…
…
…
2026-02-11 13:44:47 +01:00
…
…
…
…
…
…
…
…
…
…
…
2026-01-29 20:21:41 +01:00
…
2025-12-15 14:33:38 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-20 19:44:19 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-12 04:23:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-16 14:40:51 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-13 20:04:32 +12:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-19 09:12:05 +01:00
…
…
…
…
2025-12-23 11:23:10 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-12 16:52:09 +01:00
…
…
…
…
2026-02-06 07:29:14 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-05 16:43:31 +01:00
…
…
…
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-20 19:24:50 -08:00
…
…
…
…
…
…
…
…
…
2026-01-26 19:03:47 -08:00
…
…
…
…
2025-12-29 11:53:38 +01:00
…
…
…
…
2026-01-26 20:02:27 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-20 17:31:55 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-30 11:34:34 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-10 11:39:31 +01:00
2026-02-10 11:39:30 +01:00
…
…
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
2026-02-23 11:19:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-05 16:43:30 +01:00
…
…
…
…
…
…
…
…
…
…
…
2026-01-31 14:22:57 -08:00
…
…
…
…
…
…
…
…
…
2026-01-14 12:04:34 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-06 17:06:03 -08:00
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-20 19:24:47 -08:00
2026-01-30 18:26:59 -08:00
…
…
…
…
…
…
…
…
…
…