]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 15 Sep 2025 07:11:05 +0000 (09:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:25 +0000 (11:56 +0200)
commit258acc8c6a5c336c3848ed44f4bb0461ea88d5b3
tree90053815f5909b07d0268efd41f5fe0ea1dc0cb2
parent97dd591001078f03cbedd60a5e43ecd6df3c4a85
init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD

[ Upstream commit 74792608606a525a0e0df7e8d48acd8000561389 ]

INITRAMFS_PRESERVE_MTIME is only used in init/initramfs.c and
init/initramfs_test.c.  Hence add a dependency on BLK_DEV_INITRD, to
prevent asking the user about this feature when configuring a kernel
without initramfs support.

Fixes: 1274aea127b2e8c9 ("initramfs: add INITRAMFS_PRESERVE_MTIME Kconfig option")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
init/Kconfig