From nobody Fri Dec 19 17:49:36 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98D5E2D7DDE for ; Thu, 4 Dec 2025 10:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764842528; cv=none; b=mdgChHdWhgSxMUvOpM3+hgEFJ945PsCLAUgNULPCvSGZ/ilbYh0lhLXQYp5qIGtWeNU1hC58PnVbGMgqvaqK4uWoErdfp2eMAUafk2JI/Aumj3ObGKZMoPwghH5X5tBHkwJwh7YdbbF9ScMJ8C+BGdRjomKGwnrfrbNs5xRxiAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764842528; c=relaxed/simple; bh=pSXXKuMyPp7jDoATQJ4XN+W3HZ4vqrLGuO1G1bneAk8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kl6VYHnDrMv9B+bUv/kzMncsPBxzRALGmt7TWPHQOoZNLQD4O1fHa97E3wiRy/tC+gHPZnI+QCZ77LYJVzP1gGSJSJXUhCVgb/s7oW6Pojx07tqOHaH6yC2KCszNjiksRB+LpzYXo3jb+xikb4wRXvK2IZ/UBWhm1jR81w5o9O4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oYLXv6Ty; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oYLXv6Ty" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D6ACC4CEFB; Thu, 4 Dec 2025 10:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764842527; bh=pSXXKuMyPp7jDoATQJ4XN+W3HZ4vqrLGuO1G1bneAk8=; h=From:To:Cc:Subject:Date:From; b=oYLXv6TyRF60YxfCXNMEui05OG70cb81DG6OTpM8SAGoiAf+AQJXadO494xf5+hiW BJCeqyYvSUKm5PnM7UkMEmzwgQ9gPTKHmAVIRONsERWQmVbgnpCvcIycm0uY6ONZsO 3n/nhR19jcPuk8B7bWcENys8Ziy1k1L6isnMpHLNufg7szH1PSLmT/QnrsqrsccyZS ejKtqyPkPO4IN6l91AXejHAPTk09SzkS1OvMPwoBk+MTojO0J2pZm4G0RZJnp8xko5 0h5s+NQno57emDaEt6EE2ZiB9Zs8WqpgJ8yX+h7iEaxdd6tT14FCk87zAfKafEn3KK Nem0MyI37/ygw== From: Arnd Bergmann To: Pasha Tatashin , Mike Rapoport , Andrew Morton , Pratyush Yadav Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] mm: memfd_luo: add CONFIG_SHMEM dependency Date: Thu, 4 Dec 2025 11:01:58 +0100 Message-Id: <20251204100203.1034394-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann 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. Fixes: b3749f174d68 ("mm: memfd_luo: allow preserving memfd") Signed-off-by: Arnd Bergmann Acked-by: Mike Rapoport (Microsoft) Reviewed-by: Pasha Tatashin Reviewed-by: Pratyush Yadav --- kernel/liveupdate/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/liveupdate/Kconfig b/kernel/liveupdate/Kconfig index 86a58eaf433a..80b77db2b0e0 100644 --- a/kernel/liveupdate/Kconfig +++ b/kernel/liveupdate/Kconfig @@ -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 --=20 2.39.5