mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
cbfece7518
When both the old and the new PCI drivers are enabled
in the same kernel, there are a couple of namespace
conflicts that cause a build failure:
drivers/pci/controller/pci-ixp4xx.c:38: error: "IXP4XX_PCI_CSR" redefined [-Werror]
38 | #define IXP4XX_PCI_CSR 0x1c
|
In file included from arch/arm/mach-ixp4xx/include/mach/hardware.h:23,
from arch/arm/mach-ixp4xx/include/mach/io.h:15,
from arch/arm/include/asm/io.h:198,
from include/linux/io.h:13,
from drivers/pci/controller/pci-ixp4xx.c:20:
arch/arm/mach-ixp4xx/include/mach/ixp4xx-regs.h:221: note: this is the location of the previous definition
221 | #define IXP4XX_PCI_CSR(x) ((volatile u32 *)(IXP4XX_PCI_CFG_BASE_VIRT+(x)))
|
drivers/pci/controller/pci-ixp4xx.c:148:12: error: 'ixp4xx_pci_read' redeclared as different kind of symbol
148 | static int ixp4xx_pci_read(struct ixp4xx_pci *p, u32 addr, u32 cmd, u32 *data)
| ^~~~~~~~~~~~~~~
Rename both the ixp4xx_pci_read/ixp4xx_pci_write functions and the
IXP4XX_PCI_CSR macro. In each case, I went with the version that
has fewer callers to keep the change small.
Fixes:
|
||
---|---|---|
.. | ||
include/mach | ||
avila-pci.c | ||
avila-setup.c | ||
common-pci.c | ||
common.c | ||
coyote-pci.c | ||
coyote-setup.c | ||
dsmg600-pci.c | ||
dsmg600-setup.c | ||
fsg-pci.c | ||
fsg-setup.c | ||
gateway7001-pci.c | ||
gateway7001-setup.c | ||
goramo_mlr.c | ||
gtwx5715-pci.c | ||
gtwx5715-setup.c | ||
irqs.h | ||
ixdp425-pci.c | ||
ixdp425-setup.c | ||
ixdpg425-pci.c | ||
ixp4xx-of.c | ||
Kconfig | ||
Makefile | ||
Makefile.boot | ||
miccpt-pci.c | ||
nas100d-pci.c | ||
nas100d-setup.c | ||
nslu2-pci.c | ||
nslu2-setup.c | ||
omixp-setup.c | ||
vulcan-pci.c | ||
vulcan-setup.c | ||
wg302v2-pci.c | ||
wg302v2-setup.c |