From patchwork Wed May 22 20:21:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10956691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5FFCD1708 for ; Wed, 22 May 2019 20:22:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6874720121 for ; Wed, 22 May 2019 20:22:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C78F200E7; Wed, 22 May 2019 20:22:18 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03E85200E7 for ; Wed, 22 May 2019 20:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9LgMDEz84M3RGkCuaAtgDFUOWKCjw2Xiic3t9qOJTb0=; b=lJNMk8eJUBvp0q ACUCGfN33MXq6T4UIEvHd3zFtHCNGs7pAPIgK2Vq3vkq2BLVVGT9Dkg4uYCmMd9nmXPrhL1gJ9LwN I9caAIrQTHD+nF0U2y+G5zFDBMYTeEZIs7Acea+gWLzsvjiFZjh32uzeSlQUVFvBdnP/2bAskM+YX Gt9eY4a9nSu6VQ+DZgxJxTFP2UKayFUh7lj8xASmq+CCiOYJ0mplmchr3wsaxTyWXivE8hzA6dRrY 9U90qtvoBUunFU7P+5+eeCnS1wwFdK3IVW3kpWyZxV5lxkTRRVdA1qGtlFdB6h/Ic26vNFeMwhRcY 8X5sGP9u6xl61MX/JbdQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTXkf-0001ip-MP; Wed, 22 May 2019 20:22:17 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTXkZ-0001hu-RB for linux-mediatek@lists.infradead.org; Wed, 22 May 2019 20:22:16 +0000 Received: by mail-qk1-x743.google.com with SMTP id a64so2376370qkg.5 for ; Wed, 22 May 2019 13:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zmy7j+V2kfqtYYz1WddkagE0DXlderr4yqX5VeQ0jxE=; b=Wv7fYjcBuPUYR9MTgyDgURjkjHlUrU+vf2Rjh5kikh+aeZcuBsA45dQS0W772uQXyR wJy78nYNEK2ip1KWnGM2LE22p5ty2akRWDyauopLTLGmMOimVzjTRVfFCtf1un/wRAhF H39a8cuaCC555EA90d9ghjrpvYjUMsCiJYkUByOaPQzw83C2xylldr98kJUHCtnGmcLy ZKCvmW1B9b0npeIxz4U15fKa2mrqGczcA47ac45qCszR0woi68ptU/PdMxnm5xrBbvIY jqHC27QIKbDoyUxjHvLVb6+EEAh2qcJtkbObfDMEZWzFgOk5einIXqDBdrI/NOjAONzY Br6Q== 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:mime-version :content-transfer-encoding; bh=zmy7j+V2kfqtYYz1WddkagE0DXlderr4yqX5VeQ0jxE=; b=MynbTT61in/rmt5cKJOVbMbZrbzaTk2yurokjlFdw5QY3+HLFLu+K9H80LGTXxdQMp da0wpPzpCP5sVMBssJE8e3DTDfXwvLqUlrxs0+cpJgihinkVpLZHd6y2sfkqmPVe3E+J UC/6gnWHOuUMuHELIFC6dYiAfPvMpEm4S8jj7PpjoddtskwX1vuL4Fwkx+GlNiIosSGz s4k5hWr8dfUNLKV9GsjnPjxwZ+/785JQgBplQVua4FGepdPOkB5pmfONyn/MtcoEldUe ZTHFOZs3TJMsM8fAqHHHU7444a5wFHjsoUdhLGWVVdwD7N0+H+eFvymy4WEPcEOQsKYG XJzw== X-Gm-Message-State: APjAAAX75Vusuzdw2Oc+J/vTar0J049s9HUfefwKREMPiQlPxA/7rh/B WQy2i8II+sqKk1bV4MwnMVarfg== X-Google-Smtp-Source: APXvYqyr5JtWJBxoh41hbTAkOsXHCvEtb3C3/m7M5P7Ry9zlF0gq04xYFw3DvF+dqaIxFQ/JKexWLA== X-Received: by 2002:a05:620a:141c:: with SMTP id d28mr40026915qkj.18.1558556529503; Wed, 22 May 2019 13:22:09 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id t187sm4546863qkh.10.2019.05.22.13.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 13:22:09 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/mediatek: Fix warning about unhandled enum value Date: Wed, 22 May 2019 16:21:54 -0400 Message-Id: <20190522202207.223110-1-sean@poorly.run> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190522_132215_383986_05CD1578 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, Philipp Zabel , Bartlomiej Zolnierkiewicz , Maxime Ripard , Maarten Lankhorst , Hans Verkuil , David Airlie , Uma Shankar , Sean Paul , Matthias Brugger , Daniel Vetter , CK Hu , linux-mediatek@lists.infradead.org, Sean Paul , =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= , Shashank Sharma Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sean Paul Fixes the following build warning: drivers/gpu/drm/mediatek/mtk_hdmi.c:327:2: warning: enumeration value ‘HDMI_INFOFRAME_TYPE_DRM’ not handled in switch [-Wswitch] Introduced with the addition of HDMI_INFOFRAME_TYPE_DRM in the commit below, but the code really should have been future-proofed from the start. Fixes: 2cdbfd66a829 ("drm: Enable HDR infoframe support") Cc: Uma Shankar Cc: Shashank Sharma Cc: Ville Syrjälä Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Bartlomiej Zolnierkiewicz Cc: "Ville Syrjälä" Cc: Hans Verkuil Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Sean Paul Acked-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index e04e6c293d39..10cc9910f164 100644 --- a/drivers/gpu/drm/mediatek/mtk_hdmi.c +++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c @@ -341,6 +341,9 @@ static void mtk_hdmi_hw_send_info_frame(struct mtk_hdmi *hdmi, u8 *buffer, ctrl_frame_en = VS_EN; ctrl_reg = GRL_ACP_ISRC_CTRL; break; + default: + dev_err(hdmi->dev, "Unknown infoframe type %d\n", frame_type); + return; } mtk_hdmi_clear_bits(hdmi, ctrl_reg, ctrl_frame_en); mtk_hdmi_write(hdmi, GRL_INFOFRM_TYPE, frame_type);