[linux-yocto] [Resend v4.12 PATCH 1/2] fs: yaffs2: replace CURRENT_TIME by other appropriate apis

2017-08-27 Thread Kevin Hao
The macro CURRENT_TIME has already been deleted by commit bfe1c566453a ("time: delete CURRENT_TIME_SEC and CURRENT_TIME"). So we need to replace all the uses of CURRENT_TIME by current_time() for filesystem times, and ktime_get_* function for others. Signed-off-by: Kevin Hao --- Hi Bruce, Could

[linux-yocto] [Resend v4.12 PATCH 2/2] fs: yaffs2: includes the missing header file

2017-08-27 Thread Kevin Hao
To fix the following build error: fs/yaffs2/yaffs_vfs.c: In function 'yaffs_mknod': fs/yaffs2/yaffs_vfs.c:1252:2: error: implicit declaration of function 'current_fsuid' [-Werror=implicit-function-declaration] uid_t uid = YCRED_FSUID(); ^ Signed-off-by: Kevin Hao --- fs/yaffs2/yaffs