Skip to contentSkip to conversation

Fix 32bit gcc warnings

PATCH In review Ville Syrjala 3 participants 4 messages Sep 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 32bit gcc warnings

From: Ville Syrjälä <[email protected]>

../tests/eviction_common.c:158:13: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] etc.

---
 tests/drv_suspend.c     | 4 ++--
 tests/eviction_common.c | 6 +++---
 tools/aubdump.c         | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
tests/drv_suspend.c +2 -2
index b4212dca13b3..84cb3b490c40 100644
@@ -177,10 +177,10 @@ test_shrink(int fd, unsigned int mode)
 
 	intel_purge_vm_caches(fd);
 
-	igt_debug("Locking %'"PRIu64" B (%'"PRIu64" MiB)\n",
+	igt_debug("Locking %'zu B (%'zu MiB)\n",
 		  size, size >> 20);
 	igt_assert(!mlock(mem, size));
-	igt_info("Locked %'"PRIu64" B (%'"PRIu64" MiB)\n",
+	igt_info("Locked %'zu B (%'zu MiB)\n",
 		 size, size >> 20);
 
 	intel_purge_vm_caches(fd);
tests/eviction_common.c +3 -3
index 8535dfcaff90..321772ba7389 100644
@@ -155,10 +155,10 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops,
 		igt_assert(bo);
 		lock -= ALIGN(surface_count * sizeof(*bo), 4096);
 
-		igt_debug("Locking %'"PRIu64" B (%'"PRIu64" MiB)\n",
+		igt_debug("Locking %'zu B (%'zu MiB)\n",
 			  lock, lock >> 20);
 		igt_assert(!mlock(mem, lock));
-		igt_info("Locked %'"PRIu64" B (%'"PRIu64" MiB)\n",
+		igt_info("Locked %'zu B (%'zu MiB)\n",
 			 lock, lock >> 20);
 
 		for (n = 0; n < surface_count; n++)
@@ -176,7 +176,7 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops,
 			 */
 			lock += surface_size;
 			igt_assert(!mlock(mem, lock));
-			igt_debug("Total locked %'"PRIu64" B (%'"PRIu64" MiB)\n",
+			igt_debug("Total locked %'zu B (%'zu MiB)\n",
 				  lock,
 				  lock >> 20);
 		}
tools/aubdump.c +3 -3
index 2d2b6c607a43..00e197121b95 100644
@@ -496,7 +496,7 @@ gen8_map_ggtt_range(uint64_t start, uint64_t end)
 			break;
 
 		if (verbose)
-			printf("MAPPING 0x%08lx-0x%08lx\n",
+			printf("MAPPING 0x%08"PRIx64"-0x%08"PRIx64"\n",
 			       (uint64_t)pos1 << 12, (uint64_t)pos2 << 12);
 		gen8_emit_ggtt_pte_for_range((uint64_t)pos1 << 12,
 		                             (uint64_t)pos2 << 12);
@@ -960,14 +960,14 @@ dump_execbuffer2(int fd, struct drm_i915_gem_execbuffer2 *execbuffer2)
 		if (obj->flags & EXEC_OBJECT_PINNED) {
 			bo->offset = obj->offset;
 			if (verbose)
-				printf("BO #%d (%dB) pinned @ 0x%lx\n",
+				printf("BO #%d (%dB) pinned @ 0x%"PRIx64"\n",
 				       obj->handle, bo->size, bo->offset);
 		} else {
 			if (obj->alignment != 0)
 				offset = align_u32(offset, obj->alignment);
 			bo->offset = offset;
 			if (verbose)
-				printf("BO #%d (%dB) @ 0x%lx\n", obj->handle,
+				printf("BO #%d (%dB) @ 0x%"PRIx64"\n", obj->handle,
 				       bo->size, bo->offset);
 			offset = align_u32(offset + bo->size + 4095, 4096);
 		}
Signature · 6 lines
2.16.4

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v1 1/1
#1 lore raw

Quoting Ville Syrjala (2018-09-10 16:00:18)

Quoted 6 lines

From: Ville Syrjälä <[email protected]>

../tests/eviction_common.c:158:13: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=] etc.

-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for Fix 32bit gcc warnings

In reply to Ville Syrjala
== Series Details ==

== Series Details ==

Series: Fix 32bit gcc warnings
URL : https://patchwork.freedesktop.org/series/49434/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4791 -> IGTPW_1818 =

== Summary - SUCCESS ==

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/49434/revisions/1/mbox/

== Known issues ==

Here are the changes found in IGTPW_1818 that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@amdgpu/amd_basic@userptr:
      fi-kbl-8809g:       NOTRUN -> INCOMPLETE (fdo#107402)

    igt@drv_selftest@live_guc:
      fi-cfl-guc:         PASS -> DMESG-WARN (fdo#107258)

    igt@gem_exec_suspend@basic-s3:
      fi-skl-caroline:    NOTRUN -> INCOMPLETE (fdo#107556, fdo#104108)
      fi-kbl-soraka:      NOTRUN -> INCOMPLETE (fdo#107556, fdo#107774)

    igt@kms_psr@primary_page_flip:
      fi-cnl-psr:         PASS -> FAIL (fdo#107336)

    
    ==== Possible fixes ====

    igt@amdgpu/amd_basic@cs-sdma:
      fi-skl-6700k2:      FAIL (fdo#107888) -> SKIP +7

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-byt-clapper:     FAIL (fdo#103191, fdo#107362) -> PASS

    igt@kms_psr@primary_page_flip:
      fi-whl-u:           FAIL (fdo#107336) -> PASS

fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#104108 https://bugs.freedesktop.org/show_bug.cgi?id=104108
fdo#107258 https://bugs.freedesktop.org/show_bug.cgi?id=107258
fdo#107336 https://bugs.freedesktop.org/show_bug.cgi?id=107336
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107402 https://bugs.freedesktop.org/show_bug.cgi?id=107402
fdo#107556 https://bugs.freedesktop.org/show_bug.cgi?id=107556
fdo#107774 https://bugs.freedesktop.org/show_bug.cgi?id=107774
fdo#107888 https://bugs.freedesktop.org/show_bug.cgi?id=107888

== Participating hosts (46 -> 47) ==

Additional (5): fi-kbl-soraka fi-skl-caroline fi-blb-e6850 fi-glk-dsi fi-kbl-8809g
Missing (4): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-hsw-4200u

== Build changes ==

* IGT: IGT_4636 -> IGTPW_1818

CI_DRM_4791: 07cf212bc704357ee60aba52ec40bab538222040 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1818: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1818/
IGT_4636: 40de31df52ffed5e392d607a83e3aea4efb150e6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1818/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for Fix 32bit gcc warnings

In reply to Ville Syrjala
== Series Details ==

== Series Details ==

Series: Fix 32bit gcc warnings
URL : https://patchwork.freedesktop.org/series/49434/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4636_full -> IGTPW_1818_full =

== Summary - WARNING ==

Minor unknown changes coming with IGTPW_1818_full need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_1818_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/49434/revisions/1/mbox/

== Possible new issues ==

Here are the unknown changes that may have been introduced in IGTPW_1818_full:

=== IGT changes ===

    ==== Warnings ====

    igt@perf_pmu@rc6:
      shard-kbl:          SKIP -> PASS

    igt@pm_rc6_residency@rc6-accuracy:
      shard-snb:          SKIP -> PASS

== Known issues ==

Here are the changes found in IGTPW_1818_full that come from known issues:

=== IGT changes ===

    ==== Issues hit ====

    igt@drv_suspend@shrink:
      shard-hsw:          PASS -> INCOMPLETE (fdo#106886, fdo#103540)

    igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt:
      shard-glk:          PASS -> FAIL (fdo#103167)

    igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
      shard-snb:          NOTRUN -> FAIL (fdo#103166)

    igt@kms_setmode@basic:
      shard-kbl:          PASS -> FAIL (fdo#99912)

    igt@prime_vgem@basic-fence-flip:
      shard-apl:          PASS -> FAIL (fdo#104008)

    
    ==== Possible fixes ====

    igt@gem_exec_reuse@baggage:
      shard-snb:          INCOMPLETE (fdo#105411) -> PASS

    igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
      shard-hsw:          FAIL (fdo#105767) -> PASS

    igt@kms_cursor_legacy@cursor-vs-flip-legacy:
      shard-hsw:          FAIL (fdo#103355) -> PASS

    igt@kms_rotation_crc@sprite-rotation-180:
      shard-snb:          FAIL (fdo#103925) -> PASS

fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103355 https://bugs.freedesktop.org/show_bug.cgi?id=103355
fdo#103540 https://bugs.freedesktop.org/show_bug.cgi?id=103540
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105767 https://bugs.freedesktop.org/show_bug.cgi?id=105767
fdo#106886 https://bugs.freedesktop.org/show_bug.cgi?id=106886
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912

== Participating hosts (5 -> 5) ==

No changes in participating hosts

== Build changes ==

* IGT: IGT_4636 -> IGTPW_1818
* Linux: CI_DRM_4787 -> CI_DRM_4791

CI_DRM_4787: 6dc8457a2f2093eecb9c6cbb7306fd25bb1664e6 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4791: 07cf212bc704357ee60aba52ec40bab538222040 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1818: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1818/
IGT_4636: 40de31df52ffed5e392d607a83e3aea4efb150e6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1818/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev