@@ -27,6 +27,6 @@ struct vdso_data {
(void __user *)((unsigned long)(base) + __vdso_##name); \
})
-asmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, uintptr_t);
+asmlinkage long sys_riscv_flush_icache(uintptr_t, uintptr_t, unsigned long);
#endif /* _ASM_RISCV_VDSO_H */
@@ -55,7 +55,7 @@ SYSCALL_DEFINE6(mmap2, unsigned long, addr, unsigned long, len,
* in there for forwards compatibility.
*/
SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start, uintptr_t, end,
- uintptr_t, flags)
+ unsigned long, flags)
{
/* Check the reserved flags. */
if (unlikely(flags & ~SYS_RISCV_FLUSH_ICACHE_ALL))
While uinptr_t is identical to unsigned long for all Linux platforms, defining a flags argument as an uinptr_t doesn't make any sense, so change it to an unsigned long instead. Signed-off-by: Christoph Hellwig <hch@lst.de> --- arch/riscv/include/asm/vdso.h | 2 +- arch/riscv/kernel/sys_riscv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)