summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/nommu.c')
-rw-r--r--arch/sh/mm/nommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/mm/nommu.c b/arch/sh/mm/nommu.c
index 8b4504413c5f..78c4b6e6d33b 100644
--- a/arch/sh/mm/nommu.c
+++ b/arch/sh/mm/nommu.c
@@ -28,9 +28,9 @@ __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n)
return 0;
}
-__kernel_size_t __clear_user(void *to, __kernel_size_t n)
+__kernel_size_t __clear_user(void __user *to, __kernel_size_t n)
{
- memset(to, 0, n);
+ memset((__force void *)to, 0, n);
return 0;
}