Received: by 10.192.165.148 with SMTP id m20csp4688837imm; Tue, 24 Apr 2018 06:57:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx48c8LorGsRa9n761Jlzq57Ih31jXUzatH2SGq+NkwGl4k9Ixq66YpJlgJwZ0gPkrq7cGChA X-Received: by 2002:a17:902:d205:: with SMTP id t5-v6mr18630997ply.234.1524578270689; Tue, 24 Apr 2018 06:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578270; cv=none; d=google.com; s=arc-20160816; b=uCjzacMiGsjVCb2fmu00MQo1JH+T4YLSg/3yTeLfDTvxUDW2UucelUr9Klqtu2TY1r Qsh+6nYQyxum5FaWYpG0SScVq5ScMw3afCkuz3BqSYAdOmNWUQ573ghMYuyT67045s5p 1ggUYxStnA519rJocsyIrOQhmPaBdxj7TLDqbTfZQt3Pz33MdveADSukWUOWPjF0FufO 4ottAQki7xSa3w25CYrwW0p1xtyKUmXYLV0tS8iWQ9sJAuczidpRVL5dpOptWMN55CsC k02pPElUX0BAJQUv5arAL+YIuKI/u/gsFJis0MidsxHLXyrfp8DYVPupVb64iN2Wlquu I+9w== 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=6wj3Am5qYtqS+KXt7c4VY1hMZB7hFFsZbVAwXaWwRnE=; b=kZo9M55Fe+KdxrwsxDhRoCmmGTRBda1teEHgcbQcyjfYkddSMAHBjYD3BlZyFIXrO7 iM5PieQIVCWsp40H9ZLzOBqCBPuSQGFLKCo0FRR6l68WM8Fg9faJIMi3AsKM9CFzB0Zb moTa+7ScIOCoRnY+yuWkcjtIiw7+AR5ovJFyp8qImN3/EuMOIpHW0logUNpLUBEAgmTE qLMUgHx9w5DmBKBEpk39s3JV49bVvCTG/5kEww0PQqY/YvNQzHVIK3Dq02MvhDMjcO6x GTRs9b0aN58D+81dO4wtQMjimPvZCu8BHJzYHVgQHefUGSTg/nkHCGqubrzsW/jrDM09 HFRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fMlQGIiw; 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 r6si241129pfi.147.2018.04.24.06.57.36; Tue, 24 Apr 2018 06:57:50 -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=fMlQGIiw; 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 S933623AbeDXNzp (ORCPT + 99 others); Tue, 24 Apr 2018 09:55:45 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33073 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933478AbeDXNPQ (ORCPT ); Tue, 24 Apr 2018 09:15:16 -0400 Received: by mail-wm0-f68.google.com with SMTP id x12so501944wmc.0 for ; Tue, 24 Apr 2018 06:15:15 -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=6wj3Am5qYtqS+KXt7c4VY1hMZB7hFFsZbVAwXaWwRnE=; b=fMlQGIiw3csG9TKbZb+8AnSPvLg30f8kE403CnFRMW0SKQLidn7DPMdH6PVSsz5FCn emP6jvxc/TbpuiC/niDwASqsh4xWCYMMp4PI/uupy9V6a+xOCWnPCRSSjjCRYcLKuHzi r8HQxTWFzr7LI/GIbZevTS0UqiuBYYKNLRgWU0iRnvWyAiNtsaeTlOt7/nfzBuwRdQWU BE9GTzUPXCRN2kD0gmHci2KtBNnxpC0+qyZvEZI0pbyHME87u/EQL1vw7GuOYlkyaPYK KPDoxdv/STwsEFoYh74ou6vFCIbxPDpQZhCpcUpp6e/2QvrDORiT/YvPIvAXMW1noISx LwDQ== 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=6wj3Am5qYtqS+KXt7c4VY1hMZB7hFFsZbVAwXaWwRnE=; b=lJRKMHcE3E8YxhZ794d6It4IU5CoFkp2MQjuXInuhcHHUxeQh7SIwrPdPNpfWCg/8u q24MVD79dwMfsTnwWugZU5YlB8AtQIFonK8plVviI5X33SVrEhD7Hcd+m0kAEXmqlouw KTbsRD9RpZl8ssUxWZu/B9kL5mixBnDLcv9WPzi3z4J67fLPsXxNEvyrhSfw0t/d49MQ /orfByN9wYu3RKF8aJqixxmyma8sJCFBvtti0Bnnq6RY5AHbdBwstBvjMiZF2WxZjt6y 0HyxrLyMz8TFwGOgPMwxmk/ijIR/7rVlZ0b2ZvMJsQRGde00T5PWDkhfdiS3z1Ya4TKn JQIA== X-Gm-Message-State: ALQs6tC3c8xpprPFpr9CPheMMNt/JvWTIj+H6Z4MJnLEdkyPMEMOuvO/ eDO5vAbKhoDkz106XyDoQkuD8GoVCDc= X-Received: by 10.80.171.130 with SMTP id u2mr32938672edc.163.1524575714690; Tue, 24 Apr 2018 06:15:14 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j89sm9073387edd.37.2018.04.24.06.15.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:14 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:15:13 +0200 Message-Id: <20180424131513.2311-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/radeon/radeon_connectors.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index df9469a8f..2aea2bdff 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -852,7 +852,7 @@ static int radeon_lvds_get_modes(struct drm_connector *connector) return ret; } -static int radeon_lvds_mode_valid(struct drm_connector *connector, +static enum drm_mode_status radeon_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_encoder *encoder = radeon_best_single_encoder(connector); @@ -1012,7 +1012,7 @@ static int radeon_vga_get_modes(struct drm_connector *connector) return ret; } -static int radeon_vga_mode_valid(struct drm_connector *connector, +static enum drm_mode_status radeon_vga_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_device *dev = connector->dev; @@ -1156,7 +1156,7 @@ static int radeon_tv_get_modes(struct drm_connector *connector) return 1; } -static int radeon_tv_mode_valid(struct drm_connector *connector, +static enum drm_mode_status radeon_tv_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { if ((mode->hdisplay > 1024) || (mode->vdisplay > 768)) @@ -1498,7 +1498,7 @@ static void radeon_dvi_force(struct drm_connector *connector) radeon_connector->use_digital = true; } -static int radeon_dvi_mode_valid(struct drm_connector *connector, +static enum drm_mode_status radeon_dvi_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_device *dev = connector->dev; @@ -1800,7 +1800,7 @@ radeon_dp_detect(struct drm_connector *connector, bool force) return ret; } -static int radeon_dp_mode_valid(struct drm_connector *connector, +static enum drm_mode_status radeon_dp_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_device *dev = connector->dev; -- 2.17.0