Commit c7c101df authored by Sunguoyun's avatar Sunguoyun Committed by Thomas Bogendoerfer

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSunguoyun <sunguoyun@loongson.cn>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent ef054ad3
...@@ -260,7 +260,7 @@ int main(int argc, char **argv) ...@@ -260,7 +260,7 @@ int main(int argc, char **argv)
fprintf(out_file, " if (vdso_image.size != new_size)\n"); fprintf(out_file, " if (vdso_image.size != new_size)\n");
fprintf(out_file, " return -EINVAL;\n"); fprintf(out_file, " return -EINVAL;\n");
fprintf(out_file, " current->mm->context.vdso =\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, " return 0;\n");
fprintf(out_file, "}\n"); fprintf(out_file, "}\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment