From nobody Thu Oct 2 15:34:41 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 6087228E5F3; Mon, 15 Sep 2025 07:11:13 +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=1757920274; cv=none; b=n7+hM4hq71YvnGB87IX86+FPf5Ego1GXZdlYZkizjVdT0Cs3yhGzfdWHL//g+Z6FWEkisdxcgib0d1Q0xQOuH424MqxncK9g3mHV2YnlWo5buDYXuBqZYEc2Fr2NqXAINgeGVcBu9ZA4ujicgi6TxiVsFqa3YpiCL6FAviCQp9g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757920274; c=relaxed/simple; bh=eUZ+DsYmHslxxmaL0GyfJwm4AQ5QdzZojAnv5hPdEDQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fDexcFXbwZ1H5V+iyLEzWx4k9+xtLBQPX9kdHi2RjV+N91430unNLlJoigz21TqFYCqexOMGRH8sKPW+iEWXllb8c35j0xKWcTG4six+LVPV10h83W4SZT3BwSn6BMrcgvcVPF9tZM8mpH4vqG18CrL4Gdq6qeSVxJlmD9oJsjk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 249B9C4CEF1; Mon, 15 Sep 2025 07:11:10 +0000 (UTC) From: Geert Uytterhoeven To: Andrew Morton , David Disseldorp , Martin Wilck , Alexander Viro , Christian Brauner , Jan Kara Cc: Askar Safin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] init: INITRAMFS_PRESERVE_MTIME should depend on BLK_DEV_INITRD Date: Mon, 15 Sep 2025 09:11:05 +0200 Message-ID: <9a65128514408dc7de64cf4fea75c1a8342263ea.1757920006.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 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" 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 o= ption") Signed-off-by: Geert Uytterhoeven Reviewed-by: David Disseldorp Reviewed-by: Martin Wilck --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index e3eb63eadc8757a1..c0c61206499e6bd5 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1501,6 +1501,7 @@ config BOOT_CONFIG_EMBED_FILE =20 config INITRAMFS_PRESERVE_MTIME bool "Preserve cpio archive mtimes in initramfs" + depends on BLK_DEV_INITRD default y help Each entry in an initramfs cpio archive carries an mtime value. When --=20 2.43.0