Re: [PATCH RESEND 05/62] init: remove "ramdisk_start" command line parameter, which controls starting block number of initrd

Christophe Leroy <[email protected]>
Newsgroups gmane.linux.ports.riscv,gmane.linux.file-systems,gmane.linux.kernel,gmane.linux.kernel.cross-arch,gmane.linux.ports.alpha,gmane.linux.kernel.arc,gmane.linux.ports.arm.kernel,gmane.linux.ports.hexagon,gmane.linux.ports.mips,gmane.linux.ports.parisc,gmane.linux.ports.ppc64.devel,gmane.linux.ports.sh.devel,gmane.linux.ports.sparc,gmane.linux.uml.devel,gmane.linux.block,gmane.linux.kernel.initramfs,gmane.linux.kernel.api,gmane.linux.documentation,gmane.linux.kernel.efi,gmane.comp.file-systems.ext4,gmane.linux.acpi.devel,gmane.linux.drivers.devicetree
Message-ID <[email protected]>
Have a simpler subject,

Le 13/09/2025 à 02:37, Askar Safin a écrit :
> [Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
> 
> This is preparation for initrd removal

and make a more interesting message.


For me it would make more sense to remove ramdisk_start and ramdisk_size 
at the same time.

Christophe

> 
> Signed-off-by: Askar Safin <[email protected]>
> ---
>   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
> 
> 


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.