From mboxrd@z Thu Jan 1 00:00:00 1970 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 0393B2DA77D for ; Thu, 4 Dec 2025 10:12:06 +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=1764843127; cv=none; b=smeo13BAGl5ZTcVpxP8zSjs994ZsxD82c8XGvWJQL/H56dMEnY+ra7m+IDZOgffuQschAgZm4SmwE4FmOUn/6wmw90wG0fo3BRP6cqHL7fhshc55j+WdMDJ+NyUrLyFkgrihUWK5M1irwzXupFG7vx0DFmxIDfj8z5sDN04tgFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764843127; c=relaxed/simple; bh=GSg/FZr7s4FR5UDOTYr/HUzhaMw3m71sylBEY98mqII=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=TDG5txailZ/DcnzCULpqm7BNcwF23tdA0nkg2ZwBlh5/2afwr8zhifHtSX0t4wTCm7bOg/hzSSgwFW3vV1ns5u6obhh7+nSWZKiHYIIZjzJlNI1AYG7HNNYtT9U3Wj8+ChY8vnB0/bO7h9fmTdLm3g2rlfVmdAcbZvsPcReoBDQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gLE+Ceza; 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="gLE+Ceza" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37C62C4CEFB; Thu, 4 Dec 2025 10:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764843126; bh=GSg/FZr7s4FR5UDOTYr/HUzhaMw3m71sylBEY98mqII=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=gLE+Ceza/91nKa13yq99rkp2SPJ+fVnk+8F+ZKFpjhL9jOG0uIF3ztn311AjVmvek kkk3+AvZOqTGlH5m9sJuvXd10Frv5D1iRaAGPYvQfVEPl4mKFSyrTrOE10ig+8BRMF ls49Q5EvEhRexvWg3mx/a/nEB2EaPXCduSJWiGKKrUp2udW/+3aYUrZyE/83vNz3Q7 jJVAlk7JlbN9HHUi2wVIH9Ijq43a4HsfnG6mPdhM0GvMSHeiHHkCUfMOd/g1EUeeA/ 0FMMelejoYIDLM69ieszJJKJViOxmgSePIUUHAwh3mcR2hZOPDDdsQgAqLDLm3yARG kii4MqhGbmn2g== From: Pratyush Yadav To: Arnd Bergmann Cc: Pasha Tatashin , Mike Rapoport , Andrew Morton , Pratyush Yadav , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memfd_luo: add CONFIG_SHMEM dependency In-Reply-To: <20251204100203.1034394-1-arnd@kernel.org> (Arnd Bergmann's message of "Thu, 4 Dec 2025 11:01:58 +0100") References: <20251204100203.1034394-1-arnd@kernel.org> Date: Thu, 04 Dec 2025 11:12:02 +0100 Message-ID: <86wm32lfnx.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Dec 04 2025, Arnd Bergmann wrote: > 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 Thanks! 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 -- Regards, Pratyush Yadav