]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel: Add <linux/module.h> to files using it implicitly
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 May 2011 21:53:52 +0000 (17:53 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 27 Jul 2011 23:09:02 +0000 (19:09 -0400)
commit4d0c1d4170d4d193bc3e422697cb9946244d0b80
tree565a0d8e02e99ec52041db2332cfc3480dedf5ad
parentd03b684f177343906094b1032994a1738c1e2e0c
kernel: Add <linux/module.h> to files using it implicitly

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 <linux/device.h> 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 <paul.gortmaker@windriver.com>
kernel/exit.c
kernel/fork.c
kernel/rcutorture.c
kernel/rcutree_trace.c
kernel/trace/ftrace.c
kernel/trace/trace_syscalls.c
kernel/watchdog.c