lkml.org 
[lkml]   [2015]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] tracing: Remove redundant module.h includes
Date
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@linux.intel.com>
---
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@redhat.com>
*
*/
-#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


\
 
 \ /
  Last update: 2015-04-10 18:41    [W:0.061 / U:6.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site