mirror-linux/kernel/liveupdate
Arnd Bergmann 601cc399a0 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: b3749f174d ("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>
2025-12-10 16:07:44 -08:00
..
Kconfig mm: memfd_luo: add CONFIG_SHMEM dependency 2025-12-10 16:07:44 -08:00
Makefile liveupdate: luo_file: implement file systems callbacks 2025-11-27 14:24:38 -08:00
kexec_handover.c kho: fix restoring of contiguous ranges of order-0 pages 2025-11-27 14:24:44 -08:00
kexec_handover_debug.c
kexec_handover_debugfs.c kho: remove abort functionality and support state refresh 2025-11-27 14:24:36 -08:00
kexec_handover_internal.h kho: remove abort functionality and support state refresh 2025-11-27 14:24:36 -08:00
luo_core.c liveupdate: luo_core: fix redundant bound check in luo_ioctl() 2025-12-10 16:07:42 -08:00
luo_file.c liveupdate: luo_file: don't use invalid list iterator 2025-12-10 16:07:41 -08:00
luo_internal.h liveupdate: luo_file: implement file systems callbacks 2025-11-27 14:24:38 -08:00
luo_session.c liveupdate: luo_session: add ioctls for file preservation 2025-11-27 14:24:39 -08:00