Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1115866imm; Wed, 1 Aug 2018 10:26:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfCqlsuP6O5FIuLhdIJc4rTfbnuBcvlEb+3KTR7zDzhUUd3ZW5LwyDD6lFbGZDmhuq+Wx6f X-Received: by 2002:a63:f751:: with SMTP id f17-v6mr205727pgk.410.1533144387280; Wed, 01 Aug 2018 10:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144387; cv=none; d=google.com; s=arc-20160816; b=JP7qrfLRSrF+cb29c7JZ54m1jAyJgDB7qJ5eBxyrYBV3280Bdshr2SdcZVG0RL2fCG 6/f4bdyoJl/zFLBcktTfGv1c2UyqldL4BrIPDNaA/3V33WrJYAFeQoTVlMbNTdVBJpL3 cHexwM8F2YBbFlEAj9y5prkcWiqyhy6Me56In65hhL7gkOoDQwGv50RopiBqp8VqI73c Kr3TfiwyaCvCPj44ylEJLgDE2XgvQKo31d4HWvm8oFQLArKov/lHVmGXqxrU8yhwnXuS 1cuadGHn7dbueccAXvpwafKPxEdSt3dfl80ahxwOfxAmX6t75fpqm9x0zRbtWH1UnUJr NdNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OA8XWiJwkEVjidVGktxKg4jXH8UOewE0HkQR9/Z4jW4=; b=a73U6GXUC9PRPqMsKROT6+NGfdAO0+8dEy/xpdu47Uo4Crx1KdFYEqiTpSHe/YXwRI byoSqOihRGtsxS5qXW5ge3tGocK0gPvEPKzq7iTTNxcxKIPR4j7HWwHYTaANqZuWnsgz odeNBoI3b5nIKv/8o2MrDnuwaI5kRlSdoYFxzwdarJ2yz1hZISxifvioJl457L8w6uTj xHG+1ELsaC2dvXVrHr0vxvRCxwBWUPhF+xSBVoOboenNEPJ2Ev9ZICNZLbPsBhJoGeqE PZUduqpYh/KHGe0TTgfc5CHbm8Ki+uBIfXRDUgdDEyUI6Mcon3k+O8kKsuc0Tbsukgwm ymeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s29-v6si17702680pfj.43.2018.08.01.10.26.12; Wed, 01 Aug 2018 10:26:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406420AbeHATK3 (ORCPT + 99 others); Wed, 1 Aug 2018 15:10:29 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51006 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389790AbeHATK2 (ORCPT ); Wed, 1 Aug 2018 15:10:28 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4CCA1D2F; Wed, 1 Aug 2018 17:23:46 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Luc Van Oostenryck , Daniel Vetter , Sasha Levin Subject: [PATCH 4.14 188/246] drm/gma500: fix psb_intel_lvds_mode_valid()s return type Date: Wed, 1 Aug 2018 18:51:38 +0200 Message-Id: <20180801165020.711203656@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Luc Van Oostenryck [ Upstream commit 2ea009095c6e7396915a1d0dd480c41f02985f79 ] 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, psb_intel_lvds_mode_valid(), uses an 'int' for it. Fix this by using 'enum drm_mode_status' for psb_intel_lvds_mode_valid(). Signed-off-by: Luc Van Oostenryck Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20180424131458.2060-1-luc.vanoostenryck@gmail.com Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/gma500/psb_intel_drv.h | 2 +- drivers/gpu/drm/gma500/psb_intel_lvds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/gma500/psb_intel_drv.h +++ b/drivers/gpu/drm/gma500/psb_intel_drv.h @@ -255,7 +255,7 @@ extern int intelfb_remove(struct drm_dev extern bool psb_intel_lvds_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode); -extern int psb_intel_lvds_mode_valid(struct drm_connector *connector, +extern enum drm_mode_status psb_intel_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode); extern int psb_intel_lvds_set_property(struct drm_connector *connector, struct drm_property *property, --- a/drivers/gpu/drm/gma500/psb_intel_lvds.c +++ b/drivers/gpu/drm/gma500/psb_intel_lvds.c @@ -343,7 +343,7 @@ static void psb_intel_lvds_restore(struc } } -int psb_intel_lvds_mode_valid(struct drm_connector *connector, +enum drm_mode_status psb_intel_lvds_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { struct drm_psb_private *dev_priv = connector->dev->dev_private;