Skip to contentSkip to conversation

riscv: remove redundant CMDLINE_FORCE check

PATCH Applied Zixian Zeng 3 participants 3 messages Jan 13, 2025 – Mar 27, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

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
index 45010e71df86ce40f99fabf03103a49ad1041f3d..a08a8409aab01d504d3ad975fbf9c66c02992713 100644
@@ -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]>
reviewer Reviewed-by on v1 1/1
#1 lore raw

Hi Zixian,

Quoted 30 lines · Zixian Zeng

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 -6
index 45010e71df86ce40f99fabf03103a49ad1041f3d..a08a8409aab01d504d3ad975fbf9c66c02992713 100644
@@ -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

#2 lore raw
In reply to Zixian Zeng
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_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(-)

[...]

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