]> err.no Git - linux-2.6/commitdiff
[CIFS] remove unused funtion compile warning when experimental off
authorParag Warudkar <kernel-stuff@comcast.net>
Tue, 23 Oct 2007 18:09:48 +0000 (18:09 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 23 Oct 2007 18:09:48 +0000 (18:09 +0000)
get rid of couple of unused function warnings which
show up when CONFIG_CIFS_EXPERIMENTAL is not defined - wrap them in
#ifdef CONFIG_CIFS_EXPERIMENTAL. Patch against current git.

Signed-off-by: Parag Warudkar <kernel-stuff@comcast.net>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c

index f0d9a485d0951f29c3f140ebda33391d7471a53d..61d24f6ee64ec7b8ac31771f6e01bd77aa5f6caa 100644 (file)
@@ -2486,6 +2486,7 @@ querySymLinkRetry:
        return rc;
 }
 
+#ifdef CONFIG_CIFS_EXPERIMENTAL
 /* Initialize NT TRANSACT SMB into small smb request buffer.
    This assumes that all NT TRANSACTS that we init here have
    total parm and data under about 400 bytes (to fit in small cifs
@@ -2569,6 +2570,7 @@ validate_ntransact(char *buf, char **ppparm, char **ppdata,
        }
        return 0;
 }
+#endif /* CIFS_EXPERIMENTAL */
 
 int
 CIFSSMBQueryReparseLinkInfo(const int xid, struct cifsTconInfo *tcon,