Whamcloud - gitweb
LU-11838 ldlm: struct timespec64.tv_sec type change 77/34677/4
authorLi Dongyang <dongyangli@ddn.com>
Tue, 16 Apr 2019 05:41:04 +0000 (15:41 +1000)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2019 05:13:02 +0000 (05:13 +0000)
commitf2bf0379a773c8c1659bfe018a22861784a0b9a6
tree1a3e912604aae8b33dedcdd217402963edf0cb64
parentdc46952ecd1aa09e738b2de6b1a3076ecbaa740e
LU-11838 ldlm: struct timespec64.tv_sec type change

Since kernel 4.18 struct timespec64 is no longer defined
as struct timespec on 64bit systems, this means tv_sec
is no longer __kernel_time_t but now time64_t.

Use %llu as the format specifier and explicitly cast it
to unsigned long long.

Test-Parameters:trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: Ib4c80c9b20854d45b1b3c04057c45ee20d5413d9
Reviewed-on: https://review.whamcloud.com/34677
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_lockd.c