summaryrefslogtreecommitdiffstats
path: root/kernel/time/ntp_internal.h
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2018-07-13 14:06:42 +0200
committerJohn Stultz <john.stultz@linaro.org>2018-07-19 17:08:05 -0700
commit985e695074d35768cb04d65f58bca45f7bf1a99d (patch)
tree3d473a4a36fe660fd64cdabde116d57ff8434574 /kernel/time/ntp_internal.h
parent86b2dcd4f02b86f6b5927fc0adcac777825f4030 (diff)
downloadlinux-985e695074d35768cb04d65f58bca45f7bf1a99d.tar.bz2
timekeeping/ntp: Constify some function arguments
Add 'const' to some function arguments and variables to make it easier to read the code. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Miroslav Lichvar <mlichvar@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> [jstultz: Also fixup pre-existing checkpatch warnings for prototype arguments with no variable name] Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time/ntp_internal.h')
-rw-r--r--kernel/time/ntp_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/ntp_internal.h b/kernel/time/ntp_internal.h
index 909bd1f1bfb1..c24b0e13f011 100644
--- a/kernel/time/ntp_internal.h
+++ b/kernel/time/ntp_internal.h
@@ -8,6 +8,6 @@ extern void ntp_clear(void);
extern u64 ntp_tick_length(void);
extern ktime_t ntp_get_next_leap(void);
extern int second_overflow(time64_t secs);
-extern int __do_adjtimex(struct timex *, struct timespec64 *, s32 *);
-extern void __hardpps(const struct timespec64 *, const struct timespec64 *);
+extern int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai);
+extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
#endif /* _LINUX_NTP_INTERNAL_H */