]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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>
Mon, 31 Oct 2011 13:20:12 +0000 (09:20 -0400)
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.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/trace/ftrace.c
kernel/trace/trace_syscalls.c

index 077d85387908812fc699e98b1c4d8fc6362ff6b9..900b409543db10cfc46b9da703f463a1cee9b78e 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/hardirq.h>
 #include <linux/kthread.h>
 #include <linux/uaccess.h>
+#include <linux/module.h>
 #include <linux/ftrace.h>
 #include <linux/sysctl.h>
 #include <linux/slab.h>
index ee7b5a0bb9f87c1b9abb5964bfd4c54fd99ccb2d..cb654542c1a1621fc325cba70699f8b2d1be9658 100644 (file)
@@ -2,6 +2,7 @@
 #include <trace/events/syscalls.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
+#include <linux/module.h>      /* for MODULE_NAME_LEN via KSYM_SYMBOL_LEN */
 #include <linux/ftrace.h>
 #include <linux/perf_event.h>
 #include <asm/syscall.h>