All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/1] tests/kms_cursor_legacy: Fix build warning
@ 2021-11-04  6:48 Petri Latvala
  2021-11-04  7:25 ` Zbigniew Kempczyński
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Petri Latvala @ 2021-11-04  6:48 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

../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]
 1337 |  uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);
       |  ^~~~~~~~

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Mark Yacoub <markyacoub@chromium.org>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 tests/kms_cursor_legacy.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index e48cdf6c..cd2f8498 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -1333,8 +1333,10 @@ 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;
+	uint64_t ahnd;
+
 	igt_require_intel(display->drm_fd);
-	uint64_t ahnd = get_reloc_ahnd(display->drm_fd, 0);
+	ahnd = get_reloc_ahnd(display->drm_fd, 0);
 
 	if (atomic)
 		igt_require(display->is_atomic);
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-04  9:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04  6:48 [igt-dev] [PATCH i-g-t 1/1] tests/kms_cursor_legacy: Fix build warning Petri Latvala
2021-11-04  7:25 ` Zbigniew Kempczyński
2021-11-04  8:58   ` Petri Latvala
2021-11-04  7:51 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
2021-11-04  8:52 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.