[PATCH 3/4] tracing: Remove redundant module.h includes

From: Tom Zanussi
Date: Fri Apr 10 2015 - 12:06:02 EST


kallsyms.h now includes module.h, so remove module.h includes that
were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN.

Signed-off-by: Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>
---
kernel/trace/trace.c | 1 -
kernel/trace/trace_branch.c | 1 -
kernel/trace/trace_export.c | 1 -
kernel/trace/trace_irqsoff.c | 1 -
kernel/trace/trace_output.c | 1 -
kernel/trace/trace_sched_switch.c | 1 -
kernel/trace/trace_sched_wakeup.c | 1 -
kernel/trace/trace_stack.c | 1 -
kernel/trace/trace_syscalls.c | 1 -
9 files changed, 9 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 62c6506..537c60d 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -26,7 +26,6 @@
#include <linux/uaccess.h>
#include <linux/kprobes.h>
#include <linux/ftrace.h>
-#include <linux/module.h>
#include <linux/percpu.h>
#include <linux/splice.h>
#include <linux/kdebug.h>
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index 57cbf1e..05a69d3 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -8,7 +8,6 @@
#include <linux/spinlock.h>
#include <linux/irqflags.h>
#include <linux/uaccess.h>
-#include <linux/module.h>
#include <linux/ftrace.h>
#include <linux/hash.h>
#include <linux/fs.h>
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 12e2b99..8909cd7 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -8,7 +8,6 @@
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
-#include <linux/module.h>
#include <linux/init.h>

#include "trace_output.h"
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 8523ea3..312a412 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -11,7 +11,6 @@
*/
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
-#include <linux/module.h>
#include <linux/ftrace.h>

#include "trace.h"
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index 135dbd5..7cc8e96 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -5,7 +5,6 @@
*
*/

-#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/mutex.h>
#include <linux/ftrace.h>
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 419ca37..e084ccf 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -4,7 +4,6 @@
* Copyright (C) 2007 Steven Rostedt <srostedt@xxxxxxxxxx>
*
*/
-#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index d6e1003..05b9f29 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -9,7 +9,6 @@
* Copyright (C) 2004-2006 Ingo Molnar
* Copyright (C) 2004 Nadia Yvette Chambers
*/
-#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
index c3e4fcf..6179cfd 100644
--- a/kernel/trace/trace_stack.c
+++ b/kernel/trace/trace_stack.c
@@ -8,7 +8,6 @@
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
-#include <linux/module.h>
#include <linux/sysctl.h>
#include <linux/init.h>

diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 3cb7355..da74ff7 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -3,7 +3,6 @@
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/kernel.h>
-#include <linux/module.h> /* for MODULE_NAME_LEN via KSYM_SYMBOL_LEN */
#include <linux/kallsyms.h>
#include <linux/ftrace.h>
#include <linux/perf_event.h>
--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/