]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix put_compat_timespec prototype
authorAndrew Morton <akpm@osdl.org>
Sat, 6 Mar 2004 16:49:01 +0000 (08:49 -0800)
committerJaroslav Kysela <perex@suse.cz>
Sat, 6 Mar 2004 16:49:01 +0000 (08:49 -0800)
From: Arnd Bergmann <arnd@arndb.de>

The wrong argument in put_compat_timespec is marked const, causing
unnecessary compiler warnings.

include/linux/compat.h
kernel/compat.c

index b287477fe20631a9d2aef9de51434eed7acaf726..0fbfb6152d2003310f0400b7b3570ac5b484869c 100644 (file)
@@ -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;
index f69dcd644a2228ea01c3f05c0e4daeb12e358460..f05cda344b4d3fb5a59ba34b24eabeffd53de79d 100644 (file)
@@ -30,7 +30,7 @@ int get_compat_timespec(struct timespec *ts, const struct compat_timespec *cts)
                        __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) ||