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: 10319073 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 D6A5C60375 for ; Sun, 1 Apr 2018 06:05:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B40F028E54 for ; Sun, 1 Apr 2018 06:05:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8A61291BC; Sun, 1 Apr 2018 06:05:34 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CC5128E54 for ; Sun, 1 Apr 2018 06:05:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750827AbeDAGFc (ORCPT ); Sun, 1 Apr 2018 02:05:32 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51833 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbeDAGFc (ORCPT ); Sun, 1 Apr 2018 02:05:32 -0400 Received: by mail-wm0-f68.google.com with SMTP id v21so20855479wmc.1 for ; Sat, 31 Mar 2018 23:05:31 -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=LQKu4S8emKntEmtIajoEM8qWOryZ8WmXdGk/r6w/z35g89yUIfKGjf932Ket7bNuQM EIZRvfRsNPK8Go1A3f7omMAPc9/rdAVFMncd5xOPn2k4SY+PoSAF9SmFwaMko24O1Coz VAbmBm73uyM6X7cBr/jdUYO8MNOZ96FsMV3VeZoUckm2VseaY4+qGxGDEAqWW/St3yAg DldpxR8fi7yrm5PgJZ0xO6Vjr17pjuHpgrF1lZ0scGtUHX2waLEvHL/xQCIXEcBJWrec vlB2Li4jWvv4VF2hncYsMKJ9ITvPuysOZdjyKGvivBQjiqk3aWulYNOHY9TOuuWxhavH VX1w== X-Gm-Message-State: AElRT7F4WSn6r2ci4ZZM3yJKFYMew/coor2S2+dgyov0WZBVK8I99g4r O6U3+8ZQ4nzuYLX30Qyn5umB6NQE 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 Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, natechancellor@gmail.com 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) Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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; }