From nobody Sun Feb 8 16:36:19 2026 Received: from fout-b5-smtp.messagingengine.com (fout-b5-smtp.messagingengine.com [202.12.124.148]) (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 9397C1632E7 for ; Sun, 11 Jan 2026 12:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.148 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768136297; cv=none; b=j9IDGMMmy4YqKSAw8A/GLqDrBhx735tQQ+8jf6ET8Palkst+as1IxKTYeVt/2CceAePui5Z6z6rB2AVLCIqTfmVbz90Ja9vH93tZ+zf/Padqy82bxcgXLQ7U8DzjlXuOeTp3Kh9+t9CPK0gzJEhzHybRxJXZgEx3d+l8b3Xl+CY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768136297; c=relaxed/simple; bh=Dw5V3qITtNGD5ZYDeHWlxCsJBWskhsd+WXShhPUkN3Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iZchn1meXiuGxUs8R2+YXobVM8k3qPwaECb3ahHsDlxVyTMbI26yw/fwxMlhQ90X1c5dynfhENuMJ3HR1XH1KSZJf6mUiDMt9Nmn1AbW5VXYIy9p1y1LTP2dWoirumYImGEE44S8Bxpo0A9UcGdJ0o45ubIu12CvGQ1DwRYAFcM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=star-ark.net; spf=pass smtp.mailfrom=star-ark.net; dkim=pass (2048-bit key) header.d=star-ark.net header.i=@star-ark.net header.b=Un9hx8PN; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=xJxm5pvO; arc=none smtp.client-ip=202.12.124.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=star-ark.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=star-ark.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=star-ark.net header.i=@star-ark.net header.b="Un9hx8PN"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="xJxm5pvO" Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id B8A2F1D00117; Sun, 11 Jan 2026 07:58:14 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Sun, 11 Jan 2026 07:58:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=star-ark.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1768136294; x= 1768222694; bh=4SBexSPqGC8EG6v2B1y/I2SvV0por7n7tn/NYpoUS70=; b=U n9hx8PN+v2+PsdL1E61wmVSTaYwZRQ4z2DnuwpLX64Ih26yay8b/06igc1ha0ZxY 2ujOFrMg9lPSL4Gmv90g8Pxo0fLPT6vfA6PJ5fWJeUNEm7uUftyUTKhP9LJmCqls bwWxO9wiRCSRSMyhGnT0zF/ebVunEaNcnUzy3SVQYwhYjIAP2LBXAvB9UNBCkDAl TUEZcD/diSVB+hSVO3QNT4EtoGAYq4vVprn/1qr3RO0h7JIO0q8Bpdg1xKv3PzzT jyl4oUTrXkMyEMhlcwi1XhmKpZ4MA+71O6gClxOJ8XHKHKW/b0f5sBLjDc8blJ3W 5MBCAO6OglnGH9pSm9Guw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1768136294; x=1768222694; bh=4 SBexSPqGC8EG6v2B1y/I2SvV0por7n7tn/NYpoUS70=; b=xJxm5pvOPP40wEoIh bt4DsDwRIBHUu9HQc5j2cjFu6ZUI0aannSzGQOhybCoRjubJoDsFY11VXb/N94Mf +s/NZF8IyYKYA92GJNVMbI6Gux4Psi/h1ZTH0teNuI8RDKGvFnCxdKpOC4ARxaLN hAur1Bc8Wr1+n1O6xJTwWTKu/iXFewc0bWALjvX0zSH7KmPMSZ1bSVjIvKI4DSyT deRjfW/4+EsCvrbc4Ybs2i70reLPFGL6Va1PSEiGmvWRDWrOB/KqmsPHwNJQFh1b gB6As0JEuMJLr1C7YPKpiNeoyDTAJWApY/7J8U8V8dX/xQESfAKEPI/HiAp6SrRl Ne2pQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudegieefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepnfhilhhlihgr nhcuuegvrhhrhicuoehlihhllhhirghnsehsthgrrhdqrghrkhdrnhgvtheqnecuggftrf grthhtvghrnhepgfekgeetgeehieeghfdtudfhudffjedugefhvddulefhvdehfeeghfei tdeiuedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eplhhilhhlihgrnhesshhtrghrqdgrrhhkrdhnvghtpdhnsggprhgtphhtthhopeejpdhm ohguvgepshhmthhpohhuthdprhgtphhtthhopegrrdhfrghtohhumhesphgvnhhguhhtrh honhhigidruggvpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgv rhhnvghlrdhorhhgpdhrtghpthhtoheprghkphhmsehlihhnuhigqdhfohhunhgurghtih honhdrohhrghdprhgtphhtthhopehvihhrohesiigvnhhivhdrlhhinhhugidrohhrghdr uhhkpdhrtghpthhtoheplhhgohesphgvnhhguhhtrhhonhhigidruggvpdhrtghpthhtoh epkhgvrhhnvghlsehpvghnghhuthhrohhnihigrdguvgdprhgtphhtthhopehlihhllhhi rghnsehsthgrrhdqrghrkhdrnhgvth X-ME-Proxy: Feedback-ID: i8db94900:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 11 Jan 2026 07:58:13 -0500 (EST) From: Lillian Berry To: Ahmad Fatoum , linux-kernel@vger.kernel.org Cc: Andrew Morton , Al Viro , Leonard Goehrs , "kernel @ pengutronix . de" , Lillian Berry Subject: [PATCH] init/main.c: check if rdinit was explicitly set before printing warning Date: Sun, 11 Jan 2026 07:56:35 -0500 Message-ID: <20260111125635.53682-1-lillian@star-ark.net> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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" The rdinit parameter is set by default, and attempted during boot even if not specified in the command line. Only print the warning about rdinit being inaccessible if the rdinit value was found in command line; it's just noise otherwise. Signed-off-by: Lillian Berry --- init/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index b84818ad9685..522fdc9b1a25 100644 --- a/init/main.c +++ b/init/main.c @@ -162,6 +162,7 @@ static size_t initargs_offs; =20 static char *execute_command; static char *ramdisk_execute_command =3D "/init"; +static bool ramdisk_execute_command_set; =20 /* * Used to generate warnings if static_key manipulation functions are used @@ -623,6 +624,7 @@ static int __init rdinit_setup(char *str) unsigned int i; =20 ramdisk_execute_command =3D str; + ramdisk_execute_command_set =3D true; /* See "auto" comment in init_setup */ for (i =3D 1; i < MAX_INIT_ARGS; i++) argv_init[i] =3D NULL; @@ -1699,8 +1701,9 @@ static noinline void __init kernel_init_freeable(void) int ramdisk_command_access; ramdisk_command_access =3D init_eaccess(ramdisk_execute_command); if (ramdisk_command_access !=3D 0) { - pr_warn("check access for rdinit=3D%s failed: %i, ignoring\n", - ramdisk_execute_command, ramdisk_command_access); + if (ramdisk_execute_command_set) + pr_warn("check access for rdinit=3D%s failed: %i, ignoring\n", + ramdisk_execute_command, ramdisk_command_access); ramdisk_execute_command =3D NULL; prepare_namespace(); } --=20 2.47.3