From: Arnd Bergmann Date: Thu, 3 Jan 2019 16:00:49 +0000 (+0100) Subject: sparc64: fix sparc_ipc type conversion X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=73a66023c937ef258f2aa340cdb53ae7d8b1d47c;p=openwrt%2Fstaging%2Fblogic.git sparc64: fix sparc_ipc type conversion __kernel_timespec and timespec are currently the same type, but once they are different, the type cast has to be changed here. Signed-off-by: Arnd Bergmann --- diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index 274ed0b9b3e0..1c079e7bab09 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c @@ -344,7 +344,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second goto out; case SEMTIMEDOP: err = sys_semtimedop(first, ptr, (unsigned int)second, - (const struct timespec __user *) + (const struct __kernel_timespec __user *) (unsigned long) fifth); goto out; case SEMGET: