diff options
| author | Ondrej Mosnacek <[email protected]> | 2018-07-13 14:06:42 +0200 |
|---|---|---|
| committer | John Stultz <[email protected]> | 2018-07-19 17:08:05 -0700 |
| commit | 985e695074d35768cb04d65f58bca45f7bf1a99d (patch) | |
| tree | 3d473a4a36fe660fd64cdabde116d57ff8434574 /include | |
| parent | 86b2dcd4f02b86f6b5927fc0adcac777825f4030 (diff) | |
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 <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Miroslav Lichvar <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Stephen Boyd <[email protected]>
Signed-off-by: Ondrej Mosnacek <[email protected]>
[jstultz: Also fixup pre-existing checkpatch warnings for
prototype arguments with no variable name]
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/timekeeping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 86bc2026efce..edace6b656e9 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -177,7 +177,7 @@ static inline time64_t ktime_get_clocktai_seconds(void) extern bool timekeeping_rtc_skipsuspend(void); extern bool timekeeping_rtc_skipresume(void); -extern void timekeeping_inject_sleeptime64(struct timespec64 *delta); +extern void timekeeping_inject_sleeptime64(const struct timespec64 *delta); /* * struct system_time_snapshot - simultaneous raw/real time capture with |