summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jeff.layton@primarydata.com>2015-10-03 08:19:57 -0400
committerJ. Bruce Fields <bfields@redhat.com>2015-10-23 15:57:29 -0400
commit825213e59ec24110b0a0f94456db42621f928421 (patch)
tree7f645017eaafff5856d45403f2d51556c3e6d26a
parentcc6a7aab5570beef884ff95f7cade6634bf815a1 (diff)
downloadop-kernel-dev-825213e59ec24110b0a0f94456db42621f928421.zip
op-kernel-dev-825213e59ec24110b0a0f94456db42621f928421.tar.gz
nfsd: move include of state.h from trace.c to trace.h
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>
-rw-r--r--fs/nfsd/trace.c2
-rw-r--r--fs/nfsd/trace.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/trace.c b/fs/nfsd/trace.c
index 82f8907..9096746 100644
--- a/fs/nfsd/trace.c
+++ b/fs/nfsd/trace.c
@@ -1,5 +1,3 @@
-#include "state.h"
-
#define CREATE_TRACE_POINTS
#include "trace.h"
diff --git a/fs/nfsd/trace.h b/fs/nfsd/trace.h
index c668520..0befe76 100644
--- a/fs/nfsd/trace.h
+++ b/fs/nfsd/trace.h
@@ -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),
OpenPOWER on IntegriCloud