[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1594706867-4426-1-git-send-email-sunguoyun@loongson.cn>
Date: Tue, 14 Jul 2020 14:07:47 +0800
From: Guoyun Sun <sunguoyun@...ngson.cn>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Paul Burton <paulburton@...nel.org>
Cc: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
Tiezhu Yang <yangtiezhu@...ngson.cn>,
Sunguoyun <sunguoyun@...ngson.cn>
Subject: [PATCH] MIPS: fix vdso different address spaces
From: Sunguoyun <sunguoyun@...ngson.cn>
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@...el.com>
Signed-off-by: Sunguoyun <sunguoyun@...ngson.cn>
---
arch/mips/vdso/genvdso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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");
--
2.17.1
Powered by blists - more mailing lists