Skip to content

Commit 601cc39

Browse files
arndbakpm00
authored andcommitted
mm: memfd_luo: add CONFIG_SHMEM dependency
The new memfd code fails to link without SHMEM: aarch64-linux-ld: mm/memfd_luo.o: in function `memfd_luo_retrieve_folios': memfd_luo.c:(.text.memfd_luo_retrieve_folios+0xdc): undefined reference to `shmem_add_to_page_cache' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x11c): undefined reference to `shmem_inode_acct_blocks' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x134): undefined reference to `shmem_recalc_inode' Add a Kconfig dependency to disallow that configuration. Link: https://lkml.kernel.org/r/20251204100203.1034394-1-arnd@kernel.org Fixes: b3749f1 ("mm: memfd_luo: allow preserving memfd") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 402736a commit 601cc39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/liveupdate/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ config KEXEC_HANDOVER_ENABLE_DEFAULT
5454
config LIVEUPDATE
5555
bool "Live Update Orchestrator"
5656
depends on KEXEC_HANDOVER
57+
depends on SHMEM
5758
help
5859
Enable the Live Update Orchestrator. Live Update is a mechanism,
5960
typically based on kexec, that allows the kernel to be updated

0 commit comments

Comments
 (0)