Skip to content

Commit 64c9471

Browse files
dhowellssmfrench
authored andcommitted
cifs: #include cifsglob.h before trace.h to allow structs in tracepoints
Make cifs #include cifsglob.h in advance of #including trace.h so that the structures defined in cifsglob.h can be accessed directly by the cifs tracepoints rather than the callers having to manually pass in the bits and pieces. This should allow the tracepoints to be made more efficient to use as well as easier to read in the code. Signed-off-by: David Howells <[email protected]> cc: Paulo Alcantara <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Steve French <[email protected]>
1 parent 4b1d7f6 commit 64c9471

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

fs/smb/client/cifsproto.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define _CIFSPROTO_H
1010
#include <linux/nls.h>
1111
#include <linux/ctype.h>
12+
#include "cifsglob.h"
1213
#include "trace.h"
1314
#ifdef CONFIG_CIFS_DFS_UPCALL
1415
#include "dfs_cache.h"

fs/smb/client/trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
*
55
* Author(s): Steve French <[email protected]>
66
*/
7+
#include "cifsglob.h"
78
#define CREATE_TRACE_POINTS
89
#include "trace.h"

0 commit comments

Comments
 (0)