[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3ae0c2faa08f76efb8a446f262b712df@mailhost.ics.forth.gr>
Date: Tue, 30 Mar 2021 03:52:17 +0300
From: Nick Kossifidis <mick@....forth.gr>
To: Rob Herring <robh@...nel.org>
Cc: Christophe Leroy <christophe.leroy@...roup.eu>,
Andreas Schwab <schwab@...ux-m68k.org>,
Will Deacon <will@...nel.org>,
Daniel Walker <danielwa@...co.com>,
Daniel Gimpelevich <daniel@...pelevich.san-francisco.ca.us>,
"open list:GENERIC INCLUDE/ASM HEADER FILES"
<linux-arch@...r.kernel.org>, devicetree@...r.kernel.org,
linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
linux-kernel@...r.kernel.org,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
microblaze <monstr@...str.eu>,
"open list:MIPS" <linux-mips@...r.kernel.org>,
nios2 <ley.foon.tan@...el.com>,
Openrisc <openrisc@...ts.librecores.org>,
linux-hexagon@...r.kernel.org,
linux-riscv <linux-riscv@...ts.infradead.org>,
X86 ML <x86@...nel.org>, linux-xtensa@...ux-xtensa.org,
SH-Linux <linux-sh@...r.kernel.org>,
sparclinux <sparclinux@...r.kernel.org>, paul.walmsley@...ive.com
Subject: Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE
Στις 2021-03-26 17:26, Rob Herring έγραψε:
> On Fri, Mar 26, 2021 at 8:20 AM Christophe Leroy
> <christophe.leroy@...roup.eu> wrote:
>>
>>
>>
>> Le 26/03/2021 à 15:08, Andreas Schwab a écrit :
>> > On Mär 26 2021, Christophe Leroy wrote:
>> >
>> >> diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
>> >> index f8f15332caa2..e7c91ee478d1 100644
>> >> --- a/arch/riscv/kernel/setup.c
>> >> +++ b/arch/riscv/kernel/setup.c
>> >> @@ -20,6 +20,7 @@
>> >> #include <linux/swiotlb.h>
>> >> #include <linux/smp.h>
>> >> #include <linux/efi.h>
>> >> +#include <linux/cmdline.h>
>> >>
>> >> #include <asm/cpu_ops.h>
>> >> #include <asm/early_ioremap.h>
>> >> @@ -228,10 +229,8 @@ static void __init parse_dtb(void)
>> >> }
>> >>
>> >> pr_err("No DTB passed to the kernel\n");
>> >> -#ifdef CONFIG_CMDLINE_FORCE
>> >> - strlcpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
>> >> + cmdline_build(boot_command_line, NULL, COMMAND_LINE_SIZE);
>> >> pr_info("Forcing kernel command line to: %s\n", boot_command_line);
>> >
>> > Shouldn't that message become conditional in some way?
>> >
>>
>> You are right, I did something similar on ARM but looks like I missed
>> it on RISCV.
>
> How is this hunk even useful? Under what conditions can you boot
> without a DTB? Even with a built-in DTB, the DT cmdline handling would
> be called.
>
> Rob
>
cced Paul who introduced this:
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/arch/riscv/kernel/setup.c?id=8fd6e05c7463b635e51ec7df0a1858c1b5a6e350
Powered by blists - more mailing lists