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 8EA902E2840 for ; Thu, 4 Dec 2025 11:01:10 +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=1764846070; cv=none; b=FGQSGd+DquZb4nFw53bnueFyFtO70DqBeZp/hJQlnefw4WcbaCG1ySrtJvOz40fHo5HnFuQ49PZtjnd9W4lUKYvMn8Leuo2bTuuYOIU5pGtREK0QofZl0pm6CT6l+89aGygyWNF8d44Tbu7BFuINAvPenpra99EWX3b1HxQjJ8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764846070; c=relaxed/simple; bh=LXStc6LIOAqiA5s5Idn6ftCzsu4yMS4JN//rWIxeq/o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bjTp/qx7iEKtqeJ3/3ekbYkojh4DUL+ieASBbTPgcHWexglyqzaDH4I0T+1YNlXkL2Xl6lX4snRQlgJEMW+DAkfH2MpTlXriuAKo1oS38PUdN0+26hHUXahnwSGYg+xmEIuOFRW5cp7H7NW9+sIFrAPs7XJX1Cdw0pE98EVd43Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eHEusDsE; 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="eHEusDsE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE201C4CEFB; Thu, 4 Dec 2025 11:01:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764846070; bh=LXStc6LIOAqiA5s5Idn6ftCzsu4yMS4JN//rWIxeq/o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eHEusDsEIgCKYOEd0kE/2ykABOtJAtK5SvQmIbeE/xgUfYsxg/WcHkMUyC8Rn78uZ r8s6uHF2obuXzaQwuWwMyQUY6oJPil8/Hn2nLdR5Pv/rO9E8NhTuVPeecDrn+FmnPB 6VW6zz+Kl7kVbsTKN5MKCKNV8QeUwo1nfA/BbynSqVNuSnmlOO9XJOhdLrqKfaS9HK ifviUNcP6m47sT7X7AfxFJ27iCYmL/DAjG8aKZiciC0QKS5MdwCl2YZwX6O3QaJuDl U++vRfRwtnMpRzdo5+sLUV/NASJkJOF8DrtYCElRZQ6e2rrCR6SifG1Aj4urhhedz4 yMFWcUMHvC/TA== Date: Thu, 4 Dec 2025 13:01:04 +0200 From: Mike Rapoport To: Arnd Bergmann Cc: Pasha Tatashin , Andrew Morton , Pratyush Yadav , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: memfd_luo: add CONFIG_SHMEM dependency Message-ID: References: <20251204100203.1034394-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251204100203.1034394-1-arnd@kernel.org> On Thu, Dec 04, 2025 at 11:01:58AM +0100, 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 Acked-by: Mike Rapoport (Microsoft) -- Sincerely yours, Mike.