Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4044627imu; Mon, 14 Jan 2019 13:53:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN5LGMq6+cXIRphIrjc4LmGxygjm1tqwajzdlMIrRvm7rEY2L+htGds1L+ZieUKOuewyDB0e X-Received: by 2002:a63:ce50:: with SMTP id r16mr570726pgi.217.1547502808213; Mon, 14 Jan 2019 13:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547502808; cv=none; d=google.com; s=arc-20160816; b=L9zXCM/3F5WIgfUpgSdnSPYQZqjAkAz+QpuaCaIMlq/7VQrxa37LEcXJBQYs39IhS/ EKcpc8Z95ZqcExsxS0dW1BEv8Xv6uvghekk2l7sY2Adpc1qHlZvrXDBeU6VrK62ULJ1g y0wlJsFNiO7SBtBlyTS1LwvoxiY9auYARtkrYUH+pOgsxGaw9RI0E7up7/Y4/gETgSmo lmmUMxStZU/UPj9f2fSbXQsjHJ7bfUY8N7oIN3DlscrB0M+LSy8Rnp1IvBhPMW2VTxno csqcAiSI8JgdsUJIKqEe/EcOK2CAlzj/JwCdUMJv0rXjNPiD4nek0W72JWRERb+VKrEy tcKQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=EnEkJofI7bGHj/lavn+67Zg+GE2f2IxX4mQ01m9qs7I=; b=qWBBPOL6EX1jPO+DtUahZrNjwsPfDsa9cpdOZvrLPvMX5TyPq9+FORNhCGjKfyvpoF DHlgQ47Hro0kqiCUVuuw2JmLJJuGcVuek+ac6xgg3rkGvdkbW8Ol6wZOEUEe1l/DAFbp Syum3DvCdtqfo6baqOJDb7uxuD/ll0jnPI/LZBcaa2sUy+D5A5BpF5AMDirrAEPwpmNE 6kYlQIdJJJYwdfMLcY/626YdQzHrF23Y4m1g7Wcnomxhl8WFVMp2g5TGhywKymxb2UBa a6uCVQlvaEHpxuPy6h2svoAeQOj+ef2DWjLvS3o52oicnTHxG5p3lsYrsJPJa0yhmZ+q eRwA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si1324222plq.24.2019.01.14.13.53.12; Mon, 14 Jan 2019 13:53:28 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbfANVup (ORCPT + 99 others); Mon, 14 Jan 2019 16:50:45 -0500 Received: from gateway33.websitewelcome.com ([192.185.146.85]:13279 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbfANVun (ORCPT ); Mon, 14 Jan 2019 16:50:43 -0500 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 27CBD16D257 for ; Mon, 14 Jan 2019 15:50:42 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id jA82gccpIdnCejA82ghQgw; Mon, 14 Jan 2019 15:50:42 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=52134 helo=[192.168.43.131]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gjA81-000ykJ-Nh; Mon, 14 Jan 2019 15:50:41 -0600 Subject: Re: [PATCH] video: offb: annotate implicit fall throughs To: Mathieu Malaterre , Bartlomiej Zolnierkiewicz Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190114204044.20528-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <15854ad8-7bd5-ede7-6ce4-00122d6ba279@embeddedor.com> Date: Mon, 14 Jan 2019 15:50:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190114204044.20528-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.130.205 X-Source-L: No X-Exim-ID: 1gjA81-000ykJ-Nh X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:52134 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 34 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/19 2:40 PM, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > This commit remove the following warnings: > > drivers/video/fbdev/offb.c:211:5: warning: this statement may fall through [-Wimplicit-fallthrough=] > drivers/video/fbdev/offb.c:142:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva Thanks -- Gustavo > --- > drivers/video/fbdev/offb.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c > index 31f769d67195..e0f0c5351306 100644 > --- a/drivers/video/fbdev/offb.c > +++ b/drivers/video/fbdev/offb.c > @@ -141,6 +141,7 @@ static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, > /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ > out_le32(par->cmap_adr + 0x58, > in_le32(par->cmap_adr + 0x58) & ~0x20); > + /* fall through */ > case cmap_r128: > /* Set palette index & data */ > out_8(par->cmap_adr + 0xb0, regno); > @@ -210,6 +211,7 @@ static int offb_blank(int blank, struct fb_info *info) > /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ > out_le32(par->cmap_adr + 0x58, > in_le32(par->cmap_adr + 0x58) & ~0x20); > + /* fall through */ > case cmap_r128: > /* Set palette index & data */ > out_8(par->cmap_adr + 0xb0, i); >