net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected
Subsystems (2)
PATCH 1/1 net: via/Kconfig: GENERIC_PCI_IOMAP required if PCI not selected
The builds of allmodconfig of avr32 is failing with:
drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration] drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration of function 'pci_iounmap' [-Werror=implicit-function-declaration]
The generic empty pci_iomap and pci_iounmap is used only if CONFIG_PCI is not defined and CONFIG_GENERIC_PCI_IOMAP is defined.
Add GENERIC_PCI_IOMAP in the dependency list for VIA_RHINE as we are getting build failure when CONFIG_PCI and CONFIG_GENERIC_PCI_IOMAP both are not defined.
---
Failed build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/81127188
An exactly similar patch has been posted earlier and relevant discussion is at:
https://patchwork.ozlabs.org/patch/498722/
I posted a patch to include empty pci_iomap, pci_iounmap in avr32. That discussion is at:
https://lkml.org/lkml/2015/9/19/100
drivers/net/ethernet/via/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/via/Kconfig +1 -1
@@ -17,7 +17,7 @@ if NET_VENDOR_VIA config VIA_RHINE tristate "VIA Rhine support" - depends on (PCI || OF_IRQ) + depends on (PCI || (OF_IRQ && GENERIC_PCI_IOMAP)) depends on HAS_DMA select CRC32 select MII
Signature · 1 line
1.9.1
Hello.
Quoted 36 lines · Sudip Mukherjee
The builds of allmodconfig of avr32 is failing with:
drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration of function 'pci_iomap' [-Werror=implicit-function-declaration]drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration of function 'pci_iounmap' [-Werror=implicit-function-declaration]The generic empty
pci_iomapandpci_iounmapis used only ifCONFIG_PCIis not defined andCONFIG_GENERIC_PCI_IOMAPis defined.Add
GENERIC_PCI_IOMAPin the dependency list forVIA_RHINEas we are getting build failure whenCONFIG_PCIandCONFIG_GENERIC_PCI_IOMAPboth are not defined.Signed-off-by Sudip Mukherjee <[email protected]>---
Failed build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/81127188An exactly similar patch has been posted earlier and relevant discussion is at:
https://patchwork.ozlabs.org/patch/498722/I posted a patch to include empty
pci_iomap,pci_iounmapin avr32. That discussion is at:
https://lkml.org/lkml/2015/9/19/100drivers/net/ethernet/via/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/via/Kconfig +0
-0
drivers/net/ethernet/via/Kconfig if NET_VENDOR_VIA · line 20
Quoted 5 lines
drivers/net/ethernet/via/Kconfig +1
-1@@ -17,7 +17,7 @@ if NET_VENDOR_VIA config VIA_RHINE tristate "VIA Rhine support" - depends on (PCI || OF_IRQ) + depends on (PCI || (OF_IRQ && GENERIC_PCI_IOMAP))
Could you remove outer braces, while at it?
[...]
MBR, Sergei
David Miller
maintainerFrom: Sergei Shtylyov <[email protected]>
Date: Fri, 25 Sep 2015 21:03:52 +0300
Quoted 22 lines
Hello.
Quoted 18 lines · Sudip Mukherjee
The builds of allmodconfig of avr32 is failing with:
drivers/net/ethernet/via/via-rhine.c:1098:2: error: implicit declaration
of function 'pci_iomap' [-Werror=implicit-function-declaration]drivers/net/ethernet/via/via-rhine.c:1119:2: error: implicit declaration
of function 'pci_iounmap' [-Werror=implicit-function-declaration]The generic empty
pci_iomapandpci_iounmapis used only ifCONFIG_PCIis not defined andCONFIG_GENERIC_PCI_IOMAPis defined.Add
GENERIC_PCI_IOMAPin the dependency list forVIA_RHINEas we are getting build failure whenCONFIG_PCIandCONFIG_GENERIC_PCI_IOMAPboth
are not defined.Signed-off-by Sudip Mukherjee <[email protected]>
...
Quoted 8 lines
drivers/net/ethernet/via/Kconfig if NET_VENDOR_VIA · line 20
Quoted 6 lines
drivers/net/ethernet/via/Kconfig +1
-1@@ -17,7 +17,7 @@ if NET_VENDOR_VIA config VIA_RHINE tristate "VIA Rhine support" - depends on (PCI || OF_IRQ) + depends on (PCI || (OF_IRQ && GENERIC_PCI_IOMAP))Could you remove outer braces, while at it?
I took care of this while applying this patch, thanks everyone.