mm: memfd_luo: add CONFIG_SHMEM dependency
PATCH 1/1 mm: memfd_luo: add CONFIG_SHMEM dependency
From: Arnd Bergmann <[email protected]>
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.
--- kernel/liveupdate/Kconfig | 1 + 1 file changed, 1 insertion(+)
kernel/liveupdate/Kconfig +1 -0
@@ -53,6 +53,7 @@ config KEXEC_HANDOVER_ENABLE_DEFAULT config LIVEUPDATE bool "Live Update Orchestrator" depends on KEXEC_HANDOVER + depends on SHMEM help Enable the Live Update Orchestrator. Live Update is a mechanism, typically based on kexec, that allows the kernel to be updated
Signature · 1 line
2.39.5
Quoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 toshmem_add_to_page_cache' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x11c): undefined reference toshmem_inode_acct_blocks' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x134): undefined reference to `shmem_recalc_inode'
Quoted 4 lines
Add a
Kconfigdependency to disallow that configuration.Fixes b3749f174d68 ("mm: memfd_luo: allow preserving memfd")Signed-off-by Arnd Bergmann <[email protected]>
Thanks!
Quoted 16 lines
--- kernel/liveupdate/Kconfig | 1 + 1 file changed, 1 insertion(+)kernel/liveupdate/Kconfig +1
-0@@ -53,6 +53,7 @@ config KEXEC_HANDOVER_ENABLE_DEFAULT config LIVEUPDATE bool "Live Update Orchestrator" depends on KEXEC_HANDOVER + depends on SHMEM help Enable the Live Update Orchestrator. Live Update is a mechanism, typically based on kexec, that allows the kernel to be updated
Signature · 2 lines
Regards, Pratyush Yadav
Quoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 toshmem_add_to_page_cache' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x11c): undefined reference toshmem_inode_acct_blocks' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x134): undefined reference to `shmem_recalc_inode'
Quoted 4 lines
Add a
Kconfigdependency to disallow that configuration.Fixes b3749f174d68 ("mm: memfd_luo: allow preserving memfd")Signed-off-by Arnd Bergmann <[email protected]>
Signature · 2 lines
Sincerely yours, Mike.
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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 toshmem_add_to_page_cache' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x11c): undefined reference toshmem_inode_acct_blocks' memfd_luo.c:(.text.memfd_luo_retrieve_folios+0x134): undefined reference to `shmem_recalc_inode'
Quoted 4 lines
Add a
Kconfigdependency to disallow that configuration.Fixes b3749f174d68 ("mm: memfd_luo: allow preserving memfd")Signed-off-by Arnd Bergmann <[email protected]>