riscv: remove redundant CMDLINE_FORCE check
PATCH 1/1 riscv: remove redundant CMDLINE_FORCE check
Drop redundant CMDLINE_FORCE check as it's already done in function early_init_dt_scan_chosen().
---
--- arch/riscv/kernel/setup.c | 5 ----- 1 file changed, 5 deletions(-)
arch/riscv/kernel/setup.c +0 -5
@@ -237,11 +237,6 @@ static void __init parse_dtb(void) }else {pr_err ("No DTB passed to the kernel\n" ); } - -#ifdef CONFIG_CMDLINE_FORCE -strscpy (boot_command_line,CONFIG_CMDLINE ,COMMAND_LINE_SIZE ); -pr_info ("Forcing kernel command line to: %s\n" , boot_command_line); -#endif }#if defined(CONFIG_RISCV_COMBO_SPINLOCKS )
---
base-commit: fa47906ff358a5865b7be2356a5a1d1e58dd17d8
change-id: 20250113-rebund-25d469c1c4d5
Best regards,
Signature · 1 line
Zixian Zeng <[email protected]>
Hi Zixian,
Quoted 30 lines · Zixian Zeng
Drop redundant
CMDLINE_FORCEcheck as it's already done in functionearly_init_dt_scan_chosen().Signed-off-by Zixian Zeng <[email protected]>---
--- arch/riscv/kernel/setup.c | 5 ----- 1 file changed, 5 deletions(-)arch/riscv/kernel/setup.c +0
-6@@ -237,11 +237,6 @@ static void __init parse_dtb(void) }else {pr_err ("No DTB passed to the kernel\n" ); } - -#ifdef CONFIG_CMDLINE_FORCE -strscpy (boot_command_line,CONFIG_CMDLINE ,COMMAND_LINE_SIZE ); -pr_info ("Forcing kernel command line to: %s\n" , boot_command_line); -#endif }#if defined(CONFIG_RISCV_COMBO_SPINLOCKS ) ---base-commit:
fa47906ff358a5865b7be2356a5a1d1e58dd17d8
change-id: 20250113-rebund-25d469c1c4d5
Quoted 1 line
Best regards,
We lose the pr_info() but to me that's not a problem, so:
Thanks,
Alex
This patch was applied to riscv/linux.git (for-next) by Alexandre Ghiti <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (for-next) by Alexandre Ghiti <[email protected]>:
Quoted 10 lines · On Tue, 14 Jan 2025 00:30:20 +0800 you wrote:
Drop redundant
CMDLINE_FORCEcheck as it's already done in functionearly_init_dt_scan_chosen().Signed-off-by Zixian Zeng <[email protected]>---
--- arch/riscv/kernel/setup.c | 5 ----- 1 file changed, 5 deletions(-)[...]
Here is the summary with links:
- riscv: remove redundant CMDLINE_FORCE check
https://git.kernel.org/riscv/c/eac5b138814a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html