nfsd: move include of state.h from trace.c to trace.h
authorJeff Layton <jeff.layton@primarydata.com>
Sat, 3 Oct 2015 12:19:57 +0000 (08:19 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Oct 2015 19:57:29 +0000 (15:57 -0400)
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>
fs/nfsd/trace.c
fs/nfsd/trace.h

index 82f89070594c7671018b98e0cd116ceb7870fd79..90967466a1e56bc9ec6d1fc36aa5e815721328a5 100644 (file)
@@ -1,5 +1,3 @@
 
-#include "state.h"
-
 #define CREATE_TRACE_POINTS
 #include "trace.h"
index c668520c344b5290a219a499af313978f22c51fc..0befe762762b0eb8837df625b71e2f165e668d1e 100644 (file)
@@ -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),