* [PATCH] ARM: pxa: include linux/leds.h
@ 2017-01-18 16:49 Arnd Bergmann
2017-01-18 18:21 ` Robert Jarzmik
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-01-18 16:49 UTC (permalink / raw)
To: linux-arm-kernel
When the header is not included implicitly, we get a build failure:
arch/arm/mach-pxa/idp.c:205:22: error: field 'cdev' has incomplete type
struct led_classdev cdev;
This adds an explicit #include.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-pxa/idp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c
index d1db32b1a2c6..88e0068f92a8 100644
--- a/arch/arm/mach-pxa/idp.c
+++ b/arch/arm/mach-pxa/idp.c
@@ -19,6 +19,7 @@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
+#include <linux/leds.h>
#include <linux/platform_device.h>
#include <linux/fb.h>
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: pxa: include linux/leds.h
2017-01-18 16:49 [PATCH] ARM: pxa: include linux/leds.h Arnd Bergmann
@ 2017-01-18 18:21 ` Robert Jarzmik
0 siblings, 0 replies; 2+ messages in thread
From: Robert Jarzmik @ 2017-01-18 18:21 UTC (permalink / raw)
To: linux-arm-kernel
Arnd Bergmann <arnd@arndb.de> writes:
> When the header is not included implicitly, we get a build failure:
>
> arch/arm/mach-pxa/idp.c:205:22: error: field 'cdev' has incomplete type
> struct led_classdev cdev;
>
> This adds an explicit #include.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Sure, pushed into pxa/for-next, I hope it's not troublesome enough to include it
in the 4.10 cycle pxa fixes which is ... empty so far.
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-18 18:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18 16:49 [PATCH] ARM: pxa: include linux/leds.h Arnd Bergmann
2017-01-18 18:21 ` Robert Jarzmik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox