Skip to content

Commit 0b07436

Browse files
Steven Rostedtrostedt
authored andcommitted
ring-buffer: Remove trace.h from ring_buffer.c
ring_buffer.c use to require declarations from trace.h, but these have moved to the generic header files. There's nothing in trace.h that ring_buffer.c requires. There's some headers that trace.h included that ring_buffer.c needs, but it's best that it includes them directly, and not include trace.h. Also, some things may use ring_buffer.c without having tracing configured. This removes the dependency that may come in the future. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 567cd4d commit 0b07436

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/trace/ring_buffer.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
*
44
* Copyright (C) 2008 Steven Rostedt <srostedt@redhat.com>
55
*/
6+
#include <linux/ftrace_event.h>
67
#include <linux/ring_buffer.h>
78
#include <linux/trace_clock.h>
9+
#include <linux/trace_seq.h>
810
#include <linux/spinlock.h>
911
#include <linux/debugfs.h>
1012
#include <linux/uaccess.h>
@@ -21,7 +23,6 @@
2123
#include <linux/fs.h>
2224

2325
#include <asm/local.h>
24-
#include "trace.h"
2526

2627
static void update_pages_handler(struct work_struct *work);
2728

0 commit comments

Comments
 (0)