net: cdc_ncm: Fix build error
authorYueHaibing <yuehaibing@huawei.com>
Wed, 26 Aug 2020 06:52:31 +0000 (14:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 14:29:40 +0000 (07:29 -0700)
If USB_NET_CDC_NCM is y and USB_NET_CDCETHER is m, build fails:

drivers/net/usb/cdc_ncm.o:(.rodata+0x1d8): undefined reference to `usbnet_cdc_update_filter'

Select USB_NET_CDCETHER for USB_NET_CDC_NCM to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: e10dcb1b6ba7 ("net: cdc_ncm: hook into set_rx_mode to admit multicast traffic")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/Kconfig

index a7fbc3ccd29e422d231e2e8aab3b5d453ebb1e36..c7bcfca7d70b091a31a88113ad28a6ae97fc9e46 100644 (file)
@@ -252,6 +252,7 @@ config USB_NET_CDC_EEM
 config USB_NET_CDC_NCM
        tristate "CDC NCM support"
        depends on USB_USBNET
+       select USB_NET_CDCETHER
        default y
        help
          This driver provides support for CDC NCM (Network Control Model