Skip to contentSkip to conversation

PM: Fix build due to missing notifier header

PATCH In review Mark Brown 2 participants 2 messages Aug 19, 2011 Power management core

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 PM: Fix build due to missing notifier header

pm_clock.h uses a struct notifier_block without including notifier.h which appears to have caused it to fall victim to some of the current header reorganisations in -next. Fix the resulting build failures.

---
 include/linux/pm_clock.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/pm_clock.h +1 -0
index f888013..8348866 100644
@@ -10,6 +10,7 @@
 #define _LINUX_PM_CLOCK_H
 
 #include <linux/device.h>
+#include <linux/notifier.h>
 
 struct pm_clk_notifier_block {
 	struct notifier_block nb;
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 3 lines · Mark Brown

pm_clock.h uses a struct notifier_block without including notifier.h which appears to have caused it to fall victim to some of the current header reorganisations in -next. Fix the resulting build failures.

Thanks for the patch, but it should be fixed in the linux-pm tree already.

Rafael

Quoted 18 lines
---
 include/linux/pm_clock.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/pm_clock.h +1 -0
index f888013..8348866 100644
@@ -10,6 +10,7 @@
 #define _LINUX_PM_CLOCK_H
 
 #include <linux/device.h>
+#include <linux/notifier.h>
 
 struct pm_clk_notifier_block {
 	struct notifier_block nb;