rq_stats: Compilation error fix for 32bit kernel

This fixes below compilation error for 32bit kernel
build. Comparison of distinct pointer types long long
and unsigned long long. Change is to use uint64_t to
fix this.

Change-Id: I4a097a1fe8f6d4816c6049f2220934182d1381ef
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
This commit is contained in:
Lijuan Gao 2019-12-12 10:01:50 +08:00
parent a41a8bae22
commit d9a3fcc1b6

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2010-2015, 2017-2018 The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2015, 2017-2019 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -29,7 +29,7 @@ static void def_work_fn(struct work_struct *work)
static ssize_t show_def_timer_ms(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{
int64_t diff;
uint64_t diff;
unsigned int udiff;
diff = ktime_to_ns(ktime_get()) - rq_info.def_start_time;