Received: by 10.192.165.148 with SMTP id m20csp4687968imm; Tue, 24 Apr 2018 06:56:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/C7Ezww3LW71GA+d0hOihpZeG7hacMw4rECMXoIdWdzilWJ0DfWXX9TsaZQ1aCIMYw6kzV X-Received: by 10.101.81.11 with SMTP id f11mr20403611pgq.137.1524578218287; Tue, 24 Apr 2018 06:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578218; cv=none; d=google.com; s=arc-20160816; b=QCbhuarFl6a15B6HEp3PL6KrMc2YhsN0heU6Xzx/lOGvdXLEJFet3aBRPvjPKOmu4Z treG6FDJbxXlmmogO8hRbrbvrWgjWjUAqXh5Hn8jwqeangxpWjC2PVAPLh0qH7ONbVYz +JntLH8JXFXBCRSFnpSTacYUuHX4Y87MIv7173qdjzWEfTLtOW+d5C/yzSGpHiV9h5Cr nKnnLDxHeYe4WD7SIgSlL4lrzk/zzaEww3RUA8mVGjbTbV8iQW/O9ShwWCdUqz89UfGx +DaxGNaIDGzylnTbHMsd4DgfdGn29yMsRTM93HBKPV1XQC90NHKx3cR2YO5NBz61/ete 2zmw== 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=FoS3xImC7RlIJPl5k7wrxktZs+WSndbEdKAva6kCiEM=; b=GcvicT6YCZQHe3mToyl3/Xil3TSO97zA9qgG5Wxer0/mnsARgSHONDGKbxzbACWtsP Taxnk0OdNhnP2vc3SAbAP0zsjYzOxeVewQ5c4pIYC7NJzaZ9R448BrnrRrrwnnWdGuru WTtVx3SjBb0Nni3TE/+1pwjej7e5YiO/rEIfLQY1E2c4KETM6cZ5zztPVyjieAz7QBiP PDI6UMNJhSyfQvYEGPgwAHqfEVgLk4WLpilfUjkTVCyIQQfvoDcsNN4nHdzpQSUZrpmL drn8bPPbr2NOItFwbftNjNh761XF56ZvSeIdaTx8u7mDbgsOaEEEsb4/YDDzRDIHXjGu NV1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C3Cr/bUE; 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 l184si10776255pgl.38.2018.04.24.06.56.44; Tue, 24 Apr 2018 06:56:58 -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=C3Cr/bUE; 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 S933529AbeDXNPm (ORCPT + 99 others); Tue, 24 Apr 2018 09:15:42 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:50662 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932707AbeDXNPf (ORCPT ); Tue, 24 Apr 2018 09:15:35 -0400 Received: by mail-wm0-f68.google.com with SMTP id t67so896299wmt.0 for ; Tue, 24 Apr 2018 06:15:34 -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=FoS3xImC7RlIJPl5k7wrxktZs+WSndbEdKAva6kCiEM=; b=C3Cr/bUESOO8RXNb0W+sZMjIS1L8UJ9aNFfnG1iIuCw5LGZ2yxWXVykorpF7r2JI3u 6a6ZDUwRUFGQk1gdzyu0zo3SvjPyAZMtt/qDmaF4j7n+tGrDuItbWn6yYXrQyJLL6WH1 5umNqNZVZ7zj1YElRO7r/3WvA8zAl8Yvw2Hoz/zN8byMr0pizuGoE+RoR9eSFYTwyBH1 BZN7rDpRA2UHIYDuE06/GRQ106WtFCwF5b/fitFiKaqBtnUIqaMvwfw2A9cYk0MsNSo2 HdHOVC8+ZEWP7F3sGuYdWqI81fspbNC3oHiEYRP87iMu1uwg31YAJX3Nlh0qafUlWd5H qeDA== 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=FoS3xImC7RlIJPl5k7wrxktZs+WSndbEdKAva6kCiEM=; b=Z+U39og9Wg96F4DK/Mp/UugrbkWET3HN+PkzLxDz7Xftqm1dkLwEKOLXYWUnW41ZVb 8fd3usO/2Gx6kViNiM9ZETp8wlWLtv6n74lFM/RQ11zcpwyiq9wyy4jPYi7PMtDzgSDl 1xnKel58MuZU2kMA8R3+BNYs8I8CQ9YqmnFBfRbf8NBXjf0Xd+M/Py2XUVdjXLckIyHM K3A42X2T5FGiEbapcUg3n13k1N7Opsx1IpxDafsdHdrVjq5dgLcx7y6UuA0EkrRLvHQA rzK4TLg2qwS3swFfsNa75Tty6Z/BJ9HOuSmbVrhzF7Qg0WfXZKXxZ8CA7iD2mU1A+apg CEWQ== X-Gm-Message-State: ALQs6tBjMDlGT0T0hsAgJcHdXysGHwAUGQ2vGT+mP2EV/MloWThC/64r 8X4moKsgcFUAGVi4Vh48GYnhynWuWEQ= X-Received: by 10.80.174.134 with SMTP id e6mr32914645edd.285.1524575733783; Tue, 24 Apr 2018 06:15:33 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id f11sm8598100edf.68.2018.04.24.06.15.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:33 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Greg Kroah-Hartman , Hans de Goede , Cihangir Akturk , Daniel Vetter , Michael Thayer , Peter Rosin , Keith Packard , Paolo Cretaro , devel@driverdev.osuosl.org Subject: [PATCH] vboxvideo: fix mode_valid's return type Date: Tue, 24 Apr 2018 15:15:26 +0200 Message-Id: <20180424131532.2559-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/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; -- 2.17.0