]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cifs: #include cifsglob.h before trace.h to allow structs in tracepoints
authorDavid Howells <dhowells@redhat.com>
Mon, 20 Oct 2025 09:16:07 +0000 (10:16 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Oct 2025 07:47:20 +0000 (02:47 -0500)
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 <dhowells@redhat.com>
cc: Paulo Alcantara <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/trace.c

index 4976be2c47c14aa606e9c5cc8103a7303f4c6108..fb1813cbe0ebcb85d6fefa737324c21e84cc41f4 100644 (file)
@@ -9,6 +9,7 @@
 #define _CIFSPROTO_H
 #include <linux/nls.h>
 #include <linux/ctype.h>
+#include "cifsglob.h"
 #include "trace.h"
 #ifdef CONFIG_CIFS_DFS_UPCALL
 #include "dfs_cache.h"
index 4654837871934fe8dd099739660f0a49ef9a10af..16b0e719731fd0493833ad2611123c787261cf38 100644 (file)
@@ -4,5 +4,6 @@
  *
  *   Author(s): Steve French <stfrench@microsoft.com>
  */
+#include "cifsglob.h"
 #define CREATE_TRACE_POINTS
 #include "trace.h"