mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 11:54:37 +08:00
46fd447161
kernel test robot reports build errors in 3 Xilinx ethernet drivers.
They all use ioremap functions that are only available when HAS_IOMEM
is set/enabled. If it is not enabled, they all have build errors,
so make these 3 drivers depend on HAS_IOMEM.
ld: drivers/net/ethernet/xilinx/xilinx_emaclite.o: in function `xemaclite_of_probe':
xilinx_emaclite.c:(.text+0x9fc): undefined reference to `devm_ioremap_resource'
ld: drivers/net/ethernet/xilinx/xilinx_axienet_main.o: in function `axienet_probe':
xilinx_axienet_main.c:(.text+0x942): undefined reference to `devm_ioremap_resource'
ld: drivers/net/ethernet/xilinx/ll_temac_main.o: in function `temac_probe':
ll_temac_main.c:(.text+0x1283): undefined reference to `devm_platform_ioremap_resource_byname'
ld: ll_temac_main.c:(.text+0x13ad): undefined reference to `devm_of_iomap'
ld: ll_temac_main.c:(.text+0x162e): undefined reference to `devm_platform_ioremap_resource'
Fixes: 8a3b7a252d
("drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Cc: Gary Guo <gary@garyguo.net>
Cc: Zhang Changzhong <zhangchangzhong@huawei.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: stable@vger.kernel.org
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Xilink device configuration
|
|
#
|
|
|
|
config NET_VENDOR_XILINX
|
|
bool "Xilinx devices"
|
|
default y
|
|
help
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the questions about Xilinx devices. If you say Y, you will be asked
|
|
for your specific card in the following questions.
|
|
|
|
if NET_VENDOR_XILINX
|
|
|
|
config XILINX_EMACLITE
|
|
tristate "Xilinx 10/100 Ethernet Lite support"
|
|
depends on HAS_IOMEM
|
|
select PHYLIB
|
|
help
|
|
This driver supports the 10/100 Ethernet Lite from Xilinx.
|
|
|
|
config XILINX_AXI_EMAC
|
|
tristate "Xilinx 10/100/1000 AXI Ethernet support"
|
|
depends on HAS_IOMEM
|
|
select PHYLINK
|
|
help
|
|
This driver supports the 10/100/1000 Ethernet from Xilinx for the
|
|
AXI bus interface used in Xilinx Virtex FPGAs and Soc's.
|
|
|
|
config XILINX_LL_TEMAC
|
|
tristate "Xilinx LL TEMAC (LocalLink Tri-mode Ethernet MAC) driver"
|
|
depends on HAS_IOMEM
|
|
select PHYLIB
|
|
help
|
|
This driver supports the Xilinx 10/100/1000 LocalLink TEMAC
|
|
core used in Xilinx Spartan and Virtex FPGAs
|
|
|
|
endif # NET_VENDOR_XILINX
|