From a711619315f61a7c64158f3e5a17c5dc20c8a0f7 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 15 Sep 2017 11:38:02 +0900 Subject: [PATCH] gpu: arm: midgard: fix build warning in r5p0_06rel0 with arm64 The debugfs usage in midgard r5p0_06rel0 has build warning in arm64 because of printing pointer with unsigned int. Fix the build warning as fixed in r12p0. It converts pointer type to 32bit unsigned int type for printing format. Change-Id: I10a12df503e7c2605b816ce2e1cc7fde061f4e7e Signed-off-by: Seung-Woo Kim --- drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c b/drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c index 92422e638979..b4adf85322b7 100644 --- a/drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c +++ b/drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c @@ -67,8 +67,8 @@ static int kbasep_jd_debugfs_atoms_show(struct seq_file *sfile, void *data) seq_printf(sfile, "%i,%u,%u,%u,%u %u,%lli,%llu\n", i, atom->core_req, atom->status, atom->coreref_state, - atom->dep[0].atom ? atom->dep[0].atom - atoms : 0, - atom->dep[1].atom ? atom->dep[1].atom - atoms : 0, + (unsigned)(atom->dep[0].atom ? atom->dep[0].atom - atoms : 0), + (unsigned)(atom->dep[1].atom ? atom->dep[1].atom - atoms : 0), (signed long long)start_timestamp, (unsigned long long)(atom->time_spent_us ? atom->time_spent_us * 1000 : start_timestamp) -- 2.34.1