Commit e729d83f authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[PATCH] fix put_compat_timespec prototype

From: Arnd Bergmann <arnd@arndb.de>

The wrong argument in put_compat_timespec is marked const, causing
unnecessary compiler warnings.
parent 5b9c017d
......@@ -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;
......
......@@ -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) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment