gpu: arm: midgard: fix build warning in r5p0_06rel0 with arm64 63/150263/2 accepted/tizen/4.0/unified/20170920.081531 accepted/tizen/unified/20170920.081129 submit/tizen/20170920.004419 submit/tizen_4.0/20170920.004041
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 15 Sep 2017 02:38:02 +0000 (11:38 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 15 Sep 2017 04:52:23 +0000 (13:52 +0900)
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 <sw0312.kim@samsung.com>
drivers/gpu/arm/midgard/r5p0_06rel0/mali_kbase_jd_debugfs.c

index 92422e63897961d9118b4ce78951b45d404842dd..b4adf85322b792654ddeff016d7006081aecc895 100644 (file)
@@ -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)