diff options
author | Richard Cochran <richard.cochran@omicron.at> | 2011-02-01 08:50:58 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-02 09:28:11 -0500 |
commit | 1e6d767924c74929c0cfe839ae8f37bcee9e544e (patch) | |
tree | 4ace06971e2b3519e556bea2f7e3e999e860eedd /include/linux/time.h | |
parent | 7cf37e87dd2cfa17a64f28ea7f31eed4525f79e4 (diff) |
time: Correct the *settime* parameters
Both settimeofday() and clock_settime() promise with a 'const'
attribute not to alter the arguments passed in. This patch adds the
missing 'const' attribute into the various kernel functions
implementing these calls.
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <20110201134417.545698637@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 38c5206c2673..7c44e7778033 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -145,8 +145,9 @@ static inline u32 arch_gettimeoffset(void) { return 0; } | |||
145 | #endif | 145 | #endif |
146 | 146 | ||
147 | extern void do_gettimeofday(struct timeval *tv); | 147 | extern void do_gettimeofday(struct timeval *tv); |
148 | extern int do_settimeofday(struct timespec *tv); | 148 | extern int do_settimeofday(const struct timespec *tv); |
149 | extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz); | 149 | extern int do_sys_settimeofday(const struct timespec *tv, |
150 | const struct timezone *tz); | ||
150 | #define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts) | 151 | #define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts) |
151 | extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags); | 152 | extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags); |
152 | struct itimerval; | 153 | struct itimerval; |