فهرست منبع

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>
Jeff Layton 9 سال پیش
والد
کامیت
825213e59e
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 0 2
      fs/nfsd/trace.c
  2. 2 0
      fs/nfsd/trace.h

+ 0 - 2
fs/nfsd/trace.c

@@ -1,5 +1,3 @@
 
-#include "state.h"
-
 #define CREATE_TRACE_POINTS
 #include "trace.h"

+ 2 - 0
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),