From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA8836EDD0 for ; Thu, 4 Nov 2021 09:00:11 +0000 (UTC) Date: Thu, 4 Nov 2021 10:58:53 +0200 From: Petri Latvala Message-ID: References: <20211104064848.15968-1-petri.latvala@intel.com> <20211104072544.GA9460@zkempczy-mobl2> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211104072544.GA9460@zkempczy-mobl2> Subject: Re: [igt-dev] [PATCH i-g-t 1/1] tests/kms_cursor_legacy: Fix build warning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Zbigniew =?utf-8?Q?Kempczy=C5=84ski?= Cc: igt-dev@lists.freedesktop.org List-ID: On Thu, Nov 04, 2021 at 08:25:44AM +0100, Zbigniew Kempczyński wrote: > On Thu, Nov 04, 2021 at 08:48:48AM +0200, Petri Latvala wrote: > > ../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 > > Cc: Mark Yacoub > > Cc: Ashutosh Dixit > > --- > > 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); > > Reviewed-by: Zbigniew Kempczyński And merged, thanks. -- Petri Latvala