Skip to content

Commit

Permalink
nfsd: move include of state.h from trace.c to trace.h
Browse files Browse the repository at this point in the history
Any file which includes trace.h will need to include state.h, even if
they aren't using any state tracepoints. Ensure that we include any
headers that might be needed in trace.h instead of relying on the
*.c files to have the right ones.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Oct 23, 2015
1 parent cc6a7aa commit 825213e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/nfsd/trace.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

#include "state.h"

#define CREATE_TRACE_POINTS
#include "trace.h"
2 changes: 2 additions & 0 deletions fs/nfsd/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include <linux/tracepoint.h>

#include "state.h"

DECLARE_EVENT_CLASS(nfsd_stateid_class,
TP_PROTO(stateid_t *stp),
TP_ARGS(stp),
Expand Down

0 comments on commit 825213e

Please sign in to comment.