Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11301940rwd; Thu, 22 Jun 2023 11:19:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/dEGIkt54kqKyTajgOZtiL1khP5EnxVAVmhIlfJWfWgaNhFZK53YO4sFInMIJ+msAd0Ea X-Received: by 2002:a17:90a:31a:b0:24e:4b1c:74d2 with SMTP id 26-20020a17090a031a00b0024e4b1c74d2mr19486987pje.32.1687457978753; Thu, 22 Jun 2023 11:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687457978; cv=none; d=google.com; s=arc-20160816; b=TIIFNRq/wR7c7btQnrXsgThiijCzP4J+IE9wcaw2wDw3F/0fVrFI7FL/vUK4Kio628 pCaual+q8YBvJSAmTss7ERAlw3xcg4WotwGS1hfEMgKPtO7/J9ueqL0AZIo/24vIzMxl 0bOeLdGfUzoiXTkN3uWe0iddNzXVATPl35mD+ph6aHTDXm9LY6x7vJmXsTYCeIdYI/1Q aKoMwqW+K/BiMPXR8jE6RR3Zdm/y2MEpQ7HOb21GnS57gqz/UIJAF3YarYun2Ahw3rZU 4WUJ1KMtEbqttfa/MthmF2cRJ28PFZFkkusDBPlZZ+xQDLjCJgHS50+3xh7cFWUygPJr XlhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=3oJahpRJ5ydClq0wSO4y2bJxO+FeexnpHTu40162HbI=; b=d7Y1ILCPaMelNJOhlhGoHm1CdU+hgp98klwJjgr1q86sUvWRss3XulEJwygcyjxob2 zQJJgxW6V+zgPOs1QcZz2pbqTTY1KulSqdqNhlPMVhbshazAWHvoCH++hem40423dQPh 4qUmPqAha1iXpBzDxjQ8TBy6vcJpYvLtIDr8rtTMyI4bBdFoxq7p8/0IjM4kJpvIAj9u G6tb5hjCoHwskvygQGZdtzDG3SUL7oZE1ZNChMxg5V6/fhRRao+x4zQG97mIkqBrAarb b9ZEZ7F5RcsorV70WEW9H6NiIB+w8SDRyDE4MH15qEEo8V4KF0xZZVNKp0Sd1S8dxfmz q0xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b="t2W/Wyhb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020a17090a520c00b00247101dd0c1si149865pjh.15.2023.06.22.11.19.19; Thu, 22 Jun 2023 11:19:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b="t2W/Wyhb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbjFVRjK (ORCPT + 99 others); Thu, 22 Jun 2023 13:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjFVRjI (ORCPT ); Thu, 22 Jun 2023 13:39:08 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB921BD6; Thu, 22 Jun 2023 10:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1687455536; x=1688060336; i=deller@gmx.de; bh=roHB+JreyqbCyh46TX0VgJAq4m6SfZv4rdjO3VvVBp4=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=t2W/Wyhb4VhIczxIoOKN9JE4rhU6dpuOTmsZdFbVGM+3njVQO0Qzt48hpU1uWU6z6tlxEyk BJpTyDsehdRBny1NbTtS3bDV2qy8jzqaajwsPuhPMkIXwVqz9DN3iVQNSR/+uRCCiSInJuxKI Pz7O/WueZfo3+8Aa7cAAbEJYnypTP9yr5tOG06WUQ/nbqB1fCinJHDJWn7c9Jocl7aGluumF4 fBuMhinEAPPdFQA/DoKtujFr58vBTA9eF5bSdB5o6XJwGkIGRuSe7/foyj1FKcr7e7hsQpsZK 4uRFvD+4Xxb0xO4zIKONQmjLHlmav5KYUyZFkawPNo0un4YvO4GA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.155.210]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MulmF-1pvXsJ3J6R-00rtA3; Thu, 22 Jun 2023 19:38:56 +0200 Message-ID: Date: Thu, 22 Jun 2023 19:38:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH][next] fbdev: sh7760fb: Fix -Wimplicit-fallthrough warnings Content-Language: en-US To: "Gustavo A. R. Silva" Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: From: Helge Deller In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0AMsLm4CGRzP+9jo/SLOyPBSOwhb9hi+YyvAI//2GPCYSgGDhjw WRULZVkxM4/xxLE1oa0lJb6lq+b2r2VgJNdwN2G0d378sKPwXO1pr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01ZcugyT3BbLbVWW0NtHbcKWYdbIj3cK/D2zCm6lzXKABwzOtIQA 4vyvnw== X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/22/23 18:46, Gustavo A. R. Silva wrote: > Fix the following fallthrough warnings seen after building sh > architecture with sh7763rdp_defconfig configuration: > > drivers/video/fbdev/sh7760fb.c: In function 'sh7760fb_get_color_info': > drivers/video/fbdev/sh7760fb.c:138:23: warning: this statement may fall = through [-Wimplicit-fallthrough=3D] > 138 | lgray =3D 1; > | ~~~~~~^~~ > drivers/video/fbdev/sh7760fb.c:139:9: note: here > 139 | case LDDFR_4BPP: > | ^~~~ > drivers/video/fbdev/sh7760fb.c:143:23: warning: this statement may fall = through [-Wimplicit-fallthrough=3D] > 143 | lgray =3D 1; > | ~~~~~~^~~ > drivers/video/fbdev/sh7760fb.c:144:9: note: here > 144 | case LDDFR_8BPP: > | ^~~~ > > Signed-off-by: Gustavo A. R. Silva applied. Thanks! Helge > --- > drivers/video/fbdev/sh7760fb.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/video/fbdev/sh7760fb.c b/drivers/video/fbdev/sh7760= fb.c > index 768011bdb430..98c5227098a8 100644 > --- a/drivers/video/fbdev/sh7760fb.c > +++ b/drivers/video/fbdev/sh7760fb.c > @@ -136,11 +136,13 @@ static int sh7760fb_get_color_info(struct device *= dev, > break; > case LDDFR_4BPP_MONO: > lgray =3D 1; > + fallthrough; > case LDDFR_4BPP: > lbpp =3D 4; > break; > case LDDFR_6BPP_MONO: > lgray =3D 1; > + fallthrough; > case LDDFR_8BPP: > lbpp =3D 8; > break;