Skip to contentSkip to conversation

ARM: pxa: include linux/leds.h

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 18, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: pxa: include linux/leds.h

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.

---
 arch/arm/mach-pxa/idp.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-pxa/idp.c +1 -0
index d1db32b1a2c6..88e0068f92a8 100644
@@ -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>
 
Signature · 1 line
2.9.0
maintainer
#1 lore raw
Quoted 8 lines · Arnd Bergmann

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.

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