summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-02-27 17:15:54 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-01 01:02:09 +0100
commit6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9 (patch)
treec2e1e9f6c6b315ea17c127bdeae4262d1cfabc7c /kernel/power
parent04b73469750050290cb0a773e7ecf2358d65f6d5 (diff)
downloadblackbird-op-linux-6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9.tar.gz
blackbird-op-linux-6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9.zip
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/power/wakelock.c b/kernel/power/wakelock.c
index 8f50de394d22..019069c84ff6 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 {
OpenPOWER on IntegriCloud