cifs: remove some minor warnings pointed out by kernel test robot
authorSteve French <stfrench@microsoft.com>
Sat, 12 Dec 2020 18:49:28 +0000 (12:49 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 15:16:23 +0000 (09:16 -0600)
Correct some trivial warnings caused when new file unc.c
was created. For example:

   In file included from fs/cifs/unc.c:11:
>> fs/cifs/cifsproto.h:44:28: warning: 'struct TCP_Server_Info' declared inside parameter list will not be visible outside of this definition or declaration
      44 | extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/unc.c

index 2c5665f5543af5bb4d547756789236b438d442eb..394aa00cea40e77427be39320652b0b4197a5399 100644 (file)
@@ -7,7 +7,11 @@
  *              Jeff Layton <jlayton@kernel.org>
  */
 
+#include <linux/fs.h>
 #include <linux/slab.h>
+#include <linux/inet.h>
+#include <linux/ctype.h>
+#include "cifsglob.h"
 #include "cifsproto.h"
 
 /* extract the host portion of the UNC string */