From: Andrew Morton 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 Cc: Steven French Signed-off-by: Andrew Morton --- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/cifs/dir.c~cifs-suppress-warning fs/cifs/dir.c --- a/fs/cifs/dir.c~cifs-suppress-warning +++ a/fs/cifs/dir.c @@ -580,7 +580,7 @@ static int cifs_ci_compare(struct dentry * 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; _