diff options
Diffstat (limited to 'kernel/time/ntp.c')
-rw-r--r-- | kernel/time/ntp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c index a627cae8baab..c5e0cba3b39c 100644 --- a/kernel/time/ntp.c +++ b/kernel/time/ntp.c | |||
@@ -642,7 +642,7 @@ void ntp_notify_cmos_timer(void) | |||
642 | /* | 642 | /* |
643 | * Propagate a new txc->status value into the NTP state: | 643 | * Propagate a new txc->status value into the NTP state: |
644 | */ | 644 | */ |
645 | static inline void process_adj_status(struct timex *txc) | 645 | static inline void process_adj_status(const struct timex *txc) |
646 | { | 646 | { |
647 | if ((time_status & STA_PLL) && !(txc->status & STA_PLL)) { | 647 | if ((time_status & STA_PLL) && !(txc->status & STA_PLL)) { |
648 | time_state = TIME_OK; | 648 | time_state = TIME_OK; |
@@ -665,7 +665,7 @@ static inline void process_adj_status(struct timex *txc) | |||
665 | } | 665 | } |
666 | 666 | ||
667 | 667 | ||
668 | static inline void process_adjtimex_modes(struct timex *txc, s32 *time_tai) | 668 | static inline void process_adjtimex_modes(const struct timex *txc, s32 *time_tai) |
669 | { | 669 | { |
670 | if (txc->modes & ADJ_STATUS) | 670 | if (txc->modes & ADJ_STATUS) |
671 | process_adj_status(txc); | 671 | process_adj_status(txc); |
@@ -716,7 +716,7 @@ static inline void process_adjtimex_modes(struct timex *txc, s32 *time_tai) | |||
716 | * adjtimex mainly allows reading (and writing, if superuser) of | 716 | * adjtimex mainly allows reading (and writing, if superuser) of |
717 | * kernel time-keeping variables. used by xntpd. | 717 | * kernel time-keeping variables. used by xntpd. |
718 | */ | 718 | */ |
719 | int __do_adjtimex(struct timex *txc, struct timespec64 *ts, s32 *time_tai) | 719 | int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai) |
720 | { | 720 | { |
721 | int result; | 721 | int result; |
722 | 722 | ||