From nobody Thu Oct 2 19:01:42 2025 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BBF526B955 for ; Sun, 14 Sep 2025 03:57:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757822233; cv=none; b=gJ+ZVAn45W2mjIT66BcEEWeuJFGwbJN/MTcO1qAxEqfkadKsncZzZrd1eXqZFHxPxC6I2HrlEM+RfddPDySRSx8gxUoQbiSdjKeBBJKkZCvwTvEaCCpkAINDp0EyD55dYY7uk2xQZTjWRsWVqYGnH39FCP82NaBB7Db/DelqKbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757822233; c=relaxed/simple; bh=6pXJgBOVmgKyryw3LURicaeyD0WS1HvzY8WG0GWatOA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XE+nDsnkON6jMLHfyQjn/rpBERVhRWW+tih9ujiOvUBuoG0CTKSz+i8x4cFZdNaXPsGUJJ8XzQ0HtxJUY2F9w2+Okn+/TyRq3R35T/sKrcHC+XmxATzCCK5h+4cjSFtBtIs2Kp5nWUAjWL2nK1Hifw6RWg1zROqxkGQ5MgYbQLM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kRPnFhfi; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kRPnFhfi" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-afcb7ae31caso554620066b.3 for ; Sat, 13 Sep 2025 20:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757822228; x=1758427028; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y7psSH4JIkuISYR7xy9RNjBVG2GzEUFc3+zgpdmbt9Y=; b=kRPnFhfit7+R6UzkS4cF3DKL1S7JHip+IAyQf6T2UGYDd+vYI9IC8v9G51KVb5WDAk RN/gPz1lGKSMFe9Oe7MIowDwv3N0e4/KFS91xhYm0G+VoSkSei8WkHktPa2wEMB4pNUj WzAE/ebYcnJlcUWXpTXxg7oBxbqGV3WM9sIv1WyWWMlOmd/DBHQ0UO8HJ8wtmu7F5pSQ pAM88kkn9raeM/jhalMJUOdMS5VqW/+AUemoRwnUmW0/oDdl4OSBi4zM++ZdXBaXmYLj VGYSY1r8rSsi6oTo3enO0OXT4w2WPUK9VtsKTo5k8z5kW918njUd5UMO2sKFBB8AaeWA 2SOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757822228; x=1758427028; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y7psSH4JIkuISYR7xy9RNjBVG2GzEUFc3+zgpdmbt9Y=; b=PPpFGke5EbGM55riKqjiWnNZL5cVI+88YCO5vd8TOIssWP5VDJr/VzBHJ9d67hD/6Z DrBQaXBvJNtzxVBHfGK4Ua33rQEEyHhoWh8zAafgoomlkBLpL+Jz3eGseouM15bIQgEV eTdy04x0HkKI5NBWo6Mks9jBgavqdgb1/wZQulkPy/r4Q9jzGUDrfsuhTXBtdBhhwVVx PVfBVDI0pm1wE5gqMFMu1KtwYyZX1KLRKfcwKMwe/bV/DvcDLTAcCxOXYLURFVZnbvvE ZUW0vvfdfpA3WYlw4Y0DoRR2wAasrtStla9blk5M4Q565B6f1ZShej0F4AGzMb0D1Zvi eRPw== X-Forwarded-Encrypted: i=1; AJvYcCXMI1T1Yq57a0nPLZDprlVvTA8Kb4z/LfkPYw0H1hj2esRgDuaSJNY4OXkaXQWiQJyXNWYZZl1MNFyTPOA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywua52HTyDhBWCrSMdqJEp5PFAKj3n9JYE42cvTJxyyJroZ0xzx NDKAbPAerFGq+o/cSewzeyKVbBepiIN6iDDGkwC2OeBtIonTorZlVTB5 X-Gm-Gg: ASbGnctGBMOdzSQ+I4wMVUedpHde0ozvBJPC3X+pjDznP1J9JwbqXYh3OirJJOy/LPB TwEuZAXG2N8+ZeJKZVJhqz7rte8yQfCAouxvvFB4bh8OADEvEZWWYK57gcOsXOdt5/GEFH+OuU9 0W9ll9m3I0YjeU9qEODI1Km9YAa/cpMxxhAEtfBN7l15yU2cvyRctJLn+u0pCg06Jct/tk3+fN+ Ugr2d7SIq3pDdIveUkxUVTmkWsFCYoNslDKvUL4ZNA9+VC1gRGBVPHlDVT1QWk7UKWmpIrf+qVn ZP/PHTmtPqElQtIisRshtbJ+sJTUrKWBBVL1NhzhFbC2nqX5Lw8Ejr5+I/7NPjI+pQ4wMq1PCBB JqhOEgXBMNS6lVd/B5KiEdFB9M8UWEA== X-Google-Smtp-Source: AGHT+IHHnPU+sOVT053l7deT3P8z3LJVFAOiksWjmZKd0Ub2gBIDgZK1/4gCPHfUrNaBqPQVOEAIKA== X-Received: by 2002:a17:907:d16:b0:b04:6338:c936 with SMTP id a640c23a62f3a-b07c35b8e53mr876582466b.17.1757822228258; Sat, 13 Sep 2025 20:57:08 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b07b32f1e54sm673986866b.75.2025.09.13.20.57.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Sep 2025 20:57:07 -0700 (PDT) From: Askar Safin To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Christian Brauner , Al Viro , Jan Kara , Christoph Hellwig , Jens Axboe , Andy Shevchenko , Aleksa Sarai , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Julian Stecklina , Gao Xiang , Art Nikpal , Andrew Morton , Eric Curtin , Alexander Graf , Rob Landley , Lennart Poettering , linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org, Ingo Molnar , linux-block@vger.kernel.org, initramfs@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-efi@vger.kernel.org, linux-ext4@vger.kernel.org, "Theodore Y . Ts'o" , linux-acpi@vger.kernel.org, Michal Simek , devicetree@vger.kernel.org, Luis Chamberlain , Kees Cook , Thorsten Blum , Heiko Carstens , patches@lists.linux.dev Subject: [PATCH RESEND 49/62] init: rename ramdisk_execute_command to initramfs_execute_command Date: Sun, 14 Sep 2025 06:57:03 +0300 Message-ID: <20250914035703.3729713-1-safinaskar@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250913003842.41944-1-safinaskar@gmail.com> References: <20250913003842.41944-1-safinaskar@gmail.com> 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" This is cleanup after initrd removal Signed-off-by: Askar Safin --- init/main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/init/main.c b/init/main.c index 5186233c64fd..cbebd64f523c 100644 --- a/init/main.c +++ b/init/main.c @@ -160,7 +160,7 @@ static size_t initargs_offs; #endif =20 static char *execute_command; -static char *ramdisk_execute_command =3D "/init"; +static char *initramfs_execute_command =3D "/init"; =20 /* * Used to generate warnings if static_key manipulation functions are used @@ -609,7 +609,7 @@ static int __init rdinit_setup(char *str) { unsigned int i; =20 - ramdisk_execute_command =3D str; + initramfs_execute_command =3D str; /* See "auto" comment in init_setup */ for (i =3D 1; i < MAX_INIT_ARGS; i++) argv_init[i] =3D NULL; @@ -1491,12 +1491,12 @@ static int __ref kernel_init(void *unused) =20 do_sysctl_args(); =20 - if (ramdisk_execute_command) { - ret =3D run_init_process(ramdisk_execute_command); + if (initramfs_execute_command) { + ret =3D run_init_process(initramfs_execute_command); if (!ret) return 0; pr_err("Failed to execute %s (error %d)\n", - ramdisk_execute_command, ret); + initramfs_execute_command, ret); } =20 /* @@ -1588,11 +1588,11 @@ static noinline void __init kernel_init_freeable(vo= id) * the work */ int ramdisk_command_access; - ramdisk_command_access =3D init_eaccess(ramdisk_execute_command); + ramdisk_command_access =3D init_eaccess(initramfs_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); - ramdisk_execute_command =3D NULL; + initramfs_execute_command, ramdisk_command_access); + initramfs_execute_command =3D NULL; prepare_namespace(); } =20 --=20 2.47.2