linux-uconsole/drivers/net/usb
Arnd Bergmann affad7ad16 USB: cdc_subset: only build when one driver is enabled
commit f3bb23764f upstream.

This avoids a harmless randconfig warning I get when USB_NET_CDC_SUBSET
is enabled, but all of the more specific drivers are not:

drivers/net/usb/cdc_subset.c:241:2: #warning You need to configure some hardware for this driver

The current behavior is clearly intentional, giving a warning when
a user picks a configuration that won't do anything good. The only
reason for even addressing this is that I'm getting close to
eliminating all 'randconfig' warnings on ARM, and this came up
a couple of times.

My workaround is to not even build the module when none of the
configurations are enable.

Alternatively we could simply remove the #warning (nothing wrong
for compile-testing), turn it into a runtime warning, or
change the Kconfig options into a menu to hide CONFIG_USB_NET_CDC_SUBSET.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:47 +01:00
..
asix.h
asix_common.c asix: Fix offset calculation in asix_rx_fixup() causing slow transmissions 2016-06-01 12:15:49 -07:00
asix_devices.c
ax88172a.c
ax88179_178a.c
catc.c catc: Use heap buffer for memory size test 2017-04-21 09:30:08 +02:00
cdc-phonet.c
cdc_eem.c
cdc_ether.c net: cdc_ether: fix divide by 0 on bad descriptors 2017-11-21 09:21:18 +01:00
cdc_mbim.c cdc_mbim: apply "NDP to end" quirk to all Huawei devices 2016-05-18 17:06:36 -07:00
cdc_ncm.c net: cdc_ncm: initialize drvflags before usage 2018-02-16 20:09:36 +01:00
cdc_subset.c
ch9200.c
cx82310_eth.c cx82310_eth: use skb_cow_head() to deal with cloned skbs 2018-01-17 09:35:28 +01:00
dm9601.c
gl620a.c
hso.c
huawei_cdc_ncm.c cdc_ncm: Set NTB format again after altsetting switch for Huawei devices 2017-11-15 17:13:11 +01:00
int51x1.c
ipheth.c
kalmia.c
kaweth.c kaweth: fix oops upon failed memory allocation 2017-08-06 19:19:42 -07:00
Kconfig USB: cdc_subset: only build when one driver is enabled 2018-02-25 11:03:47 +01:00
lan78xx.c lan78xx: Fix failure in USB Full Speed 2018-01-31 12:06:13 +01:00
lan78xx.h
lg-vl600.c
Makefile USB: cdc_subset: only build when one driver is enabled 2018-02-25 11:03:47 +01:00
mcs7830.c
net1080.c
pegasus.c pegasus: Use heap buffers for all register access 2017-04-21 09:30:07 +02:00
pegasus.h
plusb.c usb: plusb: Add support for PL-27A1 2017-10-08 10:14:19 +02:00
qmi_wwan.c net: qmi_wwan: add Sierra EM7565 1199:9091 2018-01-02 20:33:25 +01:00
r8152.c r8152: adjust ALDPS function 2018-01-17 09:35:28 +01:00
rndis_host.c
rtl8150.c rtl8150: Use heap buffers for all register access 2017-04-21 09:30:07 +02:00
sierra_net.c sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications 2017-06-17 06:39:36 +02:00
smsc75xx.c smsc75xx: use skb_cow_head() to deal with cloned skbs 2018-01-17 09:35:28 +01:00
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c sr9700: use skb_cow_head() to deal with cloned skbs 2018-01-17 09:35:28 +01:00
sr9700.h
sr9800.c
sr9800.h
usbnet.c USB: core: harden cdc_parse_cdc_header 2017-10-12 11:27:33 +02:00
zaurus.c