Received: by 10.192.165.148 with SMTP id m20csp4782938imm; Tue, 24 Apr 2018 08:20:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49CfRKjErbtuozz3XGGQM3+mMU2z/f9ZBhKtZdyZG1JJy+FCckaWit2/WSEOu2wAv2kOh8z X-Received: by 10.101.65.77 with SMTP id x13mr10838601pgp.223.1524583222680; Tue, 24 Apr 2018 08:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583222; cv=none; d=google.com; s=arc-20160816; b=td438p8kB+dPxrpc+BAo7f3puQd7HMizamwvTytShQZjc2IKFSz6B8W68M2L1aNDZU reklxqJA2uSD2ZWzCYOZyPUq3mgYH6+RtFC6J1AQSR615Z4tezIFduLJKNWMug4N9LUj rpqC2EZok9xM/zc0268viYc0Ybk3LUzinMB+PxcRrwL6N96KQC/1Z1Ylybj/ryVz8nc7 XBerzgt//uMcmmBt7l6qGTj0tkqlFAqb6tXSXk0/mDSTaZIXk/HBNKqmaXjFhAi877BV WXzoGQaxP5IKX0MoNEtx0qbfyOt66R3Kz8WQG8V6vyIEEan25UqN1GX38NUjFvdP3owH buxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=R66Ji0noFeixG4A8SolX0OD6VGNdPZ3Xc6m+BEus8kA=; b=eGJBG1QudqyF9PfeLc6Js+AphOD6SNJE7jYngdGYq6XnMBKsuZDKpjX22LmkCHPUKO 4Mb/iArKQtb1HaPHHSpLYnkZTtBrdEGCBb+EeH7rzlLX6VeCW61k7ABvAvrVei/rfaGV 7JQyNOaQlXOdq6T+NBa5V7SRRzZBO6FOkgKZamJjRn0q8uWdOPJhSZnCP/DUu9Zr0DaI Ul6lQSCv4mukx33TyfHzaeUnZZE19lLI+JmClj9hpCjXAqcrjIScEg2W9o+9wWs/Y8m3 gYLClD7ZIrn2bFUsNh3V6QaQQFycxKvtWy5jhLiP4O4BrXynNbm192gkPqhQMukkGDUZ sAPw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si538717pgv.228.2018.04.24.08.19.52; Tue, 24 Apr 2018 08:20:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758116AbeDXNU1 (ORCPT + 99 others); Tue, 24 Apr 2018 09:20:27 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34553 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758064AbeDXNUX (ORCPT ); Tue, 24 Apr 2018 09:20:23 -0400 Received: by mail-wr0-f193.google.com with SMTP id p18-v6so30734252wrm.1 for ; Tue, 24 Apr 2018 06:20:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R66Ji0noFeixG4A8SolX0OD6VGNdPZ3Xc6m+BEus8kA=; b=VwQnCvNlwm9yjAFvN+AAO0cOaHfCQcd4DIvH/0T/erblH/wVBRme7QzGpaLtn2GILA ObVWQZPUbQcIAPIV9b4iL6N12eHcNq6AlTeV8EoT1r5hFyoLchxeOfaElIfHQVcamiMu QqRkbPU82ZTxzoufchA68KOeXXQbQEuclRbVpgPVcSY3D7uzS3K1hkkb5UGlvweOHEP4 Zd4WJ90LrOcnx/yGy4ZtctBu5SsNg9JuMFwENkMUxIdbVB599ATPnVgs049K2Bl3OM8s SKa2P3UPaTQKLoHlEffnFmn/SP9ppkMm5XN7JquBU6Bk/T2FtJ8UXGYW1/qsFMBbMdCY be+A== X-Gm-Message-State: ALQs6tD2oml+bCpyRVTB8vSzq0JlQ8cf83llSV4S37Shy3gHJIW2+s2s ePM2jG7Y1f2HbWvD17W34z25fw== X-Received: by 2002:adf:af28:: with SMTP id z37-v6mr20878058wrc.72.1524576022684; Tue, 24 Apr 2018 06:20:22 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id m6sm18485403wmb.9.2018.04.24.06.20.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:20:22 -0700 (PDT) Subject: Re: [PATCH] vboxvideo: fix mode_valid's return type To: Luc Van Oostenryck , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Cihangir Akturk , Daniel Vetter , Michael Thayer , Peter Rosin , Keith Packard , Paolo Cretaro , devel@driverdev.osuosl.org References: <20180424131532.2559-1-luc.vanoostenryck@gmail.com> From: Hans de Goede Message-ID: <5372cade-cc6f-3158-aa1b-59d2ffee341f@redhat.com> Date: Tue, 24 Apr 2018 15:20:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180424131532.2559-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 24-04-18 15:15, Luc Van Oostenryck wrote: > 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 Thank you for the patch, looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/staging/vboxvideo/vbox_mode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/vboxvideo/vbox_mode.c b/drivers/staging/vboxvideo/vbox_mode.c > index b265fe924..5c7ea2378 100644 > --- a/drivers/staging/vboxvideo/vbox_mode.c > +++ b/drivers/staging/vboxvideo/vbox_mode.c > @@ -573,7 +573,7 @@ static int vbox_get_modes(struct drm_connector *connector) > return num_modes; > } > > -static int vbox_mode_valid(struct drm_connector *connector, > +static enum drm_mode_status vbox_mode_valid(struct drm_connector *connector, > struct drm_display_mode *mode) > { > return MODE_OK; >