PM: pm_clock.h needs to include linux/notifier.h
PATCH 1/1 PM: pm_clock.h needs to include linux/notifier.h
This patch fixes below build error:
CC drivers/base/power/clock_ops.o
In file included from drivers/base/power/clock_ops.c:13:include/linux/pm_clock.h:15: error: field 'nb' has incomplete type drivers/base/power/clock_ops.c: In function 'pm_clk_notify':drivers/base/power/clock_ops.c:437: warning: type defaults to 'int' in declaration of '__mptr' drivers/base/power/clock_ops.c:437: warning: initialization from incompatible pointer type make[3]: *** [drivers/base/power/clock_ops.o] Error 1
make[2]: *** [drivers/base/power] Error 2
make[1]: *** [drivers/base] Error 2
make: *** [drivers] Error 2
---
This patch is against linux-next next-20110818.
Axel
include/linux/pm_clock.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/pm_clock.h +1 -0
@@ -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.4.1
Quoted 1 line · Axel Lin
This patch fixes below build error:
This problem should be fixed already in the linux-pm tree.
Thanks,
Rafael
Quoted 32 lines
CC
drivers/base/power/clock_ops.o
In file included fromdrivers/base/power/clock_ops.c:13:include/linux/pm_clock.h:15: error: field 'nb' has incomplete typedrivers/base/power/clock_ops.c: In function 'pm_clk_notify':drivers/base/power/clock_ops.c:437: warning: type defaults to 'int' in declaration of '__mptr'drivers/base/power/clock_ops.c:437: warning: initialization from incompatible pointer type make[3]: *** [drivers/base/power/clock_ops.o] Error 1
make[2]: *** [drivers/base/power] Error 2
make[1]: *** [drivers/base] Error 2
make: *** [drivers] Error 2Signed-off-by Axel Lin <[email protected]>---
This patch is against linux-next next-20110818.
Axelinclude/linux/pm_clock.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)include/linux/pm_clock.h +1
-0@@ -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;