2020-03-03 03:34:15

by Baolin Wang

[permalink] [raw]
Subject: [PATCH] pinctrl: sprd: Fix the kconfig warning

On X86 plaform, if the CONFIG_OF is not selected, and set the
CONFIG_SPRD_SC9860 as 'm', that will cause below waring:

WARNING: unmet direct dependencies detected for PINCTRL_SPRD
Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y])
Selected by [m]:
- PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y]

Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860
to fix the warning.

Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Baolin Wang <[email protected]>
---
drivers/pinctrl/sprd/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig
index c9e7f0b..eef35d0 100644
--- a/drivers/pinctrl/sprd/Kconfig
+++ b/drivers/pinctrl/sprd/Kconfig
@@ -4,9 +4,7 @@
#

config PINCTRL_SPRD
- tristate "Spreadtrum pinctrl driver"
- depends on OF
- depends on ARCH_SPRD || COMPILE_TEST
+ tristate
select PINMUX
select PINCONF
select GENERIC_PINCONF
@@ -16,6 +14,8 @@ config PINCTRL_SPRD

config PINCTRL_SPRD_SC9860
tristate "Spreadtrum SC9860 pinctrl driver"
+ depends on OF
+ depends on ARCH_SPRD || COMPILE_TEST
select PINCTRL_SPRD
help
Say Y here to enable Spreadtrum SC9860 pinctrl driver
--
1.9.1


2020-03-03 04:47:04

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: sprd: Fix the kconfig warning

On 3/2/20 7:32 PM, Baolin Wang wrote:
> On X86 plaform, if the CONFIG_OF is not selected, and set the
> CONFIG_SPRD_SC9860 as 'm', that will cause below waring:
>
> WARNING: unmet direct dependencies detected for PINCTRL_SPRD
> Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y])
> Selected by [m]:
> - PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y]
>
> Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860
> to fix the warning.
>
> Reported-by: Randy Dunlap <[email protected]>
> Signed-off-by: Baolin Wang <[email protected]>

Works for me. Thanks.

Acked-by: Randy Dunlap <[email protected]> # build-tested


> ---
> drivers/pinctrl/sprd/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig
> index c9e7f0b..eef35d0 100644
> --- a/drivers/pinctrl/sprd/Kconfig
> +++ b/drivers/pinctrl/sprd/Kconfig
> @@ -4,9 +4,7 @@
> #
>
> config PINCTRL_SPRD
> - tristate "Spreadtrum pinctrl driver"
> - depends on OF
> - depends on ARCH_SPRD || COMPILE_TEST
> + tristate
> select PINMUX
> select PINCONF
> select GENERIC_PINCONF
> @@ -16,6 +14,8 @@ config PINCTRL_SPRD
>
> config PINCTRL_SPRD_SC9860
> tristate "Spreadtrum SC9860 pinctrl driver"
> + depends on OF
> + depends on ARCH_SPRD || COMPILE_TEST
> select PINCTRL_SPRD
> help
> Say Y here to enable Spreadtrum SC9860 pinctrl driver
>


--
~Randy

2020-03-03 05:04:23

by Baolin Wang

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: sprd: Fix the kconfig warning

On Tue, Mar 3, 2020 at 12:45 PM Randy Dunlap <[email protected]> wrote:
>
> On 3/2/20 7:32 PM, Baolin Wang wrote:
> > On X86 plaform, if the CONFIG_OF is not selected, and set the
> > CONFIG_SPRD_SC9860 as 'm', that will cause below waring:
> >
> > WARNING: unmet direct dependencies detected for PINCTRL_SPRD
> > Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y])
> > Selected by [m]:
> > - PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y]
> >
> > Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860
> > to fix the warning.
> >
> > Reported-by: Randy Dunlap <[email protected]>
> > Signed-off-by: Baolin Wang <[email protected]>
>
> Works for me. Thanks.
>
> Acked-by: Randy Dunlap <[email protected]> # build-tested

Thanks for your reporting and testing.

2020-03-03 13:07:12

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: sprd: Fix the kconfig warning

On Tue, Mar 3, 2020 at 4:32 AM Baolin Wang <[email protected]> wrote:

> On X86 plaform, if the CONFIG_OF is not selected, and set the
> CONFIG_SPRD_SC9860 as 'm', that will cause below waring:
>
> WARNING: unmet direct dependencies detected for PINCTRL_SPRD
> Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y])
> Selected by [m]:
> - PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y]
>
> Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860
> to fix the warning.
>
> Reported-by: Randy Dunlap <[email protected]>
> Signed-off-by: Baolin Wang <[email protected]>

Oh there is a fix.

Patch applied, thanks!

Yours,
Linus Walleij