]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
init/main.c: check if rdinit was explicitly set before printing warning
authorLillian Berry <lillian@star-ark.net>
Sun, 11 Jan 2026 12:56:35 +0000 (07:56 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:14 +0000 (19:07 -0800)
commita906f3ae4423d35c9804c8ec3a0db96ce9b54d44
tree446c4509d6b342d9b6a4bde3904bffedc74c6c43
parent4cc67b048459bebb7a60b693044ec83fb853eba1
init/main.c: check if rdinit was explicitly set before printing warning

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.

[akpm@linux-foundation.org: move ramdisk_execute_command_set into __initdata]
Link: https://lkml.kernel.org/r/20260111125635.53682-1-lillian@star-ark.net
Signed-off-by: Lillian Berry <lillian@star-ark.net>
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Francesco Valla <francesco@valla.it>
Cc: Guo Weikang <guoweikang.kernel@gmail.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Huan Yang <link@vivo.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/main.c