Commit 5fd99b5d authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: cdc_ncm: Fix build error

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: default avatarHulk Robot <hulkci@huawei.com>
Fixes: e10dcb1b ("net: cdc_ncm: hook into set_rx_mode to admit multicast traffic")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a156998f
...@@ -252,6 +252,7 @@ config USB_NET_CDC_EEM ...@@ -252,6 +252,7 @@ config USB_NET_CDC_EEM
config USB_NET_CDC_NCM config USB_NET_CDC_NCM
tristate "CDC NCM support" tristate "CDC NCM support"
depends on USB_USBNET depends on USB_USBNET
select USB_NET_CDCETHER
default y default y
help help
This driver provides support for CDC NCM (Network Control Model This driver provides support for CDC NCM (Network Control Model
......
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