mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 14:14:24 +08:00
54dd5a419f
When PINCTRL_ASPEED_G* is selected, and MFD_SYSCON is not selected, Kbuild gives the following warnings: WARNING: unmet direct dependencies detected for PINCTRL_ASPEED Depends on [n]: PINCTRL [=y] && (ARCH_ASPEED [=n] || COMPILE_TEST [=y]) && OF [=y] && MFD_SYSCON [=n] Selected by [y]: - PINCTRL_ASPEED_G4 [=y] && PINCTRL [=y] && (MACH_ASPEED_G4 [=n] || COMPILE_TEST [=y]) && OF [=y] WARNING: unmet direct dependencies detected for PINCTRL_ASPEED Depends on [n]: PINCTRL [=y] && (ARCH_ASPEED [=n] || COMPILE_TEST [=y]) && OF [=y] && MFD_S> Selected by [y]: - PINCTRL_ASPEED_G5 [=y] && PINCTRL [=y] && (MACH_ASPEED_G5 [=n] || COMPILE_TEST [=y]) && O> WARNING: unmet direct dependencies detected for PINCTRL_ASPEED Depends on [n]: PINCTRL [=y] && (ARCH_ASPEED [=n] || COMPILE_TEST [=y]) && OF [=y] && MFD_S> Selected by [y]: - PINCTRL_ASPEED_G6 [=y] && PINCTRL [=y] && (MACH_ASPEED_G6 [=n] || COMPILE_TEST [=y]) && O> This is because MACH_ASPEED_G* depend on (ARCH_ASPEED || COMPILE_TEST). ARCH_ASPEED enables the MFD_SYSCON dependency, but COMPILE_TEST doesn't. These unmet dependency bugs were detected by Kismet, a static analysis tool for Kconfig. Please advise if this is not the appropriate solution. Signed-off-by: Julian Braha <julianbraha@gmail.com> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20211215214022.146391-1-julianbraha@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
34 lines
1014 B
Plaintext
34 lines
1014 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config PINCTRL_ASPEED
|
|
bool
|
|
depends on (ARCH_ASPEED || COMPILE_TEST) && OF
|
|
select MFD_SYSCON
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select REGMAP_MMIO
|
|
|
|
config PINCTRL_ASPEED_G4
|
|
bool "Aspeed G4 SoC pin control"
|
|
depends on (MACH_ASPEED_G4 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 4th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G5
|
|
bool "Aspeed G5 SoC pin control"
|
|
depends on (MACH_ASPEED_G5 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 5th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G6
|
|
bool "Aspeed G6 SoC pin control"
|
|
depends on (MACH_ASPEED_G6 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 6th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|