From: Seung-Woo Kim Date: Fri, 15 Sep 2017 02:38:02 +0000 (+0900) Subject: gpu: arm: midgard: fix build warning in r5p0_06rel0 with arm64 X-Git-Tag: submit/tizen_4.0/20170920.004041^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a711619315f61a7c64158f3e5a17c5dc20c8a0f7;p=platform%2Fkernel%2Flinux-exynos.git 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 --- 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)