From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 8ABFD6A8D2 for ; Sat, 13 Sep 2025 00:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757724333; cv=none; b=ssRizG8tjmcE+WZHxwKhmSOegdZN0WqqFys3cvX5Ru4kiLo415wLPqhKeFhR3l/zaRTd/IKBB8Lvy8+XMY3QmAWKdSNnMIe/6vnw1vWNmBVrNdhrpUrMCcXwEyfWqpvYobG9JiiRTsf2JLGpuNmWHhLrHRuzf5c5iBM4i/DCBoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757724333; c=relaxed/simple; bh=kibOCauDCBkqzoIIQtVCNE2P0zxtFVdI1DUZ/kvaArs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FFlniozk9hvx7EO/qKke2prWKH1T7TPR5166xdXhatLQTZ8UOKVj3P6DkNGDr6cTR6y/kT8crBQFg0UktJDvtQzewSbJT+QjYrLDyVypjvUvkkGUnatEp5kXWQBRoV9Tgahlmm/NaAROwGN/Gr7dmQtlKQFwAu328hwj+3NyInI= 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=ancY8d1h; arc=none smtp.client-ip=209.85.218.53 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="ancY8d1h" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-b04271cfc3eso311676566b.3 for ; Fri, 12 Sep 2025 17:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757724329; x=1758329129; darn=lists.linux.dev; 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=fi1FJKwP9nWnSjptSGh11GRsqwR1G48l7l6Ou3g4XAs=; b=ancY8d1hJkhik7tQJ7eeHZQbr9iGJqiOAf78dYM8m4uxSIQzlttCWcD5jcjawmRdaA j/xMSE4l4MI3g4Ecm2FhTHR5nKtcOnBWA39wqPqWcw+EJYUzuwjpt7W7ZY0i/Vv5/J8C LJRpfo3aCk+ndeuiyPB7rzfFWt8iueDHrRWT3mUafdfecWupVY22yE58uECIGy61QR0b w4M4uHNaG/sVhHoryxsWU+JGGldM10nXkI17vz5GAxcQkIPTDHcB+4/mRbxN5K1rR++1 zlS5IJDRLocOMMVtj71mBllt5nQTBqZircHk7n52yerCclXJqJimgwl6jKyz0Jmpgz4C 5pXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757724329; x=1758329129; 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=fi1FJKwP9nWnSjptSGh11GRsqwR1G48l7l6Ou3g4XAs=; b=T5RXBjUDg3YrsumfTMomgNHAMl//4tb1hn5bAqIgO6KhksYl61td0psxKNLRA2dgQg EY8K+D7olYWCX+mE5ZrQGVKpaWh5mb7f9I8M77cL0rvndTQI1RzvV5vmOb9ofr7o3RnH iuY219/PaTQQ0Me7/9fkcoaWSqSzHuZE3+2OwM7kYufomE++Hj0JzC47DRX/z5TJJhqa TiOeOaxrlpI+9G1SVl7L2THi27nP442UeRWXIuSLJ/zYrGEup9CGqdABBR0+P9LAokZo 2wG9uwwR2KcOguaZaLlVF3DLpoChcpAQpP1oKRgjjrVQYTDjwaK2PSV+tyxp9A77yXb6 nkcQ== X-Forwarded-Encrypted: i=1; AJvYcCWZeDzYb43ZWTKJI3fKHw/Q3FouT90qGCGF+b9qP53uSVlt9uz/c+9PA7yB9mSLLeCQurI+pkEe@lists.linux.dev X-Gm-Message-State: AOJu0YxuYemIgJoNCpsnbQSvlkujLmynF3o/UpiQJp1MYhAePBao+he6 EiYeqh0kaEg3xthllPcY3nTAYJiVlwgQfwGmJGXMT8e3zgDJSPAO2Mb7 X-Gm-Gg: ASbGncsXvAUpQ3GNOlnVeu7YkExNt0uORanExZ8PjOEjvLAbeKvNLvNqYxfRwnGusId vX08hUqqUFwR3Fh7HJOwN7n6qYgoMzWZT4B1LYQj3KvyU1WvY8RcVso4Kedm+M02+bG2MaOxeSm HZlJMaU7wwPvrLRbzMJgVXHUmZuCJPaNA5eUyvEb9HJTalggyx44h3gPALNDVVfBF2sVe81cUo4 gPqZn8GBn0ShqOCsTawcvt/nmiJtwV3kZ++ZwAlug3jTL4IhhWzdGwZstjUK8gRuLYNIzySs8nM uU9/JsuprZ3nAALuep/7vy3zg0WzWXElr21hmI9m9twnnVFh+EnpOlHDtOAr0z+FrAblRqkFNMm 98TOPwSqrGnbMIUWsmrQ= X-Google-Smtp-Source: AGHT+IEY39yKNpHOwhu+b8E85JfZO5GXoHp0A73FES6zZeZtQwPXvLC0BV0HcFzY55ZLXxqy2VO9oA== X-Received: by 2002:a17:907:9405:b0:b07:c9b2:dbd with SMTP id a640c23a62f3a-b07c9b20f2cmr456963866b.4.1757724328684; Fri, 12 Sep 2025 17:45:28 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b07b32dd5casm460965366b.68.2025.09.12.17.45.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Sep 2025 17:45:28 -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 05/62] init: remove "ramdisk_start" command line parameter, which controls starting block number of initrd Date: Sat, 13 Sep 2025 00:37:44 +0000 Message-ID: <20250913003842.41944-6-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: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is preparation for initrd removal Signed-off-by: Askar Safin --- Documentation/admin-guide/blockdev/ramdisk.rst | 3 +-- Documentation/admin-guide/kernel-parameters.txt | 2 -- init/do_mounts_rd.c | 7 ------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Documentation/admin-guide/blockdev/ramdisk.rst b/Documentation/admin-guide/blockdev/ramdisk.rst index 9ce6101e8dd9..e57c61108dbc 100644 --- a/Documentation/admin-guide/blockdev/ramdisk.rst +++ b/Documentation/admin-guide/blockdev/ramdisk.rst @@ -74,12 +74,11 @@ arch/x86/boot/Makefile. Some of the kernel command line boot options that may apply here are:: - ramdisk_start=N ramdisk_size=M If you make a boot disk that has LILO, then for the above, you would use:: - append = "ramdisk_start=N ramdisk_size=M" + append = "ramdisk_size=M" 4) An Example of Creating a Compressed RAM Disk ----------------------------------------------- diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index f940c1184912..07e8878f1e13 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -5285,8 +5285,6 @@ ramdisk_size= [RAM] Sizes of RAM disks in kilobytes See Documentation/admin-guide/blockdev/ramdisk.rst. - ramdisk_start= [RAM] RAM disk image start address - random.trust_cpu=off [KNL,EARLY] Disable trusting the use of the CPU's random number generator (if available) to diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index 8e0a774a9c6f..864fa88d9f89 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -17,13 +17,6 @@ static struct file *in_file, *out_file; static loff_t in_pos, out_pos; -static int __init ramdisk_start_setup(char *str) -{ - /* will be removed in next commit */ - return 1; -} -__setup("ramdisk_start=", ramdisk_start_setup); - static int __init crd_load(decompress_fn deco); /* -- 2.47.2