From: Sunguoyun Date: Tue, 14 Jul 2020 06:07:47 +0000 (+0800) Subject: MIPS: fix vdso different address spaces X-Git-Tag: iomap-folio-5.17-old~3487^2~53 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c7c101df0aecddb1ae56dd7f6705eb05cb59b88a;p=users%2Fwilly%2Flinux.git MIPS: fix vdso different address spaces sparse report build warning as follows: arch/mips/vdso/vdso-n32-image.c:13:35: incorrect type in assignment (different address spaces) @@ expected void *[usertype] vdso @@ got void [noderef] * @@ Reported-by: kernel test robot Signed-off-by: Sunguoyun Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/vdso/genvdso.c b/arch/mips/vdso/genvdso.c index be57b832bbe0..94f9538bc889 100644 --- a/arch/mips/vdso/genvdso.c +++ b/arch/mips/vdso/genvdso.c @@ -260,7 +260,7 @@ int main(int argc, char **argv) fprintf(out_file, " if (vdso_image.size != new_size)\n"); fprintf(out_file, " return -EINVAL;\n"); fprintf(out_file, " current->mm->context.vdso =\n"); - fprintf(out_file, " (void __user *)(new_vma->vm_start);\n"); + fprintf(out_file, " (void *)(new_vma->vm_start);\n"); fprintf(out_file, " return 0;\n"); fprintf(out_file, "}\n");