From: Arnd Bergmann <arnd@arndb.de>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] fix put_compat_timespec prototype
Date: Tue, 2 Mar 2004 17:03:19 +0100 [thread overview]
Message-ID: <200403021703.19174.arnd@arndb.de> (raw)
The wrong argument in put_compat_timespec is marked const,
causing unnecessary compiler warnings.
===== include/linux/compat.h 1.18 vs edited =====
--- 1.18/include/linux/compat.h Mon Feb 23 01:34:04 2004
+++ edited/include/linux/compat.h Mon Feb 23 21:10:42 2004
@@ -57,7 +57,7 @@
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;
===== kernel/compat.c 1.25 vs edited =====
--- 1.25/kernel/compat.c Mon Feb 23 01:34:41 2004
+++ edited/kernel/compat.c Mon Feb 23 21:10:19 2004
@@ -30,7 +30,7 @@
__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) ||
reply other threads:[~2004-03-02 16:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200403021703.19174.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox