[PATCH][COMPAT] {get,put}_compat_timspec 8/8 parisc

Stephen Rothwell (sfr@canb.auug.org.au)
Wed, 8 Jan 2003 23:12:06 +1100


Hi Willy,

Here is the parisc part.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.54-200301081106-32bit.2/arch/parisc/kernel/sys_parisc32.c 2.5.54-200301081106-32bit.3/arch/parisc/kernel/sys_parisc32.c --- 2.5.54-200301081106-32bit.2/arch/parisc/kernel/sys_parisc32.c 2003-01-08 12:04:15.000000000 +1100 +++ 2.5.54-200301081106-32bit.3/arch/parisc/kernel/sys_parisc32.c 2003-01-08 17:10:25.000000000 +1100 @@ -490,15 +490,6 @@ } #endif /* CONFIG_SYSCTL */ -static int -put_compat_timespec(struct compat_timespec *u, struct timespec *t) -{ - struct compat_timespec t32; - t32.tv_sec = t->tv_sec; - t32.tv_nsec = t->tv_nsec; - return copy_to_user(u, &t32, sizeof t32); -} - asmlinkage long sys32_sched_rr_get_interval(pid_t pid, struct compat_timespec *interval) { @@ -507,7 +498,7 @@ extern asmlinkage long sys_sched_rr_get_interval(pid_t pid, struct timespec *interval); KERNEL_SYSCALL(ret, sys_sched_rr_get_interval, pid, &t); - if (put_compat_timespec(interval, &t)) + if (put_compat_timespec(&t, interval)) return -EFAULT; return ret; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/