RISC-V: fix incorrect type of ARCH_CANAAN_K210_DTB_SOURCE
PATCH 1/1 RISC-V: fix incorrect type of ARCH_CANAAN_K210_DTB_SOURCE
When adding the ARCH_ symbol for the builtin K210 dtb, I erroneously used the bool type for something that is quite obviously a string. Unfortunately, there is no such thing as "def_string", but in this case we can use "default" to propagate the value of SOC_CANAAN_K210_DTB_SOURCE to ARCH_CANAAN_K210_DTB_SOURCE. ARCH_CANAAN_K210_DTB_SOURCE is not user selectable, so using olddefconfig etc will update ARCH_CANAAN_K210_DTB_SOURCE to reflect any changes made to SOC_CANAAN_K210_DTB_SOURCE.
---
Palmer, this one's for you btw
--- arch/riscv/Kconfig.socs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/riscv/Kconfig.socs +2 -1
@@ -79,7 +79,8 @@ config SOC_CANAAN_K210_DTB_BUILTIN If unsure, say Y. config ARCH_CANAAN_K210_DTB_SOURCE - def_bool SOC_CANAAN_K210_DTB_SOURCE + string + default SOC_CANAAN_K210_DTB_SOURCE config SOC_CANAAN_K210_DTB_SOURCE string "Source file for the Canaan Kendryte K210 builtin DTB"
Signature · 7 lines
2.39.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 9 lines · Conor Dooley
When adding the
ARCH_symbol for the builtin K210 dtb, I erroneously used the bool type for something that is quite obviously a string. Unfortunately, there is no such thing as "def_string", but in this case we can use "default" to propagate the value ofSOC_CANAAN_K210_DTB_SOURCEtoARCH_CANAAN_K210_DTB_SOURCE.ARCH_CANAAN_K210_DTB_SOURCEis not user selectable, so using olddefconfig etc will updateARCH_CANAAN_K210_DTB_SOURCEto reflect any changes made toSOC_CANAAN_K210_DTB_SOURCE.
Quoted 3 lines
Fixes fc43211939bb ("RISC-V: kconfig.socs: convert usage of SOC_CANAAN to ARCH_CANAAN")Reported-by Geert Uytterhoeven <[email protected]>Signed-off-by Conor Dooley <[email protected]>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:
Quoted 10 lines · On Wed, 11 Jan 2023 10:48:49 +0000 you wrote:
When adding the
ARCH_symbol for the builtin K210 dtb, I erroneously used the bool type for something that is quite obviously a string. Unfortunately, there is no such thing as "def_string", but in this case we can use "default" to propagate the value ofSOC_CANAAN_K210_DTB_SOURCEtoARCH_CANAAN_K210_DTB_SOURCE.ARCH_CANAAN_K210_DTB_SOURCEis not user selectable, so using olddefconfig etc will updateARCH_CANAAN_K210_DTB_SOURCEto reflect any changes made toSOC_CANAAN_K210_DTB_SOURCE.[...]
Here is the summary with links:
- [v1] RISC-V: fix incorrect type of ARCH_CANAAN_K210_DTB_SOURCE
https://git.kernel.org/riscv/c/f1b3dc80f0bb
You are awesome, thank you!
Signature · 9 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv