summaryrefslogtreecommitdiff
path: root/arch/mips/vdso/genvdso.c
diff options
context:
space:
mode:
authorSunguoyun <sunguoyun@loongson.cn>2020-07-14 09:07:47 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-07-16 11:53:46 +0300
commitc7c101df0aecddb1ae56dd7f6705eb05cb59b88a (patch)
tree75360405942a6a54d9563e2b94e7c63235292123 /arch/mips/vdso/genvdso.c
parentef054ad38825c9f027bfdc184fe4b47b46f48831 (diff)
downloadlinux-c7c101df0aecddb1ae56dd7f6705eb05cb59b88a.tar.xz
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] <asn:1> * @@ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sunguoyun <sunguoyun@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/vdso/genvdso.c')
-rw-r--r--arch/mips/vdso/genvdso.c2
1 files changed, 1 insertions, 1 deletions
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");