[igt-dev] [PATCH] tests/kms_cursor_legacy: Use igt_require_intel before get_reloc_ahnd

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Nov 4 01:42:58 UTC 2021


On Wed, 03 Nov 2021 03:25:26 -0700, Petri Latvala wrote:
>
> > @@ -1327,6 +1333,7 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
> >	igt_pipe_t *pipe_connected = &display->pipes[pipe];
> >	igt_plane_t *plane_primary = igt_pipe_get_plane_type(pipe_connected, DRM_PLANE_TYPE_PRIMARY);
> >	igt_crc_t crcs[2], test_crc;
> > +	igt_require_intel(display->drm_fd);
> >	uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);

[76/1123] Compiling C object 'tests/59830eb@@kms_cursor_legacy at exe/kms_cursor_legacy.c.o'.
../tests/kms_cursor_legacy.c: In function ‘flip_vs_cursor_busy_crc’:
../tests/kms_cursor_legacy.c:1337:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);
  ^~~~~~~~

Should compile without warnings before merging.


More information about the igt-dev mailing list