summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-17 23:25:11 +0100
committerDavid S. Miller <davem@davemloft.net>2016-02-18 15:59:45 -0500
commitf3bb23764fac042d189129d485d3a9246cb777da (patch)
tree65aa62f8cc3d10a2ef1c4ad757afb8e125a5e302 /drivers/net/usb/Makefile
parentf468a729a2ddb1a26f8c4b98a82050e4030fe458 (diff)
downloadop-kernel-dev-f3bb23764fac042d189129d485d3a9246cb777da.zip
op-kernel-dev-f3bb23764fac042d189129d485d3a9246cb777da.tar.gz
USB: cdc_subset: only build when one driver is enabled
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>
Diffstat (limited to 'drivers/net/usb/Makefile')
-rw-r--r--drivers/net/usb/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/Makefile b/drivers/net/usb/Makefile
index b5f0406..37fb46ae 100644
--- a/drivers/net/usb/Makefile
+++ b/drivers/net/usb/Makefile
@@ -23,7 +23,7 @@ obj-$(CONFIG_USB_NET_GL620A) += gl620a.o
obj-$(CONFIG_USB_NET_NET1080) += net1080.o
obj-$(CONFIG_USB_NET_PLUSB) += plusb.o
obj-$(CONFIG_USB_NET_RNDIS_HOST) += rndis_host.o
-obj-$(CONFIG_USB_NET_CDC_SUBSET) += cdc_subset.o
+obj-$(CONFIG_USB_NET_CDC_SUBSET_ENABLE) += cdc_subset.o
obj-$(CONFIG_USB_NET_ZAURUS) += zaurus.o
obj-$(CONFIG_USB_NET_MCS7830) += mcs7830.o
obj-$(CONFIG_USB_USBNET) += usbnet.o
OpenPOWER on IntegriCloud