From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72808E9A049 for ; Sat, 21 Feb 2026 03:20:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2228610E109; Sat, 21 Feb 2026 03:20:31 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Gfex3c4b"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id A865D10E109 for ; Sat, 21 Feb 2026 03:20:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771644030; x=1803180030; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=asha+I6imxKhvGjMcj5up9Z+VboVBV0UN206V2xL06o=; b=Gfex3c4bzKQkYlUbWedE27xfQls+YUtVNWFqggyc2rraSx5iLFCFl4Ha mqR+8/qFuoXPyqe0+3NNBsYcKjey/PjcJvfMqcx22hKtRtaMtLbGVZ7EZ CcQGmj81KCLXyMS3i+4IW6DE8qF0VDtgJIQpY/rew8qyP3/7w0fGfIbz9 VgJyz6D+c/zZbUn0ZdT7gUwCaKkw4cNg5htA3gFh8XdwZHWdTEx/YgFiH /1toJUfzUekRfz84nFRiLXiawCJuRzzzEhnoTnsa4kZ1uZc7QgLfEAXPh bUL0OzPdDfTtW4pHuNnAYvo7NgQA/fpX7WfQ8SP5BmmrDqKMsKokS2hjO g==; X-CSE-ConnectionGUID: VAdeuTl3SIK3C8YY1f59Eg== X-CSE-MsgGUID: fbgV0CyPRI+VWpoZSYMBcg== X-IronPort-AV: E=McAfee;i="6800,10657,11707"; a="75345759" X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="75345759" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2026 19:20:29 -0800 X-CSE-ConnectionGUID: 3fuxBrnZTDiEXEha11pMGQ== X-CSE-MsgGUID: u9hLc8TlQVu8A+gFJhNVuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="252720240" Received: from vpanait-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.139]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2026 19:20:29 -0800 From: Ville Syrjala To: igt-dev@lists.freedesktop.org Subject: [PATCH i-g-t v2 06/23] tests/kms: Use 'enum pipe' over int' Date: Sat, 21 Feb 2026 05:19:45 +0200 Message-ID: <20260221032003.30936-7-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260221032003.30936-1-ville.syrjala@linux.intel.com> References: <20260221032003.30936-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" From: Ville Syrjälä Convert a few 'int pipe's tp 'enum pipe pipe's. This will help subsequent cocci based pipe->crtc conversions. Signed-off-by: Ville Syrjälä --- tests/intel/kms_flip_tiling.c | 2 +- tests/nouveau_crc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/intel/kms_flip_tiling.c b/tests/intel/kms_flip_tiling.c index 453394343857..54446f2478ae 100644 --- a/tests/intel/kms_flip_tiling.c +++ b/tests/intel/kms_flip_tiling.c @@ -67,7 +67,7 @@ static void pipe_crc_free(data_t *data) data->pipe_crc = NULL; } -static void pipe_crc_new(data_t *data, int pipe) +static void pipe_crc_new(data_t *data, enum pipe pipe) { igt_display_t *display = &data->display; if (data->pipe_crc) diff --git a/tests/nouveau_crc.c b/tests/nouveau_crc.c index 9013b7e53df8..b2f9f3bdd08d 100644 --- a/tests/nouveau_crc.c +++ b/tests/nouveau_crc.c @@ -31,7 +31,7 @@ IGT_TEST_DESCRIPTION( "such as context flipping."); typedef struct { - int pipe; + enum pipe pipe; int drm_fd; int nv_crc_dir; igt_display_t display; -- 2.52.0