Commit c9ce1fa1 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

net: prevent ISA drivers from building on PPC32

Prevent drivers from building on PPC32 if they use isa_bus_to_virt(),
isa_virt_to_bus(), or isa_page_to_bus(), which are not available and
thus cause build errors.

../drivers/net/ethernet/3com/3c515.c: In function 'corkscrew_open':
../drivers/net/ethernet/3com/3c515.c:824:9: error: implicit declaration of function 'isa_virt_to_bus'; did you mean 'virt_to_bus'? [-Werror=implicit-function-declaration]

../drivers/net/ethernet/amd/lance.c: In function 'lance_rx':
../drivers/net/ethernet/amd/lance.c:1203:23: error: implicit declaration of function 'isa_bus_to_virt'; did you mean 'bus_to_virt'? [-Werror=implicit-function-declaration]

../drivers/net/ethernet/amd/ni65.c: In function 'ni65_init_lance':
../drivers/net/ethernet/amd/ni65.c:585:20: error: implicit declaration of function 'isa_virt_to_bus'; did you mean 'virt_to_bus'? [-Werror=implicit-function-declaration]

../drivers/net/ethernet/cirrus/cs89x0.c: In function 'net_open':
../drivers/net/ethernet/cirrus/cs89x0.c:897:20: error: implicit declaration of function 'isa_virt_to_bus'; did you mean 'virt_to_bus'? [-Werror=implicit-function-declaration]
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Suggested-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b809ec86
...@@ -32,7 +32,7 @@ config EL3 ...@@ -32,7 +32,7 @@ config EL3
config 3C515 config 3C515
tristate "3c515 ISA \"Fast EtherLink\"" tristate "3c515 ISA \"Fast EtherLink\""
depends on ISA && ISA_DMA_API depends on ISA && ISA_DMA_API && !PPC32
---help--- ---help---
If you have a 3Com ISA EtherLink XL "Corkscrew" 3c515 Fast Ethernet If you have a 3Com ISA EtherLink XL "Corkscrew" 3c515 Fast Ethernet
network card, say Y here. network card, say Y here.
......
...@@ -44,7 +44,7 @@ config AMD8111_ETH ...@@ -44,7 +44,7 @@ config AMD8111_ETH
config LANCE config LANCE
tristate "AMD LANCE and PCnet (AT1500 and NE2100) support" tristate "AMD LANCE and PCnet (AT1500 and NE2100) support"
depends on ISA && ISA_DMA_API && !ARM depends on ISA && ISA_DMA_API && !ARM && !PPC32
---help--- ---help---
If you have a network (Ethernet) card of this type, say Y here. If you have a network (Ethernet) card of this type, say Y here.
Some LinkSys cards are of this type. Some LinkSys cards are of this type.
...@@ -138,7 +138,7 @@ config PCMCIA_NMCLAN ...@@ -138,7 +138,7 @@ config PCMCIA_NMCLAN
config NI65 config NI65
tristate "NI6510 support" tristate "NI6510 support"
depends on ISA && ISA_DMA_API && !ARM depends on ISA && ISA_DMA_API && !ARM && !PPC32
---help--- ---help---
If you have a network (Ethernet) card of this type, say Y here. If you have a network (Ethernet) card of this type, say Y here.
......
...@@ -19,6 +19,7 @@ if NET_VENDOR_CIRRUS ...@@ -19,6 +19,7 @@ if NET_VENDOR_CIRRUS
config CS89x0 config CS89x0
tristate "CS89x0 support" tristate "CS89x0 support"
depends on ISA || EISA || ARM depends on ISA || EISA || ARM
depends on !PPC32
---help--- ---help---
Support for CS89x0 chipset based Ethernet cards. If you have a Support for CS89x0 chipset based Ethernet cards. If you have a
network (Ethernet) card of this type, say Y and read the file network (Ethernet) card of this type, say Y and read the file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment