diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-06-13 23:34:33 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-14 00:00:47 +0200 |
commit | 938e7cf2d569833a5acf689a8926faf507826253 (patch) | |
tree | 01d395220896e3d1508edbdca5fbb18dd900a702 /kernel/time/posix-timers.h | |
parent | 343d8fc208e43e50525ae6e0fc4845b9966b7318 (diff) | |
download | talos-op-linux-938e7cf2d569833a5acf689a8926faf507826253.tar.gz talos-op-linux-938e7cf2d569833a5acf689a8926faf507826253.zip |
posix-timers: Make nanosleep timespec argument const
No nanosleep implementation modifies the rqtp argument. Mark is const.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/time/posix-timers.h')
-rw-r--r-- | kernel/time/posix-timers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/posix-timers.h b/kernel/time/posix-timers.h index 5e69bb85629f..fb303c3be4d3 100644 --- a/kernel/time/posix-timers.h +++ b/kernel/time/posix-timers.h @@ -10,7 +10,7 @@ struct k_clock { int (*clock_adj)(const clockid_t which_clock, struct timex *tx); int (*timer_create)(struct k_itimer *timer); int (*nsleep)(const clockid_t which_clock, int flags, - struct timespec64 *); + const struct timespec64 *); int (*timer_set)(struct k_itimer *timr, int flags, struct itimerspec64 *new_setting, struct itimerspec64 *old_setting); |