]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[CIFS] Remove sparse warning
authorSteve French <sfrench@us.ibm.com>
Mon, 14 Mar 2011 19:01:59 +0000 (19:01 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 19 May 2011 14:10:56 +0000 (14:10 +0000)
Move extern for cifsConvertToUCS to different header to prevent following warning:

CHECK   fs/cifs/cifs_unicode.c
fs/cifs/cifs_unicode.c:267:1: warning: symbol 'cifsConvertToUCS' was not declared. Should it be static?

Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_unicode.h
fs/cifs/cifsproto.h

index 644dd882a5604c5ed6f900aad2a47478bc31b49a..6d02fd560566b8184f004f9087dd7ea48ef590d7 100644 (file)
@@ -82,6 +82,9 @@ int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *);
 char *cifs_strndup_from_ucs(const char *src, const int maxlen,
                            const bool is_unicode,
                            const struct nls_table *codepage);
+extern int cifsConvertToUCS(__le16 *target, const char *source, int maxlen,
+                       const struct nls_table *cp, int mapChars);
+
 #endif
 
 /*
index a1c94d396afe96936026cf3617a1245db069d8e1..6e69e06a30b3334687cf07034044a01c6b0beaed 100644 (file)
@@ -353,8 +353,6 @@ extern int CIFSGetSrvInodeNumber(const int xid, struct cifsTconInfo *tcon,
                        const unsigned char *searchName, __u64 *inode_number,
                        const struct nls_table *nls_codepage,
                        int remap_special_chars);
-extern int cifsConvertToUCS(__le16 *target, const char *source, int maxlen,
-                       const struct nls_table *cp, int mapChars);
 
 extern int CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
                        const __u16 netfid, const __u64 len,