From: Arnd Bergmann The wrong argument in put_compat_timespec is marked const, causing unnecessary compiler warnings. --- 25-akpm/include/linux/compat.h | 2 +- 25-akpm/kernel/compat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/compat.h~put_compat_timespec-prototype-fix include/linux/compat.h --- 25/include/linux/compat.h~put_compat_timespec-prototype-fix Tue Mar 2 13:39:36 2004 +++ 25-akpm/include/linux/compat.h Tue Mar 2 13:39:36 2004 @@ -45,7 +45,7 @@ typedef struct { extern int cp_compat_stat(struct kstat *, struct compat_stat *); extern int get_compat_timespec(struct timespec *, const struct compat_timespec *); -extern int put_compat_timespec(struct timespec *, const struct compat_timespec *); +extern int put_compat_timespec(const struct timespec *, struct compat_timespec *); struct compat_iovec { compat_uptr_t iov_base; diff -puN kernel/compat.c~put_compat_timespec-prototype-fix kernel/compat.c --- 25/kernel/compat.c~put_compat_timespec-prototype-fix Tue Mar 2 13:39:36 2004 +++ 25-akpm/kernel/compat.c Tue Mar 2 13:39:36 2004 @@ -30,7 +30,7 @@ int get_compat_timespec(struct timespec __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; } -int put_compat_timespec(struct timespec *ts, const struct compat_timespec *cts) +int put_compat_timespec(const struct timespec *ts, struct compat_timespec *cts) { return (verify_area(VERIFY_WRITE, cts, sizeof(*cts)) || __put_user(ts->tv_sec, &cts->tv_sec) || _