Skip to contentSkip to conversation

Silence two "defined but unused" warning

PATCH In review Stephen Rothwell 2 participants 2 messages Oct 29, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Silence two "defined but unused" warning

---
 fs/cifs/cifssmb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
fs/cifs/cifssmb.c +2 -0
index f0d9a48..aa9dc9e 100644
@@ -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 /* CONFIG_CIFS_EXPERIMENTAL */
 
 int
 CIFSSMBQueryReparseLinkInfo(const int xid, struct cifsTconInfo *tcon,
Signature · 1 line
1.5.3.4
#1 lore raw

This should already be in the cifs-2.6.git tree and next -mm (I am waiting on the finish up of some CIFS ACL mapping code before requesting another cifs merge with mainline)

http://git.kernel.org/?p=linux/kernel/git/sfrench/cifs-2.6.git;a=commitdiff;h=c94897790e7c67dcfe3a0b6f035996398c268313

Quoted 34 lines · Stephen Rothwell
---
 fs/cifs/cifssmb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

--
Cheers,
Stephen Rothwell [email protected]

fs/cifs/cifssmb.c +2 -1
index f0d9a48..aa9dc9e 100644
@@ -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 /* CONFIG_CIFS_EXPERIMENTAL */
 
 int
 CIFSSMBQueryReparseLinkInfo(const int xid, struct cifsTconInfo *tcon,
--

1.5.3.4

Signature · 3 lines
Thanks,

Steve