Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/appletalk: LTPC needs virt_to_bus

The ltpc driver is rather outdated and does not get built on most
platforms because it requires the ISA_DMA_API symbol. However
there are some ARM platforms that have ISA_DMA_API but no virt_to_bus,
and they get this build error when enabling the ltpc driver.

drivers/net/appletalk/ltpc.c: In function 'handlefc':
drivers/net/appletalk/ltpc.c:380:2: error: implicit declaration of function 'virt_to_bus' [-Werror=implicit-function-declaration]
set_dma_addr(dma,virt_to_bus(ltdmacbuf));
^

This adds another dependency in Kconfig to avoid that configuration.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnd Bergmann and committed by
David S. Miller
bf60e50c 15added6

+1 -1
+1 -1
drivers/net/appletalk/Kconfig
··· 40 40 41 41 config LTPC 42 42 tristate "Apple/Farallon LocalTalk PC support" 43 - depends on DEV_APPLETALK && (ISA || EISA) && ISA_DMA_API 43 + depends on DEV_APPLETALK && (ISA || EISA) && ISA_DMA_API && VIRT_TO_BUS 44 44 help 45 45 This allows you to use the AppleTalk PC card to connect to LocalTalk 46 46 networks. The card is also known as the Farallon PhoneNet PC card.