Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4564794ybi; Tue, 30 Jul 2019 04:19:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJWpi91cU9pvGDOP92HHMgiuN1D1BEPR+rfV5YNMPpgbdsNBc2wI57q3f0LDbrpBXBe3OB X-Received: by 2002:a65:64c5:: with SMTP id t5mr34715611pgv.168.1564485595786; Tue, 30 Jul 2019 04:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564485595; cv=none; d=google.com; s=arc-20160816; b=rMW20Pg5b3X2XLvrUDI3L+gOzI9voRBSMBqN/14DmtdhQS1jnKx8iQV8Zx4Pm+Z1Gq I4GGlS4CD7cokHhzhjGev9glZiLrzM0Iv5aejFdqoAzDg6/aN4rBzLJPcuUmVuc/6h+1 uGw2mN6Pxpz6bg3QjywECgUjVEih0DRR7G9PPFH3VJuQ9xwSnGPEZIB8jMUqq2AI4Gev TmtYpX3IGuGG4U8HihG0saXwBB4J+us4OlmnAvp61Bzs5Tuq4dSqrIv3mVEkQuFpnTW5 tCfE1d/JbEIq84aLU6uwJrLQQsndcDe7As1kVNBdY5ZboDLMgoWrpTQed8OYHZzfSaD4 0tNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2U2XELV6OQ7Q7usKr+BHGIyWi1o0ek672exBpyDXgPY=; b=ljlPopeOUra6lPdg4XnkyS6ACs5O3s+3C9wn6ChYtaSXOinbDSiHfwhGEgVKD9AceS llYAPMY5CWiXz6TKnAAgjh6u5x4Xc2leSRAJbCB1G+bbmXJ23CwOyEqQIzLcEHS2vRG9 pElt9W3ekIMLW2bzMmwKF+6PUvXGYpoGzvn9y+nczCXlrGzGpIL4wXTC4IoIC4Q74SPQ sct9LuaGXI42Ir9nRlNdbqqO9FE9fBAom4HJo0FaG+YtPN7H7GQF0yZUasyriUVG0jOt ZPfqb7evKwXVY5I71P5eMkzi5Vupu1VaBwjNu+Oqz4peNjtxFtY35sRMqsfxvXpcLUyY AhPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QpvJLcej; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si28778837ple.161.2019.07.30.04.19.41; Tue, 30 Jul 2019 04:19:55 -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=@linaro.org header.s=google header.b=QpvJLcej; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731693AbfG3JhW (ORCPT + 99 others); Tue, 30 Jul 2019 05:37:22 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:37323 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730463AbfG3JhV (ORCPT ); Tue, 30 Jul 2019 05:37:21 -0400 Received: by mail-qt1-f195.google.com with SMTP id y26so62342063qto.4 for ; Tue, 30 Jul 2019 02:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2U2XELV6OQ7Q7usKr+BHGIyWi1o0ek672exBpyDXgPY=; b=QpvJLcejliU1b0iPLW/IKiK4O69hLE2vF90QgluyUk6DICdEnd2LBG93PM8PQBe/Vk IUqJlxtWwvYS6WZsKTqg/9Ge+5pcXxFUg1km6E0b3S8W66BCGquRsQvlS/DP3gSus1ku +Vh3Q+k38UJrLoAL18uuzM7GXmbkJLsLGmS63JpreJEPeBBPAt4BzQCB4dxTkzGTFjD6 TzTmvsb8iQgFP6sD1sZ5Fm3f9R+Y2gbMFITXkC4cR3X/Fs6DqgHVJU2ooOZZSJs2phL4 YeF5bmaPtiucrDm1XtYAMbpiVY1V5ZX1Dxmcs8+C+WUEaD2NYAJaost81g4p1ZlJnkoR 2UkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2U2XELV6OQ7Q7usKr+BHGIyWi1o0ek672exBpyDXgPY=; b=WPuGjh0Et5qrjlsC6cZhbScoRVkbUO/0mLljeLqmFs7DrOnuQtjs1wHGAxjjwIdNBy W3IBKG24ubTNaHxMd7KPlw+OTHnBAithXI39mIix0iWviBLFlxQKRPbd/d7XMfEpQa5h s+G9Nql1h5lOL1Wd/N6h9F5fyVHrDqImPBaQ9sJ1qEJCYYeROp7reMhWGePCtF/3vBB3 RECf7DxiK5GhdUaCjZOdlcmW/s3e+mF9f9Rej+h4SZs6srUpK2ySG+WvUO+ZDZBdRaVy P+gQM5Ufbat1qF7NOy9SgtrQRO+ILOmo6GyRzGYBm5u2tzJk0bR7JJDtjpyOHRuBuiMG pdXg== X-Gm-Message-State: APjAAAXANivJ6WeNmSFxVcgE7Ra2PLe6j6oviAFgeobsWQJWHspbaRy+ FO7DHCHTTcXDxM34ISU37v0FCQhDkOJ3L5AMg0c5pQ== X-Received: by 2002:ac8:3364:: with SMTP id u33mr82742323qta.115.1564479439876; Tue, 30 Jul 2019 02:37:19 -0700 (PDT) MIME-Version: 1.0 References: <20190729222752.GA20277@embeddedor> In-Reply-To: <20190729222752.GA20277@embeddedor> From: Benjamin Gaignard Date: Tue, 30 Jul 2019 11:37:09 +0200 Message-ID: Subject: Re: [PATCH] drm: sti: Mark expected switch fall-throughs To: "Gustavo A. R. Silva" Cc: Vincent Abriou , David Airlie , Daniel Vetter , ML dri-devel , Linux Kernel Mailing List , Kees Cook Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mar. 30 juil. 2019 =C3=A0 00:27, Gustavo A. R. Silva a =C3=A9crit : > > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: arm): > > drivers/gpu/drm/sti/sti_hdmi.c: In function =E2=80=98hdmi_audio_configure= =E2=80=99: > drivers/gpu/drm/sti/sti_hdmi.c:851:13: warning: this statement may fall t= hrough [-Wimplicit-fallthrough=3D] > audio_cfg |=3D HDMI_AUD_CFG_CH78_VALID; > drivers/gpu/drm/sti/sti_hdmi.c:852:2: note: here > case 6: > ^~~~ > drivers/gpu/drm/sti/sti_hdmi.c:853:13: warning: this statement may fall t= hrough [-Wimplicit-fallthrough=3D] > audio_cfg |=3D HDMI_AUD_CFG_CH56_VALID; > drivers/gpu/drm/sti/sti_hdmi.c:854:2: note: here > case 4: > ^~~~ > drivers/gpu/drm/sti/sti_hdmi.c:855:13: warning: this statement may fall t= hrough [-Wimplicit-fallthrough=3D] > audio_cfg |=3D HDMI_AUD_CFG_CH34_VALID | HDMI_AUD_CFG_8CH; > drivers/gpu/drm/sti/sti_hdmi.c:856:2: note: here > case 2: > ^~~~ > > Signed-off-by: Gustavo A. R. Silva Applied on drm-misc-next, Thanks, Benjamin > --- > drivers/gpu/drm/sti/sti_hdmi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdm= i.c > index f03d617edc4c..1617c5098a50 100644 > --- a/drivers/gpu/drm/sti/sti_hdmi.c > +++ b/drivers/gpu/drm/sti/sti_hdmi.c > @@ -849,10 +849,13 @@ static int hdmi_audio_configure(struct sti_hdmi *hd= mi) > switch (info->channels) { > case 8: > audio_cfg |=3D HDMI_AUD_CFG_CH78_VALID; > + /* fall through */ > case 6: > audio_cfg |=3D HDMI_AUD_CFG_CH56_VALID; > + /* fall through */ > case 4: > audio_cfg |=3D HDMI_AUD_CFG_CH34_VALID | HDMI_AUD_CFG_8CH= ; > + /* fall through */ > case 2: > audio_cfg |=3D HDMI_AUD_CFG_CH12_VALID; > break; > -- > 2.22.0 >