staging: android: logger: Fix to use ktime_get_ts64
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 19 Jan 2021 07:50:32 +0000 (16:50 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Tue, 30 Mar 2021 01:44:59 +0000 (10:44 +0900)
We should use timespec64 instead of timespec, fix to use
ktime_get_ts64.

Change-Id: Id767b9e011443373ffc8f3a3df28b30dde0f0680
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/staging/android/logger.c

index 27b2686..405160c 100644 (file)
@@ -418,12 +418,12 @@ static ssize_t logger_write_iter(struct kiocb *iocb, struct iov_iter *from)
 {
        struct logger_log *log = file_get_log(iocb->ki_filp);
        struct logger_entry header;
-       struct timespec now;
+       struct timespec64 now;
        size_t len, count, w_off;
 
        count = min_t(size_t, iov_iter_count(from), LOGGER_ENTRY_MAX_PAYLOAD);
 
-       now = current_kernel_time();
+       ktime_get_ts64(&now);
 
        header.pid = current->tgid;
        header.tid = current->pid;