From 4d0c1d4170d4d193bc3e422697cb9946244d0b80 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Thu, 26 May 2011 17:53:52 -0400 Subject: [PATCH] kernel: Add to files using it implicitly MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These files are doing things like module_put and try_module_get so they need to call out the module.h for explicit inclusion, rather than getting it via which we ideally want to remove the module.h inclusion from. If we don't fix them in advance, we will get things like: kernel/watchdog.c: In function ‘watchdog_timer_fn’: kernel/watchdog.c:301: error: implicit declaration of function ‘print_modules’ make[2]: *** [kernel/watchdog.o] Error 1 Signed-off-by: Paul Gortmaker --- kernel/exit.c | 1 + kernel/fork.c | 1 + kernel/rcutorture.c | 1 + kernel/rcutree_trace.c | 1 + kernel/trace/ftrace.c | 1 + kernel/trace/trace_syscalls.c | 1 + kernel/watchdog.c | 1 + 7 files changed, 7 insertions(+) diff --git a/kernel/exit.c b/kernel/exit.c index 7bb6541d6b3f..af36b06305b2 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/fork.c b/kernel/fork.c index 341f44c2b46c..b54be7c9d497 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 133ed60f24ff..ee60b76d05f9 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c index 9d42a45d82ef..198f2b80dfd7 100644 --- a/kernel/rcutree_trace.c +++ b/kernel/rcutree_trace.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index c3e4575e7829..c3a037cb43fa 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index ee7b5a0bb9f8..cb654542c1a1 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c @@ -2,6 +2,7 @@ #include #include #include +#include /* for MODULE_NAME_LEN via KSYM_SYMBOL_LEN */ #include #include #include diff --git a/kernel/watchdog.c b/kernel/watchdog.c index d3095b26a26c..04c63624fd2a 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include -- 2.39.5