Received: by 10.192.165.148 with SMTP id m20csp4775316imm; Tue, 24 Apr 2018 08:13:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpCxa72IginLp/RO2GVPCZaQ8yw6OZqUw+oEYfB9x1YvQKwyCcZ550ZEs9s/Yrrvj7x4d1e X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr1204192pll.246.1524582819994; Tue, 24 Apr 2018 08:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524582819; cv=none; d=google.com; s=arc-20160816; b=TeOoCBOCZk55JEXw0tdhNvE8gBQ21dQhPCVZeJ8t4agMCgkKawXD02RH7oMA1aSMHb tmvEN4ilhccMzcq5p2hLe/NLW7J4WTdwS3uPhm+nbt/E4mc1YdY79Vs8u9Zosm7INb8h 2C94RgZs31zRGQWgp/16DhEFB3aSUjFIO8niLs3EU1DHW++3K2q6XQgyxj4NBllzX0a5 KQ2WYrkDfoRLBoDUb5VzLltE7FRIhVpvYRYIIS8Y6yg32+E/k7A6/ANR8o6kJgh89pQy uLTT0KQrfQ2pAfigbOf4vTIRTdmo1RYFzJGup+sJDDzX6LjHPPGBnNF/DMjAJ0Mo1jkm fKzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=BcoJsorj0bGNwdGVw3f1pwv1qNZBmWGUCJYG3w65Vow=; b=vIY6SujV7OglIF+Zv7Gyf0BCPPYanbyJei0rk6GxrIhvjDwjQqmjoKuYXg52P8WFgL ZutTqEUBpVqNzusZA0ZcsI9zwo/+YgCVRxbiXQ2nqiunF5zjUO+tqJ28HTZOxMj4qfqV opJe5iepCR641n2VD82cfIJH57J6oCxnDwKL/z3NUt0EWlr1FKbh3ieBPW3Af+tMR0rI wGVqQ2UiunjJecWEp/3r6QjBZ8nN7md6ofVBt/M3/PZJWVSihQRSDlbcpAKxUcZ5cG87 cOUmLwTXnS0vWxQlWp17+XgERS4DPRTaA/UChqDWnx8jfSO0fLgdpnL+1WmKufsXdePy nFKw== 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 a23si8661977pgv.429.2018.04.24.08.13.23; Tue, 24 Apr 2018 08:13:39 -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 S1751460AbeDXPLw (ORCPT + 99 others); Tue, 24 Apr 2018 11:11:52 -0400 Received: from mga07.intel.com ([134.134.136.100]:41047 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbeDXPLw (ORCPT ); Tue, 24 Apr 2018 11:11:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 08:11:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,323,1520924400"; d="scan'208";a="49535183" Received: from vmfitzsi-mobl.ger.corp.intel.com (HELO localhost) ([10.252.26.181]) by fmsmga001.fm.intel.com with ESMTP; 24 Apr 2018 08:11:48 -0700 From: Jani Nikula To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/i915: fix intel_dvo_dev_ops::mode_valid's return type In-Reply-To: <20180424131500.2110-1-luc.vanoostenryck@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20180424131500.2110-1-luc.vanoostenryck@gmail.com> Date: Tue, 24 Apr 2018 18:11:47 +0300 Message-ID: <87in8gvdu4.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Apr 2018, Luc Van Oostenryck wrote: > 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); Please adjust the alignment here as well. With that, Reviewed-by: Jani Nikula Oh, and as far as lists go, intel-gfx is sufficient. > > /* -- Jani Nikula, Intel Open Source Technology Center