From nobody Thu Oct 2 19:01:33 2025 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 4C0576BB5B for ; Sat, 13 Sep 2025 00:57:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757725053; cv=none; b=e4tTGWTLy+RR1lo1ocpf0T7OsaVWizx2Z9XJOfiWDj1aXEE1rMp0eySIBt79+EUPGZC4+0Ezw2+hiXt8IrJlp7RvoH0gTbya8a82ytEJwiHR85ocHEDfreMovdu7cMtiq7sfYt6T5NJmrNENSfK/Olk3xj6knJe2xcZD4bXdsHs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757725053; c=relaxed/simple; bh=icqv9qJHo4M/f4BybNZRp4QArCkqmFyOuQeqTRdwg0I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hSznBpuOo/BdJV4mMRtp+ut8C8nxx+7FUBttN6TgvWJtQYA0+p7Y2JdFXq/Tw7Mh1Rxkx5wIif1QHrH+mfOxoD2hZ+wiTo6G3L6DzNahVH4717NgKLeEiImpBuA3lytjA4wxNStFs/qUi2K0mreq+gtsbeuQ4Wr05TSpn7tMTYI= 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=IxttpIxd; arc=none smtp.client-ip=209.85.218.45 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="IxttpIxd" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-b04b55d5a2cso428008066b.2 for ; Fri, 12 Sep 2025 17:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757725050; x=1758329850; 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=ezI+jX/C/Y112e/n5Rz3xR2Z7MqtqGJhurNzHRBUkc4=; b=IxttpIxd7SK+1cAWw1/JNCEYJzFEye4jRVTGQOfbo1MNIq6mG5v8Y7onxIIuz13jHR nSd98sFpCzgmue005hvKDszQzXg5khhjThue5L+j/7rrDALA/jODXy5Itcc0VqIP1hlp 7lREmLms7JNHHRMSgpi3DF4Ip69vY+lt4UlDeIVBOrzTnPJTHtWZVTzqAZ32TSaaUPC5 71tw+FITO9Zg3Q/ktA+SeUhnAyBKxiVOVhxgrDJBPZr3AauXnvo8sWFhmedNgGFmaf4M HT2zNLMoK/nEhJetJGumkak/Jvy7jzRS3Tr/4UsuB4DXhw9C3A6DylwaX2WC9VSe8gPI KFhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757725050; x=1758329850; 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=ezI+jX/C/Y112e/n5Rz3xR2Z7MqtqGJhurNzHRBUkc4=; b=uXcClXxe5jzCBWvSkEaN+VxoPtSnylca1Q9/eSELhdPV3HEEOFFx78jTWE8PKj1x1i nqWzsZhsNEEwAM3Q7cAyQ6CcSfgn00U3YkQBLkfbUYan/Ju354OOfEHi5GambxYmhS0c HZrKOIKsfnRfYsNhenEcJ8250yBB/60sDMqIIf+eekTShmpDjKOjPWukgGuT8wK1V++o BB8w304PL4tubH7G4DxbK8jiYdws9CWDlAH/VyATR+M77RmcogDdeVP+m084NkCh7TPx Z10g4rDqGFUAkDVBJbjfz30/nvcqHi7mVI2KwnBlZZRX3/HfOpotNA3XPv3/Kixnj1mF uZww== X-Forwarded-Encrypted: i=1; AJvYcCVn0x9TK/1ZCQpWGiyNk2M2gb+YzEd9QcHUwZjURIZYzgjG3yMSOjPwLa01EzG4jh+57MuPS80xqDSQMgc=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2Nuxtj+6hnDbB60DoRITxdVhJ1VAiz3iss7ZHMfho9Ewg22o2 nafcsM5ivdq/VskeD6e68MhIBTo5jaQJPtK3Fz4Tt0v/ZqM28n+7kmnp X-Gm-Gg: ASbGncvWLZq3iJdk08whMXCBAazUxdNaH5R1vGiZvl398CjdHzcOyOhk9bpt6UqdyZ7 VRBHe8d7PDIubikM334FVz/pZIj0VcHF7Gb5KbvgxFn89ral3afsehtXXJV7iytHEZu7Sfg3nyC ZRNiDbMUDyNDtKmSbe1DUTRzBaUdD7qKP3wXhBvI6Pd8tJlOoxulrzAuwmJmDoQscgDGEVQ52QF CU788gw4bZLgLEGG+Iq/lLl+Kx/7tb6+gEJEJPL2seRQHmTd2wTzMF3Pqt+w6T23jZy1oWrNjGi DM8pGlHL8ZHluey4Zow28nDdsOBvdgwXUuBZfurqjolxYMLAOv59J9HzIYLuOdkRwXqrOHuVkIZ 8ODOVWY919vlfuSXSwa7vcIJUuAHt/w== X-Google-Smtp-Source: AGHT+IGnRtXHmAlBOGcWImQD5jsKfQTyCdy3QliDqyqREaJdsFoBMJl1utqd/JT9F2sOVlrjQyooHw== X-Received: by 2002:a17:907:944b:b0:b04:ad1c:59e4 with SMTP id a640c23a62f3a-b07c35328admr535751966b.12.1757725049282; Fri, 12 Sep 2025 17:57:29 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b07b32dd47bsm478662366b.58.2025.09.12.17.57.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Sep 2025 17:57: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 16/62] brd: remove "ramdisk_size" command line parameter Date: Sat, 13 Sep 2025 00:37:55 +0000 Message-ID: <20250913003842.41944-17-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" It was used mostly for initrd. It could be used only if brd is built-in. Use "brd.rd_size" instead Signed-off-by: Askar Safin --- .../admin-guide/kernel-parameters.txt | 3 --- Documentation/arch/m68k/kernel-options.rst | 20 ++----------------- arch/arm/configs/s3c6400_defconfig | 2 +- drivers/block/brd.c | 10 ---------- 4 files changed, 3 insertions(+), 32 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentatio= n/admin-guide/kernel-parameters.txt index ad52e3d26014..e862a7b1d2ec 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -5279,9 +5279,6 @@ raid=3D [HW,RAID] See Documentation/admin-guide/md.rst. =20 - ramdisk_size=3D [RAM] Sizes of RAM disks in kilobytes - See Documentation/admin-guide/blockdev/ramdisk.rst. - random.trust_cpu=3Doff [KNL,EARLY] Disable trusting the use of the CPU's random number generator (if available) to diff --git a/Documentation/arch/m68k/kernel-options.rst b/Documentation/arc= h/m68k/kernel-options.rst index 2008a20b4329..f6469ebeb2c7 100644 --- a/Documentation/arch/m68k/kernel-options.rst +++ b/Documentation/arch/m68k/kernel-options.rst @@ -215,27 +215,11 @@ Devices possible for Atari: seconds. =20 =20 -2.6) ramdisk_size=3D ------------------- - -:Syntax: ramdisk_size=3D - -This option instructs the kernel to set up a ramdisk of the given -size in KBytes. Do not use this option if the ramdisk contents are -passed by bootstrap! In this case, the size is selected automatically -and should not be overwritten. - -The only application is for root filesystems on floppy disks, that -should be loaded into memory. To do that, select the corresponding -size of the disk as ramdisk size, and set the root device to the disk -drive (with "root=3D"). - - -2.7) swap=3D +2.5) swap=3D =20 I can't find any sign of this option in 2.2.6. =20 -2.8) buff=3D +2.6) buff=3D ----------- =20 I can't find any sign of this option in 2.2.6. diff --git a/arch/arm/configs/s3c6400_defconfig b/arch/arm/configs/s3c6400_= defconfig index a37e6ac40825..23635d5b9322 100644 --- a/arch/arm/configs/s3c6400_defconfig +++ b/arch/arm/configs/s3c6400_defconfig @@ -4,7 +4,7 @@ CONFIG_ARCH_MULTI_V6=3Dy # CONFIG_ARCH_MULTI_V7 is not set CONFIG_ARCH_S3C64XX=3Dy CONFIG_MACH_WLF_CRAGG_6410=3Dy -CONFIG_CMDLINE=3D"console=3DttySAC0,115200 root=3D/dev/ram init=3D/linuxrc= initrd=3D0x51000000,6M ramdisk_size=3D6144" +CONFIG_CMDLINE=3D"console=3DttySAC0,115200 root=3D/dev/ram init=3D/linuxrc= initrd=3D0x51000000,6M" CONFIG_VFP=3Dy CONFIG_MODULES=3Dy CONFIG_MODULE_UNLOAD=3Dy diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 72f02d2b8a99..05c4325904d2 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -222,16 +222,6 @@ MODULE_LICENSE("GPL"); MODULE_ALIAS_BLOCKDEV_MAJOR(RAMDISK_MAJOR); MODULE_ALIAS("rd"); =20 -#ifndef MODULE -/* Legacy boot options - nonmodular */ -static int __init ramdisk_size(char *str) -{ - rd_size =3D simple_strtol(str, NULL, 0); - return 1; -} -__setup("ramdisk_size=3D", ramdisk_size); -#endif - /* * The device scheme is derived from loop.c. Keep them in synch where poss= ible * (should share code eventually). --=20 2.47.2