Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1337735
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] USB: cdc_subset: only build when one driver is enabled |
| Date | 2016-02-18 22:10 +0100 |
| Message-ID | <r3DZL-35h-1@gated-at.bofh.it> (permalink) |
| References | <r3iLE-4sg-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Arnd Bergmann <arnd@arndb.de> Date: Wed, 17 Feb 2016 23:25:11 +0100 > 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> Applied, thanks Arnd.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] USB: cdc_subset: only build when one driver is enabled Arnd Bergmann <arnd@arndb.de> - 2016-02-17 23:30 +0100 Re: [PATCH] USB: cdc_subset: only build when one driver is enabled David Miller <davem@davemloft.net> - 2016-02-18 22:10 +0100
csiph-web