* [PATCH v4 1/6] tracing: Remove kallsyms.h include from linux/ftrace.h
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 2/6] tracing: Remove redundant module.h includes Tom Zanussi
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
kallsyms.h was included by ftrace.h for KSYM_NAME_LEN, but that usage
was removed by commit 3f5ec13696f [tracing/fastboot: move boot tracer
structs and funcs into their own header].
Remove kallsyms.h and have users relying on ftrace.h to include it for
them include it explicitly.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
include/linux/ftrace.h | 1 -
kernel/trace/trace_kprobe.c | 1 +
kernel/trace/trace_output.c | 1 +
kernel/trace/trace_syscalls.c | 1 +
4 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 1da6029..8554dd5 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -7,7 +7,6 @@
#define _LINUX_FTRACE_H
#include <linux/trace_clock.h>
-#include <linux/kallsyms.h>
#include <linux/linkage.h>
#include <linux/bitops.h>
#include <linux/ptrace.h>
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index b7d0cdd..afdabd0 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -18,6 +18,7 @@
*/
#include <linux/module.h>
+#include <linux/kallsyms.h>
#include <linux/uaccess.h>
#include "trace_probe.h"
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index dfab253..6747d85 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -6,6 +6,7 @@
*/
#include <linux/module.h>
+#include <linux/kallsyms.h>
#include <linux/mutex.h>
#include <linux/ftrace.h>
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 7d567a4..e9bf9c6 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -4,6 +4,7 @@
#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>
#include <asm/syscall.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v4 2/6] tracing: Remove redundant module.h includes
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 1/6] tracing: Remove kallsyms.h include from linux/ftrace.h Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 3/6] lib: " Tom Zanussi
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that
were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN
(via KSYM_SYMBOL_LEN).
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
kernel/trace/trace_output.c | 1 -
kernel/trace/trace_syscalls.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index 6747d85..7876c61 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_syscalls.c b/kernel/trace/trace_syscalls.c
index e9bf9c6..f2bad21 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
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v4 3/6] lib: Remove redundant module.h includes
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 1/6] tracing: Remove kallsyms.h include from linux/ftrace.h Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 2/6] tracing: Remove redundant module.h includes Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 4/6] fnic: " Tom Zanussi
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that
were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN
(via KSYM_SYMBOL_LEN).
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
lib/vsprintf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 7f0cdd2..fa587aa 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -19,7 +19,6 @@
#include <stdarg.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
-#include <linux/module.h> /* for KSYM_SYMBOL_LEN */
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v4 4/6] fnic: Remove redundant module.h includes
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
` (2 preceding siblings ...)
2015-07-16 17:34 ` [PATCH v4 3/6] lib: " Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 5/6] slub: " Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 6/6] tracing: Remove unnecessary kallsyms.h and " Tom Zanussi
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that
were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN
(via KSYM_SYMBOL_LEN).
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
drivers/scsi/fnic/fnic_trace.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c
index 4e15c4b..503f9c5 100644
--- a/drivers/scsi/fnic/fnic_trace.c
+++ b/drivers/scsi/fnic/fnic_trace.c
@@ -15,7 +15,6 @@
* SOFTWARE.
*/
-#include <linux/module.h>
#include <linux/mempool.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v4 5/6] slub: Remove redundant module.h includes
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
` (3 preceding siblings ...)
2015-07-16 17:34 ` [PATCH v4 4/6] fnic: " Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
2015-07-16 17:34 ` [PATCH v4 6/6] tracing: Remove unnecessary kallsyms.h and " Tom Zanussi
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
kallsyms.h now includes module.h, so remove module.h includes that
were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN
(via KSYM_SYMBOL_LEN).
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Acked-by: David Rientjes <rientjes@google.com>
---
mm/slub.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/slub.c b/mm/slub.c
index 257283f..797530f 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -11,7 +11,6 @@
#include <linux/mm.h>
#include <linux/swap.h> /* struct reclaim_state */
-#include <linux/module.h>
#include <linux/bit_spinlock.h>
#include <linux/interrupt.h>
#include <linux/bitops.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v4 6/6] tracing: Remove unnecessary kallsyms.h and module.h includes
2015-07-16 17:34 [PATCH v4 0/6] kallsyms header cleanup Tom Zanussi
` (4 preceding siblings ...)
2015-07-16 17:34 ` [PATCH v4 5/6] slub: " Tom Zanussi
@ 2015-07-16 17:34 ` Tom Zanussi
5 siblings, 0 replies; 7+ messages in thread
From: Tom Zanussi @ 2015-07-16 17:34 UTC (permalink / raw)
To: rostedt; +Cc: pebolle, rientjes, linux-kernel, Tom Zanussi
At some point, these files made use of something from kallsyms.h
and/or module.h, but they now use nothing from either and can be
removed.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
kernel/trace/trace.c | 1 -
kernel/trace/trace_branch.c | 2 --
kernel/trace/trace_export.c | 2 --
kernel/trace/trace_irqsoff.c | 2 --
kernel/trace/trace_sched_switch.c | 2 --
kernel/trace/trace_sched_wakeup.c | 2 --
kernel/trace/trace_stack.c | 2 --
7 files changed, 13 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index abcbf7f..a164198 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -15,7 +15,6 @@
#include <generated/utsrelease.h>
#include <linux/stacktrace.h>
#include <linux/writeback.h>
-#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#include <linux/notifier.h>
#include <linux/irqflags.h>
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index e2e12ad..eab76d8 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -3,12 +3,10 @@
*
* Copyright (C) 2008 Steven Rostedt <srostedt@redhat.com>
*/
-#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#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 adabf7d..cc48161 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -4,11 +4,9 @@
* Copyright (C) 2009 Steven Rostedt <srostedt@redhat.com>
*/
#include <linux/stringify.h>
-#include <linux/kallsyms.h>
#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..f65f596 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -9,9 +9,7 @@
* Copyright (C) 2004-2006 Ingo Molnar
* Copyright (C) 2004 Nadia Yvette Chambers
*/
-#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_sched_switch.c b/kernel/trace/trace_sched_switch.c
index 419ca37..e1793f2 100644
--- a/kernel/trace/trace_sched_switch.c
+++ b/kernel/trace/trace_sched_switch.c
@@ -4,8 +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>
#include <trace/events/sched.h>
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index 9b33dd1..b7692d4 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -9,8 +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>
#include <linux/sched/rt.h>
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
index 3f34496..06ad4c0 100644
--- a/kernel/trace/trace_stack.c
+++ b/kernel/trace/trace_stack.c
@@ -3,12 +3,10 @@
*
*/
#include <linux/stacktrace.h>
-#include <linux/kallsyms.h>
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/ftrace.h>
-#include <linux/module.h>
#include <linux/sysctl.h>
#include <linux/init.h>
--
1.9.3
^ permalink raw reply related [flat|nested] 7+ messages in thread