]> 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>
Thu, 11 Aug 2011 19:10:23 +0000 (15:10 -0400)
commitef85f06054daf553a5ce745070b6954e3b4c8d85
tree94295d3b0970c52a0910634821128212bb778158
parentefdbc603328fb09b3c8c748be298ef3f4f2230a2
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