* [PATCH] arcnet/com20020: add LEDS_CLASS dependency
@ 2015-11-03 13:51 Arnd Bergmann
2015-11-03 16:34 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2015-11-03 13:51 UTC (permalink / raw)
To: Michael Grzeschik, netdev; +Cc: linux-kernel, linux-arm-kernel
The newly added led trigger support in the com20020-pci driver causes
build errors when CONFIG_LEDS_CLASS is disabled:
drivers/built-in.o: In function `com20020pci_probe':
(.text+0x185dc4): undefined reference to `devm_led_classdev_register'
(.text+0x185dd8): undefined reference to `devm_led_classdev_register'
This adds a Kconfig dependency to prevent the invalid configurations.
Other drivers appear to be split 50:50 between 'select' and 'depends on'
for this symbol, I picked 'depends on' as I could not find a common
policy and it generally causes fewer problems.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 8890624a4e8c ("arcnet: com20020-pci: add led trigger support")
---
Found on ARM randconfig build tests
diff --git a/drivers/net/arcnet/Kconfig b/drivers/net/arcnet/Kconfig
index 2a9c3c3abe9b..39bd16f3f86d 100644
--- a/drivers/net/arcnet/Kconfig
+++ b/drivers/net/arcnet/Kconfig
@@ -103,6 +103,7 @@ config ARCNET_RIM_I
config ARCNET_COM20020
tristate "ARCnet COM20020 chipset driver"
+ depends on LEDS_CLASS
help
This is the driver for the new COM20020 chipset. It supports such
things as promiscuous mode, so packet sniffing is possible, and
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arcnet/com20020: add LEDS_CLASS dependency
2015-11-03 13:51 [PATCH] arcnet/com20020: add LEDS_CLASS dependency Arnd Bergmann
@ 2015-11-03 16:34 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-11-03 16:34 UTC (permalink / raw)
To: arnd; +Cc: m.grzeschik, netdev, linux-kernel, linux-arm-kernel
From: Arnd Bergmann <arnd@arndb.de>
Date: Tue, 03 Nov 2015 14:51:29 +0100
> The newly added led trigger support in the com20020-pci driver causes
> build errors when CONFIG_LEDS_CLASS is disabled:
>
> drivers/built-in.o: In function `com20020pci_probe':
> (.text+0x185dc4): undefined reference to `devm_led_classdev_register'
> (.text+0x185dd8): undefined reference to `devm_led_classdev_register'
>
> This adds a Kconfig dependency to prevent the invalid configurations.
> Other drivers appear to be split 50:50 between 'select' and 'depends on'
> for this symbol, I picked 'depends on' as I could not find a common
> policy and it generally causes fewer problems.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 8890624a4e8c ("arcnet: com20020-pci: add led trigger support")
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-03 16:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03 13:51 [PATCH] arcnet/com20020: add LEDS_CLASS dependency Arnd Bergmann
2015-11-03 16:34 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).