This is another fix to allow compiling on Linux 4.14-rc1.
The CURRENT_TIME macro was removed from the kernel in 4.12. The
recommended way to get the current time is now current_time(inode),
which was introduced in 4.9. Use this function if it's supported and if
we have an inode to reference.
Replace CURRENT_TIME with current_kernel_time() in other places, this
function has been available at least since 2.6.11.
(To be on the safe side, I didn't touch the pre 2.5.0 code.)
Signed-off-by: Martin Kaiser <firstname.lastname@example.org>
yaffs_vfs_multi.c | 8 +++++++-
yportenv_multi.h | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)