[CIFS] suppress duplicate warning
authorSteve French <sfrench@us.ibm.com>
Thu, 15 May 2008 05:41:54 +0000 (05:41 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 15 May 2008 05:41:54 +0000 (05:41 +0000)
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>
fs/cifs/dir.c

index 05afe33..f0b5b5f 100644 (file)
@@ -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;