Skip to content

Commit

Permalink
bootconfig: Update prototype of setup_boot_config()
Browse files Browse the repository at this point in the history
Parameter "cmdline" has no use, drop it.

Link: https://lkml.kernel.org/r/[email protected]

Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Cao jin <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  • Loading branch information
Cao jin authored and rostedt committed Mar 18, 2021
1 parent d8279bf commit 2b7d2fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ static int __init bootconfig_params(char *param, char *val,
return 0;
}

static void __init setup_boot_config(const char *cmdline)
static void __init setup_boot_config(void)
{
static char tmp_cmdline[COMMAND_LINE_SIZE] __initdata;
const char *msg;
Expand Down Expand Up @@ -472,7 +472,7 @@ static void __init setup_boot_config(const char *cmdline)

#else

static void __init setup_boot_config(const char *cmdline)
static void __init setup_boot_config(void)
{
/* Remove bootconfig data from initrd */
get_boot_config_from_initrd(NULL, NULL);
Expand Down Expand Up @@ -872,7 +872,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void)
pr_notice("%s", linux_banner);
early_security_init();
setup_arch(&command_line);
setup_boot_config(command_line);
setup_boot_config();
setup_command_line(command_line);
setup_nr_cpu_ids();
setup_per_cpu_areas();
Expand Down

0 comments on commit 2b7d2fe

Please sign in to comment.