Received: by 10.192.165.148 with SMTP id m20csp4754527imm; Tue, 24 Apr 2018 07:56:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx48WdPmSFqNX7B4yM7u88wJC0fmwGetk648RFW8XAMNCXwRdBiXFWTYNVBe0JCPtQ8kl3TpU X-Received: by 10.101.101.196 with SMTP id y4mr20578517pgv.129.1524581798649; Tue, 24 Apr 2018 07:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524581798; cv=none; d=google.com; s=arc-20160816; b=dnnTNE9nCS5IPMsZoPfxHqanT2WKoB0UmmaNRF2/hIz71Y7F/4ee8ZQ0RCm7fDlmXh B8ARbzFIPijsX6IgbD3WPkGwC2EwacJcpjhaWa0BGgUMj/SNxJCgawbeKGz404OvNhwZ fXh9cHRx85zoW9ZpMtlu0sDR7RuW50pOLLIk98BP6ioS26RP3dvnEfXceVJ+Dy63cJ06 qw4FirQdVW4dmYKzMPMhGVfaNg0Ny8CJosohI8aVSSabv18a/FRUk3NLpctkhJBIkLjF GvH44g/BSv2nmwRQ85KYJK0RY4SQFC8ceVLas+xYqAP0okXJNM4nWupLWwnM9E62HLKK wWqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=uikJyeRNLKPVcJnFfasyYXZcE10Erf2FzUvc80ljnsA=; b=FkbUKnbrXQ8TqnASQlBiTqk9fDj9McBrxFko59kOzxmfh2c2h6sIWzWo4cr2lzIsFQ 1/lGj1OC6JgYc2qmBJY6l162FEAHZx8NQMTt/6sZ8Vfm433dqeBgm8Eu0sHAvY0wbNzv 9Q4I8shFJt9XxHRj4yv4GN9oZlwWXXhaEMJrmpsDnNquJRqHn5F4ZAydMHOzyffWrEWc T9CHOTmpfSq010jH+6k13n0J2kyhsYz2XFiX7NzCk9xl8jzPc3oRq9SDCg0qN6l2zSLe lj34BRkZzEf8hw1wAOFTarbD01fZTY3HQVJDeu3w3FeShoR8ufpTbUA+CD9mu8KMrkxf ck4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jPEC3uZA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si12032852pgu.626.2018.04.24.07.56.22; Tue, 24 Apr 2018 07:56:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jPEC3uZA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933491AbeDXNPS (ORCPT + 99 others); Tue, 24 Apr 2018 09:15:18 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36468 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933415AbeDXNPN (ORCPT ); Tue, 24 Apr 2018 09:15:13 -0400 Received: by mail-wm0-f68.google.com with SMTP id n10so788351wmc.1 for ; Tue, 24 Apr 2018 06:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=uikJyeRNLKPVcJnFfasyYXZcE10Erf2FzUvc80ljnsA=; b=jPEC3uZA1a8N0oBfi/riUly84JY3m2QErVC2H2dOyoOTmvXyMA/zmNwjeJ2yVkN99I FXeiKDAkrjQ0sVY5CJ5lIN+UQSlkG5yZXTGTgS2W0FJtfTYUqzzQSDdLkj0OpyJC/KFa Th+x+4g2D7AxSJ+8BuyyiZingik4yiCXHODi5M71jJVm2A0YRDVD2CutyAxEJeGMT64X gO0yYtN8+jRFz0awcdILZtNtwblHIwUAIcOBi/Mfs2aSsWe82zfxnTpc1xtPtOXagLoi ioO7zjHPknozNu6vB6rLCUPz6tBZwg8UNO0bEvro8Zd55sHtfoEcH036AZG5ZmAMsHlZ ZI4g== 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=uikJyeRNLKPVcJnFfasyYXZcE10Erf2FzUvc80ljnsA=; b=Wdgye7jeqgYb+ZA7XBik8gelpElNSIqitm1WwOsRU+JdZ3vmF51JoK2PxJpQ0pMtSI ef7VSHDdWPMq5X7cr6KNd866yAn6nVRemST+2vFUWqafdbxZnsuCpt3tZcz+XI448i+z iRGJqdOOb+w/bXP6+jJ/cx28LxQXk+YzIaJqpb9mptgKZW653uPUX4IgBXF0Zsku5esi JhBBv4XyXWGx2ru6I2KV+jDbjpp1SG00HjqiAXs8j97nmCQVu9/V/wkoqfs2ZwBvs9Oe aqFVSRHIBdglA8BqzMrQxNGbkbnUuu3pa3lCjrhGDcsY2YwYWsEOLWkZZqU/+ZwyKB7Y bzQA== X-Gm-Message-State: ALQs6tDAz3nmEFky8xA2xlkZZIrxeBPKSU0kBAwAGpQtHSl3F4BcteRT g4aRepgvgWliYW/2CH8lh/ubOHnWYmQ= X-Received: by 10.80.204.8 with SMTP id m8mr33337190edi.116.1524575712278; Tue, 24 Apr 2018 06:15:12 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j17sm10543824ede.1.2018.04.24.06.15.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:11 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Ben Skeggs , David Airlie , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org Subject: [PATCH] drm/nouveau: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:15:10 +0200 Message-Id: <20180424131511.2261-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method struct drm_connector_helper_funcs::mode_valid is defined as returning an 'enum drm_mode_status' but the driver implementation for this method uses an 'int' for it. Fix this by using 'enum drm_mode_status' in the driver too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/nouveau/nouveau_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 6ed9cb053..52b425cdf 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -1005,7 +1005,7 @@ get_tmds_link_bandwidth(struct drm_connector *connector, bool hdmi) return 112000; } -static int +static enum drm_mode_status nouveau_connector_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { -- 2.17.0