Linux: Fix to use time_t instead of time64_t

In commit 'Linux 6.6: convert to ctime accessor functions' (072c7934cd)
the functiom afs_inode_set_ctime was defined to use time64_t when it
should have used a time_t as the data type for the sec parameter.
See the commit 'LINUX 5.6: define time_t and use timespec/timespec64'
(78049987aa).

The time64_t data type was introduced in Linux 3.17.  A build failure
will occur when building on kernels prior to Linux 3.17.

Reviewed-on: https://gerrit.openafs.org/15595
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit a2f77c53073b3999887eb689f396a414b191aba7)

Change-Id: Ie14d9ebbcce6a5d2db0fc38eb4d97aa30f574da9
Reviewed-on: https://gerrit.openafs.org/15596
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
Cheyenne Wills 2023-11-02 09:46:34 -06:00 committed by Benjamin Kaduk
parent 519918dfed
commit 56763a199f

View File

@ -122,7 +122,7 @@ osi_GetTime(osi_timeval32_t *atv)
# define afs_inode_set_ctime(inode, sec, nsec) inode_set_ctime((inode), (sec), (nsec))
#else
static inline void
afs_inode_set_ctime(struct inode *inode, time64_t sec, long nsec)
afs_inode_set_ctime(struct inode *inode, time_t sec, long nsec)
{
inode->i_ctime.tv_sec = sec;
inode->i_ctime.tv_nsec = nsec;