linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][CIFS] update headers included by new file unc.c
@ 2020-12-12 18:55 Steve French
  0 siblings, 0 replies; only message in thread
From: Steve French @ 2020-12-12 18:55 UTC (permalink / raw)
  To: CIFS

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

Avoids trivial warnings that kernel test robot reports on compile



-- 
Thanks,

Steve

[-- Attachment #2: 0001-cifs-remove-some-minor-warnings-pointed-out-by-kerne.patch --]
[-- Type: text/x-patch, Size: 1167 bytes --]

From 104833419122f0608d7d3651944a9e7b1f1fd4e9 Mon Sep 17 00:00:00 2001
From: Steve French <stfrench@microsoft.com>
Date: Sat, 12 Dec 2020 12:49:28 -0600
Subject: [PATCH] cifs: remove some minor warnings pointed out by kernel test
 robot

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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/cifs/unc.c b/fs/cifs/unc.c
index 2c5665f5543a..394aa00cea40 100644
--- a/fs/cifs/unc.c
+++ b/fs/cifs/unc.c
@@ -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 */
-- 
2.27.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-12 18:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12 18:55 [PATCH][CIFS] update headers included by new file unc.c Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).