gpio: GPIO_SCH: depends on LPC_SCH
PATCH v2 1/1 gpio: GPIO_SCH: depends on LPC_SCH
Since LPC_SCH provides GPIO functionality, GPIO_SCH should depend on LPC_SCH to prevent kconfig warning and build errors:
WARNING: unmet direct dependencies detected for LPC_SCH
Depends on [n]: HAS_IOMEM [=y] && PCI [=n]
Selected by [y]:
- GPIO_SCH [=y] && GPIOLIB [=y] && X86 [=y] && (X86 [=y] || COMPILE_TEST [=n]) && ACPI [=y]
and
../drivers/mfd/lpc_sch.c:204:1: warning: data definition has no type or storage class
module_pci_driver(lpc_sch_driver);
^~~~~~~~~~~~~~~~~../drivers/mfd/lpc_sch.c:204:1: error: type defaults to ‘int’ in declaration of ‘module_pci_driver’ [-Werror=implicit-int] ../drivers/mfd/lpc_sch.c:204:1: warning: parameter names (without types) in function declaration ../drivers/mfd/lpc_sch.c:197:26: warning: ‘lpc_sch_driver’ defined but not used [-Wunused-variable]
static struct pci_driver lpc_sch_driver = {
^~~~~~~~~~~~~~---
v2: change to "depends on LPC_SCH" as suggested by Andy
drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
@@ -861,9 +861,9 @@ config GPIO_IT87 config GPIO_SCH tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO" depends on (X86 || COMPILE_TEST) && ACPI + depends on LPC_SCH select GPIOLIB_IRQCHIP select MFD_CORE - select LPC_SCH help Say yes here to support GPIO interface on Intel Poulsbo SCH, Intel Tunnel Creek processor, Intel Centerton processor or
Quoted 11 lines · Randy Dunlap
Since
LPC_SCHprovides GPIO functionality,GPIO_SCHshould depend onLPC_SCHto prevent kconfig warning and build errors:WARNING: unmet direct dependencies detected for
LPC_SCH
Depends on [n]:HAS_IOMEM[=y] && PCI [=n]
Selected by [y]:
-GPIO_SCH[=y] && GPIOLIB [=y] && X86 [=y] && (X86 [=y] ||COMPILE_TEST[=n]) && ACPI [=y]and
Quoted 8 lines
../drivers/mfd/lpc_sch.c:204:1: warning: data definition has no type or storage class
module_pci_driver(lpc_sch_driver);
^~~~~~~~~~~~~~~~~../drivers/mfd/lpc_sch.c:204:1: error: type defaults to ‘int’ in declaration of ‘module_pci_driver’ [-Werror=implicit-int]../drivers/mfd/lpc_sch.c:204:1: warning: parameter names (without types) in function declaration../drivers/mfd/lpc_sch.c:197:26: warning: ‘lpc_sch_driver’ defined but not used [-Wunused-variable]static struct pci_driver lpc_sch_driver = { ^~~~~~~~~~~~~~
Thanks!
Bart, please, take it in your tree directly, or if you wish I may collect this one together with Hans' one and send a PR.
Quoted 27 lines
Fixes 6c46215d6b62 ("gpio: sch: Hook into ACPI GPE handler to catch GPIO edge events")Signed-off-by Randy Dunlap <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Linus Walleij <[email protected]>Cc Bartosz Golaszewski <[email protected]>Cc Denis Turischev <[email protected]>---
v2: change to "depends onLPC_SCH" as suggested by Andydrivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpio/Kconfig +1
-1@@ -861,9 +861,9 @@ config GPIO_IT87 config GPIO_SCH tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO" depends on (X86 || COMPILE_TEST) && ACPI + depends on LPC_SCH select GPIOLIB_IRQCHIP select MFD_CORE - select LPC_SCH help Say yes here to support GPIO interface on Intel Poulsbo SCH, Intel Tunnel Creek processor, Intel Centerton processor or
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 21 lines · Andy Shevchenko
Quoted 11 lines · Randy Dunlap
Since
LPC_SCHprovides GPIO functionality,GPIO_SCHshould depend onLPC_SCHto prevent kconfig warning and build errors:WARNING: unmet direct dependencies detected for
LPC_SCH
Depends on [n]:HAS_IOMEM[=y] && PCI [=n]
Selected by [y]:
-GPIO_SCH[=y] && GPIOLIB [=y] && X86 [=y] && (X86 [=y] ||COMPILE_TEST[=n]) && ACPI [=y]and
Quoted 8 lines
../drivers/mfd/lpc_sch.c:204:1: warning: data definition has no type or storage class
module_pci_driver(lpc_sch_driver);
^~~~~~~~~~~~~~~~~../drivers/mfd/lpc_sch.c:204:1: error: type defaults to ‘int’ in declaration of ‘module_pci_driver’ [-Werror=implicit-int]../drivers/mfd/lpc_sch.c:204:1: warning: parameter names (without types) in function declaration../drivers/mfd/lpc_sch.c:197:26: warning: ‘lpc_sch_driver’ defined but not used [-Wunused-variable]static struct pci_driver lpc_sch_driver = { ^~~~~~~~~~~~~~
Quoted 4 lines
Thanks!
Bart, please, take it in your tree directly, or if you wish I may collect this one together with Hans' one and send a PR.
Bart, nevermind. Same answer as to Hans' patch: I'll take care as usual.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 10 lines · Randy Dunlap
Since
LPC_SCHprovides GPIO functionality,GPIO_SCHshould depend onLPC_SCHto prevent kconfig warning and build errors:WARNING: unmet direct dependencies detected for
LPC_SCH
Depends on [n]:HAS_IOMEM[=y] && PCI [=n]
Selected by [y]:
-GPIO_SCH[=y] && GPIOLIB [=y] && X86 [=y] && (X86 [=y] ||COMPILE_TEST[=n]) && ACPI [=y]and
Quoted 8 lines
../drivers/mfd/lpc_sch.c:204:1: warning: data definition has no type or storage class
module_pci_driver(lpc_sch_driver);
^~~~~~~~~~~~~~~~~../drivers/mfd/lpc_sch.c:204:1: error: type defaults to ‘int’ in declaration of ‘module_pci_driver’ [-Werror=implicit-int]../drivers/mfd/lpc_sch.c:204:1: warning: parameter names (without types) in function declaration../drivers/mfd/lpc_sch.c:197:26: warning: ‘lpc_sch_driver’ defined but not used [-Wunused-variable]static struct pci_driver lpc_sch_driver = { ^~~~~~~~~~~~~~
Pushed to my review and testing queue, thanks!
Quoted 5 lines
Fixes 6c46215d6b62 ("gpio: sch: Hook into ACPI GPE handler to catch GPIO edge events")Signed-off-by Randy Dunlap <[email protected]>Cc Andy Shevchenko <[email protected]>Cc Andy Shevchenko <[email protected]>
I have dropped these two since my SoB will be there. But also I think it's better to narrow down this kind of Cc list as much as possible (for example, we know that Bart and Linus are maintainers of GPIO, no need to include them explicitly here, just use --cc parameter when sending).
Quoted 23 lines
Cc Linus Walleij <[email protected]>Cc Bartosz Golaszewski <[email protected]>Cc Denis Turischev <[email protected]>---
v2: change to "depends onLPC_SCH" as suggested by Andydrivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpio/Kconfig +1
-1@@ -861,9 +861,9 @@ config GPIO_IT87 config GPIO_SCH tristate "Intel SCH/TunnelCreek/Centerton/Quark X1000 GPIO" depends on (X86 || COMPILE_TEST) && ACPI + depends on LPC_SCH select GPIOLIB_IRQCHIP select MFD_CORE - select LPC_SCH help Say yes here to support GPIO interface on Intel Poulsbo SCH, Intel Tunnel Creek processor, Intel Centerton processor or
Signature · 2 lines
With Best Regards, Andy Shevchenko