]> 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, 25 Aug 2011 17:54:29 +0000 (13:54 -0400)
commit4ed382d8c187d9b676ad1a86b63135c4cd14cb08
tree3d461d44124782bda06f0ac296bd7c8bae942262
parent6cd40ac8fb334646f6628df9e6e48d136f681e51
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