Skip to contentSkip to conversation

touchscreen: ad7879: include linux/property.h

PATCH In review Arnd Bergmann 2 participants 2 messages Feb 27, 2017 – Feb 28, 2017

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

PATCH 1/1 touchscreen: ad7879: include linux/property.h

I ran into this build failure during randconfig testing:

drivers/input/touchscreen/ad7879.c: In function 'ad7879_parse_dt':
drivers/input/touchscreen/ad7879.c:505:8: error: implicit declaration of function 'device_property_read_u32' drivers/input/touchscreen/ad7879.c:512:2: error: implicit declaration of function 'device_property_read_u8' drivers/input/touchscreen/ad7879.c:521:16: error: implicit declaration of function 'device_property_read_bool'

I could not figure out when this was introduced, as the code doesn't appear to have changed recently, but the fix of including the header with the declaration is obvious.

The calls that require the extra header were introduced a year ago in commit fa6e3ca27442 ("Input: ad7879 - add device tree support").

---
 drivers/input/touchscreen/ad7879.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/ad7879.c +1 -0
index 53ab689305ac..1bd870277e1a 100644
@@ -26,6 +26,7 @@
 #include <linux/input.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 #include <linux/gpio.h>
Signature · 1 line
2.9.0
maintainer
#1 lore raw

Hi Arnd,

Quoted 7 lines · Arnd Bergmann

I ran into this build failure during randconfig testing:

drivers/input/touchscreen/ad7879.c: In function 'ad7879_parse_dt':
drivers/input/touchscreen/ad7879.c:505:8: error: implicit declaration of function 'device_property_read_u32' drivers/input/touchscreen/ad7879.c:512:2: error: implicit declaration of function 'device_property_read_u8' drivers/input/touchscreen/ad7879.c:521:16: error: implicit declaration of function 'device_property_read_bool'

Quoted 6 lines

I could not figure out when this was introduced, as the code doesn't appear to have changed recently, but the fix of including the header with the declaration is obvious.

The calls that require the extra header were introduced a year ago in commit fa6e3ca27442 ("Input: ad7879 - add device tree support").

Randy Dunlap already sent a patch like this one.

Thanks.

Quoted 21 lines
---
 drivers/input/touchscreen/ad7879.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/touchscreen/ad7879.c +1 -0
index 53ab689305ac..1bd870277e1a 100644
@@ -26,6 +26,7 @@
 #include <linux/input.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/property.h>
 #include <linux/regmap.h>
 #include <linux/slab.h>
 #include <linux/gpio.h>
Signature · 1 line
2.9.0
Signature · 1 line
Dmitry