summaryrefslogtreecommitdiffstats
path: root/kernel/time/timekeeping_internal.h
diff options
context:
space:
mode:
authorOndrej Mosnacek2018-07-13 14:06:42 +0200
committerJohn Stultz2018-07-20 02:08:05 +0200
commit985e695074d35768cb04d65f58bca45f7bf1a99d (patch)
tree3d473a4a36fe660fd64cdabde116d57ff8434574 /kernel/time/timekeeping_internal.h
parentntp: Use kstrtos64 for s64 variable (diff)
downloadkernel-qcow2-linux-985e695074d35768cb04d65f58bca45f7bf1a99d.tar.gz
kernel-qcow2-linux-985e695074d35768cb04d65f58bca45f7bf1a99d.tar.xz
kernel-qcow2-linux-985e695074d35768cb04d65f58bca45f7bf1a99d.zip
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/timekeeping_internal.h')
-rw-r--r--kernel/time/timekeeping_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timekeeping_internal.h b/kernel/time/timekeeping_internal.h
index cf5c0828ee31..bcbb52db2256 100644
--- a/kernel/time/timekeeping_internal.h
+++ b/kernel/time/timekeeping_internal.h
@@ -8,7 +8,7 @@
#include <linux/time.h>
#ifdef CONFIG_DEBUG_FS
-extern void tk_debug_account_sleep_time(struct timespec64 *t);
+extern void tk_debug_account_sleep_time(const struct timespec64 *t);
#else
#define tk_debug_account_sleep_time(x)
#endif