public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix put_compat_timespec prototype
@ 2004-03-02 16:03 Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2004-03-02 16:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

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) ||

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-02 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02 16:03 [PATCH] fix put_compat_timespec prototype Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox