Skip to content

Commit

Permalink
ring-buffer: Remove trace.h from ring_buffer.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Jan 23, 2013
1 parent 567cd4d commit 0b07436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
*
* Copyright (C) 2008 Steven Rostedt <[email protected]>
*/
#include <linux/ftrace_event.h>
#include <linux/ring_buffer.h>
#include <linux/trace_clock.h>
#include <linux/trace_seq.h>
#include <linux/spinlock.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
Expand All @@ -21,7 +23,6 @@
#include <linux/fs.h>

#include <asm/local.h>
#include "trace.h"

static void update_pages_handler(struct work_struct *work);

Expand Down

0 comments on commit 0b07436

Please sign in to comment.