diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-02-27 17:15:54 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-01 01:02:09 +0100 |
commit | 6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9 (patch) | |
tree | c2e1e9f6c6b315ea17c127bdeae4262d1cfabc7c /kernel/power | |
parent | 04b73469750050290cb0a773e7ecf2358d65f6d5 (diff) | |
download | op-kernel-dev-6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9.zip op-kernel-dev-6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9.tar.gz |
PM / wakeup: Include appropriate header file in kernel/power/wakelock.c
Include appropriate header file kernel/power/power.h in
kernel/power/wakelock.c because it has prototype declaration of function
defined in kernel/power/wakelock.c.
This eliminates the following warning in kernel/power/wakelock.c:
kernel/power/wakelock.c:34:9: warning: no previous prototype for ‘pm_show_wakelocks’ [-Wmissing-prototypes]
kernel/power/wakelock.c:184:5: warning: no previous prototype for ‘pm_wake_lock’ [-Wmissing-prototypes]
kernel/power/wakelock.c:232:5: warning: no previous prototype for ‘pm_wake_unlock’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/wakelock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c index 8f50de3..019069c 100644 --- a/kernel/power/wakelock.c +++ b/kernel/power/wakelock.c @@ -18,6 +18,8 @@ #include <linux/rbtree.h> #include <linux/slab.h> +#include "power.h" + static DEFINE_MUTEX(wakelocks_lock); struct wakelock { |