On 11/20/20 12:28, Joe Perches wrote: > On Fri, 2020-11-20 at 12:21 -0600, Gustavo A. R. Silva wrote: >> Hi all, >> >> This series aims to fix almost all remaining fall-through warnings in >> order to enable -Wimplicit-fallthrough for Clang. >> >> In preparation to enable -Wimplicit-fallthrough for Clang, explicitly >> add multiple break/goto/return/fallthrough statements instead of just >> letting the code fall through to the next case. >> >> Notice that in order to enable -Wimplicit-fallthrough for Clang, this >> change[1] is meant to be reverted at some point. So, this patch helps >> to move in that direction. > > This was a bit hard to parse for a second or three. > > Thanks Gustavo. > > How was this change done? I audited case by case in order to determine the best fit for each situation. Depending on the surrounding logic, sometimes it makes more sense a goto or a fallthrough rather than merely a break. Thanks -- Gustavo
- [PATCH 031/141] ext4: Fix fall-through warnings for ... Gustavo A. R. Silva
- [PATCH 026/141] ceph: Fix fall-through warnings for ... Gustavo A. R. Silva
- [PATCH 037/141] Input: pcspkr - Fix fall-through war... Gustavo A. R. Silva
- [PATCH 033/141] fm10k: Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 038/141] isofs: Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 039/141] ixgbevf: Fix fall-through warnings f... Gustavo A. R. Silva
- [PATCH 041/141] mm: Fix fall-through warnings for Cl... Gustavo A. R. Silva
- [PATCH 036/141] ice: Fix fall-through warnings for C... Gustavo A. R. Silva
- [PATCH 035/141] IB/qedr: Fix fall-through warnings f... Gustavo A. R. Silva
- Re: [PATCH 000/141] Fix fall-through warnings for Cl... Joe Perches
- Re: [PATCH 000/141] Fix fall-through warnings f... Gustavo A. R. Silva
- [PATCH 034/141] IB/mlx4: Fix fall-through warnings f... Gustavo A. R. Silva
- [PATCH 040/141] kprobes/x86: Fix fall-through warnin... Gustavo A. R. Silva
- [PATCH 012/141] ixgbe: Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 044/141] net/mlx4: Fix fall-through warnings ... Gustavo A. R. Silva
- Re: [PATCH 044/141] net/mlx4: Fix fall-through ... Tariq Toukan
- [PATCH 042/141] net: 3c509: Fix fall-through warning... Gustavo A. R. Silva
- [PATCH 013/141] media: dvb-frontends: Fix fall-throu... Gustavo A. R. Silva
- Re: [PATCH 013/141] media: dvb-frontends: Fix f... Mauro Carvalho Chehab
- [PATCH 014/141] media: usb: dvb-usb-v2: Fix fall-thr... Gustavo A. R. Silva
- Re: [PATCH 014/141] media: usb: dvb-usb-v2: Fix... Mauro Carvalho Chehab