mips: econet: fix unmet dependencies for ECONET
PATCH v2 1/1 mips: econet: fix unmet dependencies for ECONET
ECONET selects EARLY_PRINTK_8250, SERIAL_OF_PLATFORM, and SERIAL_8250 without ensuring their dependencies, EARLY_PRINTK and TTY are met. This causes unmet dependencies:
WARNING: unmet direct dependencies detected for SERIAL_8250
Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && !S390 Selected by [y]:
- ECONET [=y]
WARNING: unmet direct dependencies detected for EARLY_PRINTK_8250
Depends on [n]: EARLY_PRINTK [=n] && USE_GENERIC_EARLY_PRINTK_8250 [=y] Selected by [y]:
- ECONET [=y]
WARNING: unmet direct dependencies detected for SERIAL_OF_PLATFORM
Depends on [n]: TTY [=n] && HAS_IOMEM [=y] && SERIAL_8250 [=y] && OF [=y] Selected by [y]:
- ECONET [=y]
However, in the discussion of v1 of this patch, Arnd pointed out that these selects don't belong here in the first place. [1]
Let's remove them to resolve the unmet dependencies.
These unmet dependencies were found by kconfirm, a static analysis tool for Kconfig.
---
Changes since v1: remove the selects, instead of selecting more
Link to v1: https://lore.kernel.org/all/[email protected]/
--- arch/mips/Kconfig | 3 --- 1 file changed, 3 deletions(-)
arch/mips/Kconfig +0 -3
@@ -396,10 +396,7 @@ config ECONET bool "EcoNet MIPS family" select BOOT_RAW select DEBUG_ZBOOT if DEBUG_KERNEL - select EARLY_PRINTK_8250 select ECONET_EN751221_TIMER - select SERIAL_8250 - select SERIAL_OF_PLATFORM select SYS_SUPPORTS_BIG_ENDIAN select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2
Signature · 1 line
2.55.0
Quoted 23 lines · Julian Braha
ECONET selects
EARLY_PRINTK_8250,SERIAL_OF_PLATFORM, andSERIAL_8250without ensuring their dependencies,EARLY_PRINTKand TTY are met. This causes unmet dependencies:WARNING: unmet direct dependencies detected for
SERIAL_8250
Depends on [n]: TTY [=n] &&HAS_IOMEM[=y] && !S390 Selected by [y]:
- ECONET [=y]WARNING: unmet direct dependencies detected for
EARLY_PRINTK_8250
Depends on [n]:EARLY_PRINTK[=n] &&USE_GENERIC_EARLY_PRINTK_8250[=y] Selected by [y]:
- ECONET [=y]WARNING: unmet direct dependencies detected for
SERIAL_OF_PLATFORM
Depends on [n]: TTY [=n] &&HAS_IOMEM[=y] &&SERIAL_8250[=y] && OF [=y] Selected by [y]:
- ECONET [=y]However, in the discussion of v1 of this patch, Arnd pointed out that these selects don't belong here in the first place. [1]
Let's remove them to resolve the unmet dependencies.
Quoted 7 lines
These unmet dependencies were found by kconfirm, a static analysis tool for
Kconfig.Fixes 79ee1d20e37c ("mips: econet: Fix incorrect Kconfig dependencies")Fixes 35fb26f94dfa ("mips: Add EcoNet MIPS platform support")Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Julian Braha <[email protected]>
Quoted 24 lines
---
Changes since v1: remove the selects, instead of selecting more
Link to v1: https://lore.kernel.org/all/[email protected]/--- arch/mips/Kconfig | 3 --- 1 file changed, 3 deletions(-)arch/mips/Kconfig +0
-3@@ -396,10 +396,7 @@ config ECONET bool "EcoNet MIPS family" select BOOT_RAW select DEBUG_ZBOOT if DEBUG_KERNEL - select EARLY_PRINTK_8250 select ECONET_EN751221_TIMER - select SERIAL_8250 - select SERIAL_OF_PLATFORM select SYS_SUPPORTS_BIG_ENDIAN select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2
Quoted 56 lines · Julian Braha
ECONET selects
EARLY_PRINTK_8250,SERIAL_OF_PLATFORM, andSERIAL_8250without ensuring their dependencies,EARLY_PRINTKand TTY are met. This causes unmet dependencies:WARNING: unmet direct dependencies detected for
SERIAL_8250
Depends on [n]: TTY [=n] &&HAS_IOMEM[=y] && !S390 Selected by [y]:
- ECONET [=y]WARNING: unmet direct dependencies detected for
EARLY_PRINTK_8250
Depends on [n]:EARLY_PRINTK[=n] &&USE_GENERIC_EARLY_PRINTK_8250[=y] Selected by [y]:
- ECONET [=y]WARNING: unmet direct dependencies detected for
SERIAL_OF_PLATFORM
Depends on [n]: TTY [=n] &&HAS_IOMEM[=y] &&SERIAL_8250[=y] && OF [=y] Selected by [y]:
- ECONET [=y]However, in the discussion of v1 of this patch, Arnd pointed out that these selects don't belong here in the first place. [1]
Let's remove them to resolve the unmet dependencies.These unmet dependencies were found by kconfirm, a static analysis tool for
Kconfig.Fixes 79ee1d20e37c ("mips: econet: Fix incorrect Kconfig dependencies")Fixes 35fb26f94dfa ("mips: Add EcoNet MIPS platform support")Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Julian Braha <[email protected]>---
Changes since v1: remove the selects, instead of selecting more
Link to v1: https://lore.kernel.org/all/[email protected]/--- arch/mips/Kconfig | 3 --- 1 file changed, 3 deletions(-)arch/mips/Kconfig +0
-3@@ -396,10 +396,7 @@ config ECONET bool "EcoNet MIPS family" select BOOT_RAW select DEBUG_ZBOOT if DEBUG_KERNEL - select EARLY_PRINTK_8250 select ECONET_EN751221_TIMER - select SERIAL_8250 - select SERIAL_OF_PLATFORM select SYS_SUPPORTS_BIG_ENDIAN select SYS_HAS_CPU_MIPS32_R1 select SYS_HAS_CPU_MIPS32_R2Signature · 1 line
2.55.0
applied to mips-fixes
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]