From patchwork Sun Apr 1 06:05:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10320683 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 343E060390 for ; Tue, 3 Apr 2018 07:16:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C22E285BE for ; Tue, 3 Apr 2018 07:16:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10F49289B6; Tue, 3 Apr 2018 07:16:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F295285BE for ; Tue, 3 Apr 2018 07:16:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4C7A6E2E8; Tue, 3 Apr 2018 07:16:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5902989F01; Sun, 1 Apr 2018 06:05:32 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id b127so19968638wmf.5; Sat, 31 Mar 2018 23:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=qcEdFhw7RUHHouupcHuABfJh8GDu9DkP6g+8mJXNkfc=; b=TScjOmG46kTCAu1ipZV49ep86Xy18QqrcsOleBkzw2GOQZ/CbIcN5d6DpKYwdW9wKC m05M6J4Gte3Ct+kDSSXREDAbx2nd+h7P1tGjdPSKtspEOwLFxxaJlfGmzvDQrYoWdB6I WCk0qDOmwRUaffbx3aYFM46Oqf0Y81WLjJXmgA8ecrpkVDDad0+u3NVCp8WOxhuFZ+MJ 6HE6MoRYyZMFXYvScGSfEHY/VcgyCaIqkm/xBTedggmKAjccb+/rfUg0wVxd3cN1DkF6 uvLLZ93OhHPcM7vBSr59E+JiFquRKeZsrW+A3D70V3Kg9/nKq0aXN05BtDNOYDby+u7W Ihlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=qcEdFhw7RUHHouupcHuABfJh8GDu9DkP6g+8mJXNkfc=; b=bYctJXg4mItOk+bkZggG/pSGgWUeq4YeNB+5EIt2UcnfuojKnPtmJOutMDHplR4hA4 0q12myD7+g9blFxhWmoXp3mWDPwkZLTOFyXV4p+cHKzkjHn88udtnLLS6OscIIxbE+vv QquIXQvKyU5G25xfI8WSbk2DpBo5GyiGsaXOheIUzX9Eg9omisnKMDYEy3VTWgjLnyny tuTGc0KrnTPoDzOgJQzf9z0PHY+TntBNl1Yb1dapEkPZqnpRlwSvkuXS5WInVT85Kncz MaN2DkvDN4z0My9/+qKd9ntVq54n61LKIOrvStuzmYEGXM3XLKinYeuoda0ud0VKgKNd es3g== X-Gm-Message-State: AElRT7G9h/rcw2LjXBbscMRmkcUdhBmFuE4ujW7F3lNcgDeEInKehFec XHmnKmcYVt18jM0ExcLmo4Q= X-Google-Smtp-Source: AIpwx4/TrbdsO8pXkw6TIRsxT7DaivM+L1B2qSEq8DAF7x9Nz6P3dVwy04qXdVFpA5CtvwaQh29vNA== X-Received: by 10.80.148.167 with SMTP id s36mr8645990eda.144.1522562730641; Sat, 31 Mar 2018 23:05:30 -0700 (PDT) Received: from flashbox ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id 4sm7068968edx.8.2018.03.31.23.05.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 31 Mar 2018 23:05:29 -0700 (PDT) Date: Sat, 31 Mar 2018 23:05:27 -0700 From: Nathan Chancellor To: Rob Clark Subject: [PATCH] drm/msm/dsi: Fix Clang enum-conversion warning in dsi_get_cmd_fmt Message-ID: <20180401060527.GA22838@flashbox> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Mailman-Approved-At: Tue, 03 Apr 2018 07:16:35 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, natechancellor@gmail.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Clang warns this value doesn't match what the function's return type is and it's right. This appears to be a copy paste error from dsi_get_vid_fmt. ../drivers/gpu/drm/msm/dsi/dsi_host.c:743:35: warning: implicit conversion from enumeration type 'enum dsi_vid_dst_format' to different enumeration type 'enum dsi_cmd_dst_format' [-Wenum-conversion] case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666; ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~ Fixes: a689554ba6ed ("drm/msm: Initial add DSI connector support") Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 0f7324a686ca..d729b2b4b66d 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -740,7 +740,7 @@ static inline enum dsi_cmd_dst_format dsi_get_cmd_fmt( switch (mipi_fmt) { case MIPI_DSI_FMT_RGB888: return CMD_DST_FORMAT_RGB888; case MIPI_DSI_FMT_RGB666_PACKED: - case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666; + case MIPI_DSI_FMT_RGB666: return CMD_DST_FORMAT_RGB666; case MIPI_DSI_FMT_RGB565: return CMD_DST_FORMAT_RGB565; default: return CMD_DST_FORMAT_RGB888; }