Received: by 10.192.165.148 with SMTP id m20csp4690760imm; Tue, 24 Apr 2018 06:59:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4++QgjC/4LaQ920I/vaSYiB97I3Zze6zTvj2rvabwBpIq4EAcrlE+rVQEQkxn4uoG6vgnHf X-Received: by 10.99.112.82 with SMTP id a18mr11209995pgn.148.1524578384488; Tue, 24 Apr 2018 06:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578384; cv=none; d=google.com; s=arc-20160816; b=oQ8Tpx8qJDkT8WGgl38paiuJo/lSODZOq+kjMgQADXirxnfKVLzEyeroLBWDUpvP40 JtOng4pD3zTFPf8/+OkahTvuwSmucgNg6M+ajcpBTOPpQsOCwz3foDtHQxBOMztG2Hvt glNK8Tgc46Wt62G+LNo7aSQZ4Vnhs5n6tyhRJuMC0yEe6qwYQuGlc4Itcf1DoKrKrRYJ UaX9eg9/OV+Jqgd5xxjmhd2cISgiYZBIQ14xwHDGWcrqzQEp9M6mUcdz+bteeVixhceV qUbMslnlZpfCxJzzK+I6dimk4XZ0VA+Y1w6E3KjacfcKGcLo6/zzdN82MpqILI1hufdS 6vxw== 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=v1uNW9HLLKtuteKa1pHuFdz02TmQSMIc6U34QqJBvvk=; b=d5xnCKGU65BcIlNeWIfoVwjQC3DUgtBbSsZTajgre1ek7xn9dut5M1C3TGJOMjzZsy k0Njl0Qy0OURtrI1XqGAzwP2lt/wgO9jne+uolpPGuTM8oREEpXTCuR69Zk42sCitLuf Yp2tM2ok2hpv7uUS33RdMec2FwDkEf0ht8DsrEsVqsBYokQfESC/EWmxnHlz2dM/ukkb 1IcXEGyyK6Q7qVRXcCj+grbmxO1uu2K3ls969vu0TZx18HkMQNIQZW+MXFnz0uY7oMiY 2pOUutBZygK1UPJmXCDDO+RW/MN9A2JnyOWeKp0g9CttqPdBapR24v7RGCFK52ErZxiF j0aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r7BV60Kg; 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 g14si11664388pgn.227.2018.04.24.06.59.30; Tue, 24 Apr 2018 06:59:44 -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=r7BV60Kg; 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 S1758228AbeDXN5p (ORCPT + 99 others); Tue, 24 Apr 2018 09:57:45 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38329 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933436AbeDXNPC (ORCPT ); Tue, 24 Apr 2018 09:15:02 -0400 Received: by mail-wm0-f68.google.com with SMTP id i3so791987wmf.3 for ; Tue, 24 Apr 2018 06:15:02 -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=v1uNW9HLLKtuteKa1pHuFdz02TmQSMIc6U34QqJBvvk=; b=r7BV60KgKr7nCGCxL0g7CkywkGyNps+9jEkTXeRdZTi4nk422qzaqsZvPN22U+d5N8 QKKdVb4ewCOdjIxfsLiR5OO3xB8lgbQcw/4TjGonjHyb1mJ8/tGB//S7AZHtwNnJ70Ls ArP0kMbCcIufuwj1zywGHYhvlZe8UdAAHuGheaJHBG7odkEzrM2lGqWmbynWmocdN0Me 9JR8cFU2vgS6lr9mFdI9MJsxtWYpzvXGSciO8fghSxROuwZRJLIjjBd58m2txsbDDWps fY1IXZq60Zq+4QJIZbNqt9AkU+YVAmPND+WR/mx0SuolJdlcpF0RCpEKxaN+ZweZufad WdCw== 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=v1uNW9HLLKtuteKa1pHuFdz02TmQSMIc6U34QqJBvvk=; b=DXDpYVXLnCyzP/e8za/ASmVMcOtr1yvcbgxb3KaUOuovHdIQGh5hqvLieEjKrZhrda 9/1IqCvSBgkNKdY8Rz3sEMVNIy4FL64a1LDdi7+H95slJkgDJSihkkrTdp6dvGhIBRY7 Eaj55LC4WFDQHT0TDZMhycx3Fzetf/X7le8OuUXt5xBN5bHnDK0Le8bUsz8wvxJFXTIT K3VySVULcEpnXr7wwce1eKLTbtYr/13jME94Xsyn68D5+Bt71mhzsfeokyAGl2ppK1qa 5S6a4Z1aNnHZzawrgFhHCisAuq0B2P4YCW+hzuLLt9bWXymu7kqKeKfv7r47S/83SUt+ 0cMg== X-Gm-Message-State: ALQs6tB6gaHoq91RZecUkqb3gww2IDGGydQiroxvIlLLkZwzEch5ceR4 gTTKt63dPHSmQkGrp3bpqTYiVqUO X-Received: by 10.80.148.156 with SMTP id s28mr33044186eda.201.1524575701487; Tue, 24 Apr 2018 06:15:01 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id w1sm9228183edf.57.2018.04.24.06.15.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:00 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/i915: fix intel_dvo_dev_ops::mode_valid's return type Date: Tue, 24 Apr 2018 15:14:59 +0200 Message-Id: <20180424131500.2110-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 All implementations of the method intel_dvo_dev_ops::mode_valid(), as well as the underlying struct drm_connector_helper_funcs::mode_valid() use 'enum drm_mode_status' for the method's return type but the declaration of intel_dvo_dev_ops::mode_valid() uses an 'int' for it. Fix this by using 'enum drm_mode_status' for the declaration too. Signed-off-by: Luc Van Oostenryck --- drivers/gpu/drm/i915/dvo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/dvo.h b/drivers/gpu/drm/i915/dvo.h index 5e6a3013d..b6e143ebc 100644 --- a/drivers/gpu/drm/i915/dvo.h +++ b/drivers/gpu/drm/i915/dvo.h @@ -74,7 +74,7 @@ struct intel_dvo_dev_ops { * * \return MODE_OK if the mode is valid, or another MODE_* otherwise. */ - int (*mode_valid)(struct intel_dvo_device *dvo, + enum drm_mode_status (*mode_valid)(struct intel_dvo_device *dvo, struct drm_display_mode *mode); /* -- 2.17.0