summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-02-27 12:45:54 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-01 01:02:09 +0100
commit6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9 (patch)
treec2e1e9f6c6b315ea17c127bdeae4262d1cfabc7c /kernel
parentPM / sleep: Move prototype declaration to header file kernel/power/power.h (diff)
downloadlinux-6c5be2916565e8c710e9f0f7b43cf65a3ba39dd9.tar.xz
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')
-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 {