Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11214853rwd; Thu, 22 Jun 2023 10:07:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WMnfBo0ocC8w7O+g0E2ekQTUM9M8jE4VBF05uRT2yDCyHur7FcKEo5eGTX3d8ZFpJMHkt X-Received: by 2002:a05:6a20:3d81:b0:ef:205f:8184 with SMTP id s1-20020a056a203d8100b000ef205f8184mr19171589pzi.13.1687453647668; Thu, 22 Jun 2023 10:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687453647; cv=none; d=google.com; s=arc-20160816; b=idzUf2IVQhHpUq6B4fSvhqS76B2nHLY2YVRmK7uaqxs250XPOH2O4dr/DaHyqcNZVp Y1B1hiTR5yaC0tza4nw8IuhARif8Z5ohbbC/QdddnFFcs7u5hLtj2qv1i6l92wOr0qRF jUhsIqx7BiX+mo3QOhtxoKk3yipx8wQ27DnH/jxdDCUTrpFjqeo1Bvn282pNgnsNXhea 1MlSx5KRDTuJKA7kk+7BERgR8ZtZZESmVh4Vy/BcLEGcLiwUcF1N2imq7yztKZ8MVMSJ BmgQwBSbXpJnhuZWgrq0f1KdY5k3lnKA0kXzvJlbJAmdpbFrrrUJU34w51GP0J30XSVa PeNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=U0x5AWlPS+ZiB9Jt4d8oHhfZXefhee7FweXi2oblYW8=; b=psqCiOQ1+DG2p3J/FVTV7aGuVZRjq5KXXUk+zZjiqA5upfJWwksbuG7cVlNX7AYTrS XfZrXYbo/qta8W+1uNGjDEYtxvLoj9WOOBlgcpoKnDAmLzTMcBJX0QHdi/Oh3y3boS7J yJcIO7ZnJq48AX9iSeEHoAzfPvF0VTpzZ+o+Iau2hULjeiHKxwr7QosBZ+R3Dns1sahy hhCFAbxvNtQpkRJws2mLzUfKmnhVteoHXErODbrfr0muhg+Ikr69csAfNbyW6DYBGEAJ P6eYGQ/uPlSdg6Hde0p9zYEz6dJInNUC+p21iYdEAVjoSlE8CznSkI3r6pzNfHz+gAZa Lo7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RVvLNYYI; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t70-20020a637849000000b0053f0cdab820si2841951pgc.259.2023.06.22.10.07.14; Thu, 22 Jun 2023 10:07:27 -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=@kernel.org header.s=k20201202 header.b=RVvLNYYI; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbjFVQpm (ORCPT + 99 others); Thu, 22 Jun 2023 12:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbjFVQpk (ORCPT ); Thu, 22 Jun 2023 12:45:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 668F21FCC; Thu, 22 Jun 2023 09:45:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F00F0618B0; Thu, 22 Jun 2023 16:45:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2C70C433C0; Thu, 22 Jun 2023 16:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687452338; bh=mPXln+DmOt1KklaFQd3MJkA1//mD28lDoq4prtu8Qoo=; h=Date:From:To:Cc:Subject:From; b=RVvLNYYIvAmGiq4BaiJ+/c8othvgt+IMGlJMhdFQy9LZVYJ2Xh3k64zYSQloMZJxq rQUpRTSch8lojQ25h/Zkqy36qoY2/cYl0Fe5skuKVC8TNUW4Bzdhv3qgCosnUssb4L AmrPOEMU57ueZ/pSZr8IBXKKv+rYNEx55PnTrKLtV+eihP/7kntUs/EF9RzRL5/Mv3 Srf/2XvnQa8LObzVYlGc1ZQYan5qonEfQc7KNytrYp5PiFRZy0Z6LMmI1PbguFJpXm HpaTe9Kwwuo757fSU8ESd7Xlu+L93xv+Bh1KEmOc/7eCSt3RgcemqSqPGx0ppW+/J5 expgtpPfn9WuQ== Date: Thu, 22 Jun 2023 10:46:33 -0600 From: "Gustavo A. R. Silva" To: Helge Deller Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] fbdev: sh7760fb: Fix -Wimplicit-fallthrough warnings Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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=] 138 | lgray = 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=] 143 | lgray = 1; | ~~~~~~^~~ drivers/video/fbdev/sh7760fb.c:144:9: note: here 144 | case LDDFR_8BPP: | ^~~~ Signed-off-by: Gustavo A. R. Silva --- drivers/video/fbdev/sh7760fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/sh7760fb.c b/drivers/video/fbdev/sh7760fb.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 = 1; + fallthrough; case LDDFR_4BPP: lbpp = 4; break; case LDDFR_6BPP_MONO: lgray = 1; + fallthrough; case LDDFR_8BPP: lbpp = 8; break; -- 2.34.1