Whamcloud - gitweb
LU-11838 kernel: harden current_time autoconf test 63/33963/2
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 7 Jan 2019 16:46:38 +0000 (11:46 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 23 Jan 2019 09:18:16 +0000 (09:18 +0000)
commit74b3726f42b1f72e289e3c3252030a62646afa7b
treecb09715c1f459443209d888f12bd46279cae2215
parent30239b4aecbe80e14f65316defd9fe162426147a
LU-11838 kernel: harden current_time autoconf test

In newer kernels CURRENT_TIME was replaced by current_time(). The
return value of current_time() was struct timespec but to support
time after 2038 the return value was changed to struct timespec64.
This change broke the autoconf test. The solution is to use one
of the struct iattr field in the autoconf test since it hides
the return value type.

Test-Parameters: trivial

Change-Id: I95abd2cd2b777f99cbf6ab78370ee2171e5fca67
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/33963
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
lustre/autoconf/lustre-core.m4