From: Steve French Date: Thu, 15 May 2008 05:41:54 +0000 (+0000) Subject: [CIFS] suppress duplicate warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c32916374b2b4f4d2b7ccdb357fe7989f3b407a6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Steve French --- 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;