aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2015-07-26 16:00:30 +0530
committerAmit Pundir <amit.pundir@linaro.org>2015-11-20 19:07:52 +0530
commit029ddf67ff188fd19ad628eb3559fb1b5a55191a (patch)
tree621e58aa20bde960545884e67ea24309687208b5
parentf65b6e52c8819477c83bfb7fdb863776ee28896e (diff)
android: power: suspend_time: include module.h instead of init.h
Include module.h instead of init.h since module_{init,exit} is no longer part of init.h, they have been moved to module.h instead. See mainline commit 0fd972a7d91d "module: relocate module_init from init.h to module.h" for more details. Otherwise we run into following build failure: -------------------- CC kernel/power/suspend_time.o kernel/power/suspend_time.c:110:1: warning: data definition has no type or storage class [enabled by default] kernel/power/suspend_time.c:110:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=implicit-int] kernel/power/suspend_time.c:110:1: warning: parameter names (without types) in function declaration [enabled by default] kernel/power/suspend_time.c:111:1: warning: data definition has no type or storage class [enabled by default] kernel/power/suspend_time.c:111:1: error: type defaults to ‘int’ in declaration of ‘module_exit’ [-Werror=implicit-int] kernel/power/suspend_time.c:111:1: warning: parameter names (without types) in function declaration [enabled by default] kernel/power/suspend_time.c:99:12: warning: ‘suspend_time_syscore_init’ defined but not used [-Wunused-function] kernel/power/suspend_time.c:106:13: warning: ‘suspend_time_syscore_exit’ defined but not used [-Wunused-function] cc1: some warnings being treated as errors make[2]: *** [kernel/power/suspend_time.o] Error 1 make[1]: *** [kernel/power] Error 2 make[1]: *** Waiting for unfinished jobs.... -------------------- Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--kernel/power/suspend_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/suspend_time.c b/kernel/power/suspend_time.c
index d2a65da9f22c..2b876865b0c4 100644
--- a/kernel/power/suspend_time.c
+++ b/kernel/power/suspend_time.c
@@ -16,7 +16,7 @@
#include <linux/debugfs.h>
#include <linux/err.h>
-#include <linux/init.h>
+#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/seq_file.h>
#include <linux/syscore_ops.h>