From: Mark Vitale Date: Fri, 18 Jan 2019 22:05:49 +0000 (-0500) Subject: LINUX: correct include for ktime_get_coarse_real_ts64() X-Git-Tag: debian/1.8.4_pre1-1~9^2^2~32 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b02434f5c6cab1f317c9fb6652e31a20195c20d8;p=packages%2Fo%2Fopenafs.git LINUX: correct include for ktime_get_coarse_real_ts64() The include for the ktime_get_coarse_real_ts64() autoconf test is incorrect; ktime_get_coarse_real_ts64() has always been in linux/ktime.h (via #include timekeeping.h), not linux/time.h. This autoconf test still ran correctly because the OpenAFS build was inadvertently picking up ktime.h via the default autoconf include path. Therefore, this commit is needed only to provide documentation and clarity to future maintainers. Introduced as a cut-n-paste error (from the current_kernel_time test) with commit 3c454b39d04f4886536267c211171dae30dc0344 for Linux 4.20. Reviewed-on: https://gerrit.openafs.org/13437 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 10b02075a262dbe802266ea4bcac3936dff5dd23) Change-Id: Ide1adcc8536ed8829361e0961da96949099d5caf Reviewed-on: https://gerrit.openafs.org/13523 Reviewed-by: Michael Meffie Reviewed-by: Mark Vitale Reviewed-by: Andrew Deason Reviewed-by: Marcio Brito Barbosa Reviewed-by: Cheyenne Wills Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/cf/linux-kernel-func.m4 b/src/cf/linux-kernel-func.m4 index 40fcb1668..34c5fa48e 100644 --- a/src/cf/linux-kernel-func.m4 +++ b/src/cf/linux-kernel-func.m4 @@ -73,7 +73,7 @@ AC_CHECK_LINUX_FUNC([kernel_setsockopt], [#include ], [kernel_setsockopt(NULL, 0, 0, NULL, 0);]) AC_CHECK_LINUX_FUNC([ktime_get_coarse_real_ts64], - [#include ], + [#include ], [struct timespec64 *s; ktime_get_coarse_real_ts64(s);]) AC_CHECK_LINUX_FUNC([ktime_get_real_ts64],