Received: by 10.192.165.148 with SMTP id m20csp4689089imm; Tue, 24 Apr 2018 06:58:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx489sUsM8Sf0Hbf81pYc51iDyVpfY44KyEbobqsCpvdLoOBLz02AvkDGZTVGcSOE7Ltu5bK0 X-Received: by 10.99.111.2 with SMTP id k2mr20650226pgc.445.1524578285220; Tue, 24 Apr 2018 06:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578285; cv=none; d=google.com; s=arc-20160816; b=dt0Ye6cQRK9/DLPqkkz74FuQz9ga7gFJndSWzsRqGGFmGvC4XAffGSuCA1iD8XZASF qp+LWWfDwCQyG+xJgAHE5Uze32vKWJkutjZ2P0J1EMtL/HFAomLz6PNYYqAFTiA5L2pT +VDiy67xWkfQy4bSSGtdJseQf3OB0kij8MRRHC743klFxnfHxf0/KVCeOhg0h+wOCQ0p vh2CfWLJ9H4ZurPrcffxmgXlY4IBGIJn0GZhUGblLURaehlrC/Awtg0v8DCxpZxjKBEZ SjnYwaTIvYOJ4B2r9yFq6sKIpJ+boI4V4zouh2qVCjKhXtKIFi/Sy+HZyRp97cC7w4Tg I9Gg== 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=0nxWbZiAmR3pklhsZChuLU2O8YnRrEqZOb3XRoOaPVE=; b=sTqZX5lOPWepZY6UFqvBJphCY/bH/SltR538/k28GH5Ho0fBC9aRyk4J4gkGJfFvoz hZbrQ5NdqPhHlM7qOxqDqSoXYrcVCDyLwBd8rH4+WEbuo6NAq0NPBWnTjQ9q1VcGTCMC DbBlSb6N1l4N4g2ak/QV+c4ShN/SRTqe2KwxdCqHlGxTxKGidANEyhkiQElj8CCr3pbO 0Prsk6gpHmrK8twTC2vUYtcbqT/6ig5SdSFqL9x7/3A61FkZANIdTKHJogDJesMDxydr 0k+lgNTHLZJkE67tebwr1TxHcnbYnpoT8yhbn8VwZ5KN3ecTvL/rW8tWinIW0Nors/nQ lP2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EEQCGKA4; 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 l184si10776255pgl.38.2018.04.24.06.57.50; Tue, 24 Apr 2018 06:58:05 -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=EEQCGKA4; 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 S933588AbeDXN4H (ORCPT + 99 others); Tue, 24 Apr 2018 09:56:07 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36456 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933369AbeDXNPL (ORCPT ); Tue, 24 Apr 2018 09:15:11 -0400 Received: by mail-wm0-f65.google.com with SMTP id n10so788093wmc.1 for ; Tue, 24 Apr 2018 06:15:10 -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=0nxWbZiAmR3pklhsZChuLU2O8YnRrEqZOb3XRoOaPVE=; b=EEQCGKA42blDRruULxJZguPoYlRARpkB9+rWem0ZdKMTHtc2iaC5pKXYR7LsLz2cDv F8cf3LN3w+p6FKHtgolfeQWh58jxNuaZM5lyAg/fBuKUyz2UpNS/7hvIj6ea6eHjUe33 OQE12VQFGQQOII1lTlfRMwqwLaX6rWaWtlksKjfGrz7TYmmF0iaO7B6zfKJS96BdoL+1 k+zhkNlZDuVao3+kUP7ahjglpafYkI9FwYyjhwo5XoYbiCfPAOTbFSlOO+NX5xQSBqTx 1W4XiVmrusu2oLfNKJehJ9rATBv7jRQSvrwiYyBWpRU73VjIb18LvniL1/5RaMXg69Qy LaBA== 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=0nxWbZiAmR3pklhsZChuLU2O8YnRrEqZOb3XRoOaPVE=; b=ACdE0NXzmoQFxqPHjUNChVhw1ygRIMFMhSQYf+cje06iaGf6OxE87PY9vpIzmWJut+ NZZ2NhXUJeNLgRy3w/NKcyv6nJX+60czIdyHsX78BOQSvqYGdRdriwXZfiRZ0oylCz60 27e4/6dtFeAdmSYoWO19cAi7HZbMiYPOaoqavV77hl4tFYCn2i97y7kNQiuAK8zTSz/E EtbRZqlDYIejD54ggnFFS1fzxreSgkVs4DFNK4tOg86QsYaZiQnnqJ2LDVA5mp0TNpPT 2go8Xro69mgeQ81pcl9RF0QWs/0+WL0TvM3aB+7DtMGPTSsRujInpP0aMwRTSUT3h6dF /rwQ== X-Gm-Message-State: ALQs6tBH5CGppN2pN6YkmNFhGC7Px3t7Q2jIdjg4RpFSqR7VRyDv/FH8 QvAFnn/s3/0Gt4dRCNUgDAL7XHPUifI= X-Received: by 10.167.213.209 with SMTP id d17mr22671009eds.312.1524575710117; Tue, 24 Apr 2018 06:15:10 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id t1sm1450949edq.84.2018.04.24.06.15.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:09 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Dave Airlie , David Airlie , Daniel Vetter , Peter Rosin , Sean Paul , Keith Packard , Dan Carpenter , Mathieu Larouche , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/mgag200: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:15:06 +0200 Message-Id: <20180424131508.2210-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/mgag200/mgag200_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index fb50a9dda..8918539a1 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -1586,7 +1586,7 @@ static uint32_t mga_vga_calculate_mode_bandwidth(struct drm_display_mode *mode, #define MODE_BANDWIDTH MODE_BAD -static int mga_vga_mode_valid(struct drm_connector *connector, +static enum drm_mode_status mga_vga_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_device *dev = connector->dev; -- 2.17.0