Skip to contentSkip to conversation

da9030_battery: include notifier.h

PATCH In review Michal Hocko 2 participants 3 messages Feb 6, 2013 – Feb 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 da9030_battery: include notifier.h

randconfig complains about:
drivers/power/da9030_battery.c:113: error: field ‘nb’ has incomplete type

because there is no direct include for notifier.h which defines struct notifier_block.

---
 drivers/power/da9030_battery.c |    1 +
 1 file changed, 1 insertion(+)
drivers/power/da9030_battery.c +1 -0
index 94762e6..e8c5a39 100644
@@ -22,6 +22,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/notifier.h>
 
 #define DA9030_FAULT_LOG		0x0a
 #define DA9030_FAULT_LOG_OVER_TEMP	(1 << 7)
Signature · 1 line
1.7.10.4
#1 lore raw

Ohh, I have just noticed that this could be introduced by "mm: break circular include from linux/mmzone.h" in mm tree.
Adding Andrew to CC.

Quoted 31 lines · Michal Hocko

randconfig complains about:
drivers/power/da9030_battery.c:113: error: field ‘nb’ has incomplete type

because there is no direct include for notifier.h which defines struct notifier_block.

---
 drivers/power/da9030_battery.c |    1 +
 1 file changed, 1 insertion(+)
drivers/power/da9030_battery.c +1 -0
index 94762e6..e8c5a39 100644
@@ -22,6 +22,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/notifier.h>
 
 #define DA9030_FAULT_LOG		0x0a
 #define DA9030_FAULT_LOG_OVER_TEMP	(1 << 7)
Signature · 7 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
Michal Hocko
SUSE Labs
#2 lore raw
Quoted 3 lines · Michal Hocko

Ohh, I have just noticed that this could be introduced by "mm: break circular include from linux/mmzone.h" in mm tree.
Adding Andrew to CC.

The patch is legit, actually. So, I've applied it, thank you!

Anton

Quoted 37 lines · Michal Hocko
Quoted 31 lines

randconfig complains about:
drivers/power/da9030_battery.c:113: error: field ‘nb’ has incomplete type

because there is no direct include for notifier.h which defines struct notifier_block.

---
 drivers/power/da9030_battery.c |    1 +
 1 file changed, 1 insertion(+)
drivers/power/da9030_battery.c +1 -0
index 94762e6..e8c5a39 100644
@@ -22,6 +22,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/notifier.h>
 
 #define DA9030_FAULT_LOG		0x0a
 #define DA9030_FAULT_LOG_OVER_TEMP	(1 << 7)
Signature · 7 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
Michal Hocko
SUSE Labs