diff mbox series

net: usb: select CONFIG_CRC32 where needed

Message ID 20201203231936.1485132-1-arnd@kernel.org (mailing list archive)
State Not Applicable
Headers show
Series net: usb: select CONFIG_CRC32 where needed | expand

Commit Message

Arnd Bergmann Dec. 3, 2020, 11:19 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>

Without CRC32, these fail to link:

arm-linux-gnueabi-ld: drivers/net/usb/r8152.o: in function `_rtl8152_set_rx_mode':
r8152.c:(.text+0x2fd68): undefined reference to `crc32_le'
arm-linux-gnueabi-ld: drivers/net/usb/lan78xx.o: in function `lan78xx_set_multicast':
lan78xx.c:(.text+0x7cf4): undefined reference to `crc32_le'
arm-linux-gnueabi-ld: drivers/net/usb/cdc_eem.o: in function `eem_rx_fixup':
cdc_eem.c:(.text+0x374): undefined reference to `crc32_le'
arm-linux-gnueabi-ld: drivers/net/usb/cdc_eem.o: in function `eem_tx_fixup':
cdc_eem.c:(.text+0x70c): undefined reference to `crc32_le'
arm-linux-gnueabi-ld: drivers/net/usb/mcs7830.o: in function `mcs7830_data_set_multicast':

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/usb/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig
index 1e3719028780..dcc80fca921c 100644
--- a/drivers/net/usb/Kconfig
+++ b/drivers/net/usb/Kconfig
@@ -99,6 +99,7 @@  config USB_RTL8150
 config USB_RTL8152
 	tristate "Realtek RTL8152/RTL8153 Based USB Ethernet Adapters"
 	select MII
+	select CRC32
 	help
 	  This option adds support for Realtek RTL8152 based USB 2.0
 	  10/100 Ethernet adapters and RTL8153 based USB 3.0 10/100/1000
@@ -113,6 +114,7 @@  config USB_LAN78XX
 	select PHYLIB
 	select MICROCHIP_PHY
 	select FIXED_PHY
+	select CRC32
 	help
 	  This option adds support for Microchip LAN78XX based USB 2
 	  & USB 3 10/100/1000 Ethernet adapters.
@@ -238,6 +240,7 @@  config USB_NET_CDCETHER
 config USB_NET_CDC_EEM
 	tristate "CDC EEM support"
 	depends on USB_USBNET
+	select CRC32
 	help
 	  This option supports devices conforming to the Communication Device
 	  Class (CDC) Ethernet Emulation Model, a specification that's easy to
@@ -385,6 +388,7 @@  config USB_NET_PLUSB
 config USB_NET_MCS7830
 	tristate "MosChip MCS7830 based Ethernet adapters"
 	depends on USB_USBNET
+	select CRC32
 	help
 	  Choose this option if you're using a 10/100 Ethernet USB2
 	  adapter based on the MosChip 7830 controller. This includes