From patchwork Wed Aug 2 22:54:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9877849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C51260360 for ; Wed, 2 Aug 2017 22:54:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E3A7287F8 for ; Wed, 2 Aug 2017 22:54:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7053828814; Wed, 2 Aug 2017 22:54:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C2EEF287F8 for ; Wed, 2 Aug 2017 22:54:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DEC3898EE; Wed, 2 Aug 2017 22:54:26 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 83394898EE for ; Wed, 2 Aug 2017 22:54:24 +0000 (UTC) Received: by mail-qk0-f194.google.com with SMTP id m84so6013799qki.5 for ; Wed, 02 Aug 2017 15:54:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2kKZxtOLI5gOOdjuiNDeGug/cEKDyONkn2twXtdVnEg=; b=bR84PZlAl13tLwssIX6plO5q7edrfwHM7hizN2nlD620MEoGG3LrtifPcKPND+rZ1g a+EBjOrQ2b0p4MN6tzqrvM3RQqpTLo7FLU9zLo3lp4XOKl80YGBK/7ZdOsZYtxh3BUnM 4Mrqf+VHVKSsiGu+++cYBAzinTR2KC6ScmQXCU+sa/Ad1IR+NS2tj+7bdir8amhKBbOb 1tExLIO/XGD5IRAEq+c5tIpzSzvWWVCGlYx1zc6bJnHiEIJzyUCqkOAhttU/bBsr2SQU mV8QsSbegx7oeBl3l6m36gnTUVRN63uTOXIS9FYZJnWlKjW19qi2zqQNr5CfC8x13EPj jGlg== X-Gm-Message-State: AIVw1135YAqv8bWAh0UeZscZoEL+ckM+3UYn3CJoGwsWiMtgHYbUVJjL q8k0KjZBLCqH1rNwyLg= X-Received: by 10.55.95.196 with SMTP id t187mr17392993qkb.255.1501714463473; Wed, 02 Aug 2017 15:54:23 -0700 (PDT) Received: from localhost.localdomain ([191.8.95.213]) by smtp.gmail.com with ESMTPSA id e32sm24890526qtb.63.2017.08.02.15.54.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 15:54:22 -0700 (PDT) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Date: Wed, 2 Aug 2017 19:54:17 -0300 Message-Id: <20170802225417.11653-1-gustavo@padovan.org> X-Mailer: git-send-email 2.9.4 Cc: Gustavo Padovan Subject: [Intel-gfx] [PATCH] tests/kms_cursor_legacy: use 'enum pipe' type instead of 'int' X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Signed-off-by: Gustavo Padovan Reviewed-by: Arkadiusz Hiler --- tests/kms_cursor_legacy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index 8180b04..15208f8 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -47,7 +47,7 @@ IGT_TEST_DESCRIPTION("Stress legacy cursor ioctl"); static void stress(igt_display_t *display, - int pipe, int num_children, unsigned mode, + enum pipe pipe, int num_children, unsigned mode, int timeout) { struct drm_mode_cursor arg; @@ -148,7 +148,7 @@ static void stress(igt_display_t *display, munmap(results, 4096); } -static igt_output_t *set_fb_on_crtc(igt_display_t *display, int pipe, struct igt_fb *fb_info) +static igt_output_t *set_fb_on_crtc(igt_display_t *display, enum pipe pipe, struct igt_fb *fb_info) { igt_output_t *output; @@ -464,7 +464,7 @@ static void flip(igt_display_t *display, igt_remove_fb(display->drm_fd, &cursor_fb2); } -static inline uint32_t pipe_select(int pipe) +static inline uint32_t pipe_select(enum pipe pipe) { if (pipe > 1) return pipe << DRM_VBLANK_HIGH_CRTC_SHIFT; @@ -474,7 +474,7 @@ static inline uint32_t pipe_select(int pipe) return 0; } -static unsigned get_vblank(int fd, int pipe, unsigned flags) +static unsigned get_vblank(int fd, enum pipe pipe, unsigned flags) { union drm_wait_vblank vbl;