From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gustavo A. R. Silva" Subject: Re: [PATCH] can: mark expected switch fall-throughs Date: Tue, 21 May 2019 14:06:55 -0500 Message-ID: <0f2d0366-d384-c247-e144-32a2480e0817@embeddedor.com> References: <20190129180612.GA28650@embeddedor> <31d206cd-65f2-66be-ed79-583210a88d57@pengutronix.de> <0527d7c5-78f8-d581-1960-7ceda8bc3f49@embeddedor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <0527d7c5-78f8-d581-1960-7ceda8bc3f49@embeddedor.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Marc Kleine-Budde , Wolfgang Grandegger , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kees Cook List-Id: linux-can.vger.kernel.org Hi Marc, This patch has been in linux-can-next since February, but for some reason it hasn't been merged into net yet, not even once into linux-next. I can add it to my tree if you don't mind. Thanks -- Gustavo On 5/8/19 12:30 PM, Gustavo A. R. Silva wrote: > Hi Marc, > > On 2/26/19 2:02 AM, Marc Kleine-Budde wrote: >> On 1/29/19 7:06 PM, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >>> where we are expecting to fall through. >>> >>> This patch fixes the following warnings: >>> >>> drivers/net/can/peak_canfd/peak_pciefd_main.c:668:3: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> drivers/net/can/spi/mcp251x.c:875:7: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> drivers/net/can/usb/peak_usb/pcan_usb.c:422:6: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> drivers/net/can/at91_can.c:895:6: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> drivers/net/can/at91_can.c:953:15: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> drivers/net/can/usb/peak_usb/pcan_usb.c: In function ‘pcan_usb_decode_error’: >>> drivers/net/can/usb/peak_usb/pcan_usb.c:422:6: warning: this statement may fall through [-Wimplicit-fallthrough=] >>> if (n & PCAN_USB_ERROR_BUS_LIGHT) { >>> ^ >>> drivers/net/can/usb/peak_usb/pcan_usb.c:428:2: note: here >>> case CAN_STATE_ERROR_WARNING: >>> ^~~~ >>> >>> Warning level 3 was used: -Wimplicit-fallthrough=3 >>> >>> This patch is part of the ongoing efforts to enabling >>> -Wimplicit-fallthrough. >>> >>> Notice that in some cases spelling mistakes were fixed. >>> In other cases, the /* fall through */ comment is placed >>> at the bottom of the case statement, which is what GCC >>> is expecting to find. >>> >>> Signed-off-by: Gustavo A. R. Silva >> >> Added to linux-can-next. >> > > I wonder if there is any chance for this patch to be queued up for 5.2-rc1. > > Thanks > -- > Gustavo >