summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-05-15 05:41:54 +0000
committerSteve French <sfrench@us.ibm.com>2008-05-15 05:41:54 +0000
commitc32916374b2b4f4d2b7ccdb357fe7989f3b407a6 (patch)
tree2bc4793f8ce958dcc113dfb370d1727d45cfdb6d
parent646dd539878a194bc14b104621c0b2b33587e40f (diff)
downloadlinux-c32916374b2b4f4d2b7ccdb357fe7989f3b407a6.tar.gz
[CIFS] suppress duplicate warning
fs/cifs/dir.c: In function 'cifs_ci_compare':
fs/cifs/dir.c:582: warning: passing argument 1 of 'memcpy' discards
qualifiers from pointer target type

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r--fs/cifs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 05afe33ea644..f0b5b5f3dd2e 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -608,7 +608,7 @@ static int cifs_ci_compare(struct dentry *dentry, struct qstr *a,
 		 * case take precedence.  If a is not a negative dentry, this
 		 * should have no side effects
 		 */
-		memcpy(a->name, b->name, a->len);
+		memcpy((void *)a->name, b->name, a->len);
 		return 0;
 	}
 	return 1;