[PATCH] cifssmb.c: Wrap unused functions in appropriate #ifdef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




fs/cifs/cifssmb.c - 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 <[email protected]>

--- linux-2.6-wk/fs/cifs/cifssmb.c.orig	2007-10-21 19:12:53.000000000 -0400
+++ linux-2.6-wk/fs/cifs/cifssmb.c	2007-10-22 22:19:27.000000000 -0400
@@ -2485,7 +2485,7 @@
 		goto 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 +2569,7 @@
 	}
 	return 0;
 }
+#endif

 int
 CIFSSMBQueryReparseLinkInfo(const int xid, struct cifsTconInfo *tcon,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux