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: 10956693 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 3D2811708 for ; Wed, 22 May 2019 20:22:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 451E92239C for ; Wed, 22 May 2019 20:22:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38CAD212D5; Wed, 22 May 2019 20:22:24 +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 D83D7200E7 for ; Wed, 22 May 2019 20:22:23 +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=C6iwor/v4NYPzqdZrBjPhfPifYtFqn3TfJTnumE23Rw=; b=eCRT4qkLubLRr5 YcHpfhjyXFimqrQz7/0dYc0CAni3aERnNrwUNv19Fl/zEU5I7uQbPbcv1YwESXBtoA7skHFu62Qfr oRQFGljM85I5019dmnwyToMGO8S6//9qvsBPhoIoIv27YNXJrhhnYIj3hs/N+oWXwRzmSdXkkbVro 9ZX0lBsQdgu5F4AwilzO1en7q343Yjj3zYppIvE0Jkrc4FvdzlO0JH0S0yDTIvAgvR5xHBftSuIUG Vk4VAHnw0r5+Av3o6OCLKiiTFDc53tS+DHQhCGHYcDrap83AMBYRDt9ENv9m5Pr6vwMS110nw7SUD GpytenIAIxX4HbB4nO1A==; 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 1hTXkg-0001jP-Jq; Wed, 22 May 2019 20:22:18 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTXkZ-0001hv-So for linux-arm-kernel@lists.infradead.org; Wed, 22 May 2019 20:22:16 +0000 Received: by mail-qk1-x744.google.com with SMTP id q197so2375122qke.7 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=ji7nCbT+rWxsAY5VSKSs1d879SLykFVTuD/EQCOViIbfPQeuLY9alQkh8jFm7M5hyX 4tT9cITRXAEsPjUR65w9qE5Uu062Z83rOJANmiGpawJ0ytdU8T8KPmh4vyfJyRyZQobF +lRbNfvA5hKtrXB28wBbzsQb7dFqrUzY7tATbV5ODatBvUBkONyteNjNeYA59AJmSeXV Mp4wiySwzYkOnjc2YO0oO67zqt6cyP/WGkv/9wNu+F3QcyoGBef3VC7URzRg0d1F6ioU fpFivZdJq25PSK0Dkmcrvv3NbflzK0SaBLbSvmud7Dg3hxvKw6qnJhlCl5MwPP4RyAmQ kN0A== X-Gm-Message-State: APjAAAUyDj5PWybqgAQEDyxpWXeDTK2WT6Qjv5rGrEJtOjl7njqvSHP2 DHKODagUGokVuBNtt/XU9yxyyg== 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_385792_0144D93C X-CRM114-Status: GOOD ( 11.19 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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);