]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux 4.20: current_kernel_time is gone
authorMark Vitale <mvitale@sinenomine.net>
Tue, 13 Nov 2018 16:20:09 +0000 (11:20 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 21 Dec 2018 11:10:50 +0000 (06:10 -0500)
commit7fb6d488156e673e78b462faf93f2c5b2214fe59
tree4061aecfc200fb6ff65e160215f29bf397320f91
parentfc9211be1b242e7026a679a41e5f53f3b4a7e818
Linux 4.20: current_kernel_time is gone

With Linux commit 976516404ff3fab2a8caa8bd6f5efc1437fed0b8 'y2038:
remove unused time interfaces' (4.20-rc1), current_kernel_time() has
been removed.

Many y2038-compliant time APIs were introduced with Linux commit
fb7fcc96a86cfaef0f6dcc0665516aa68611e736 'timekeeping: Standardize on
ktime_get_*() naming' (4.18).  According to
Documentation/core-api/timekeeping.rst, a suitable replacement for:

  struct timespec current_kernel_time(void)

would be:

  void ktime_get_coarse_real_ts64(struct timespec64 *ts))

Add an autoconf test and equivalent logic to deal.

Reviewed-on: https://gerrit.openafs.org/13391
Tested-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 3c454b39d04f4886536267c211171dae30dc0344)

Change-Id: I3f00cf4bd3a1ffb7c90e3920113964d74c6df403
Reviewed-on: https://gerrit.openafs.org/13405
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_machdep.h
src/cf/linux-kernel-func.m4