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
- Re: [EXT] [PATCH 018/141] qed: Fix fall-throu... Gustavo A. R. Silva
- [PATCH 019/141] qlcnic: Fix fall-through warnings for ... Gustavo A. R. Silva
- [PATCH 011/141] ipv4: Fix fall-through warnings for Cl... Gustavo A. R. Silva
- [PATCH 025/141] bnxt_en: Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 029/141] e1000: Fix fall-through warnings for C... Gustavo A. R. Silva
- [PATCH 039/141] ixgbevf: Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 042/141] net: 3c509: Fix fall-through warnings ... Gustavo A. R. Silva
- [PATCH 033/141] fm10k: Fix fall-through warnings for C... Gustavo A. R. Silva
- [PATCH 012/141] ixgbe: Fix fall-through warnings for C... Gustavo A. R. Silva
- Re: [PATCH 000/141] Fix fall-through warnings for Clan... Joe Perches
- Re: [PATCH 000/141] Fix fall-through warnings for... Gustavo A. R. Silva
- [PATCH 036/141] ice: Fix fall-through warnings for Cla... Gustavo A. R. Silva
- [PATCH 045/141] net: mscc: ocelot: Fix fall-through wa... Gustavo A. R. Silva
- [PATCH 044/141] net/mlx4: Fix fall-through warnings fo... Gustavo A. R. Silva
- Re: [PATCH 044/141] net/mlx4: Fix fall-through wa... Tariq Toukan
- Re: [PATCH 044/141] net/mlx4: Fix fall-throug... Gustavo A. R. Silva
- [PATCH 046/141] netxen_nic: Fix fall-through warnings ... Gustavo A. R. Silva
- [PATCH 047/141] nfp: Fix fall-through warnings for Cla... Gustavo A. R. Silva
- [PATCH 015/141] netfilter: Fix fall-through warnings f... Gustavo A. R. Silva
- Re: [PATCH 015/141] netfilter: Fix fall-through w... Florian Westphal
- Re: [PATCH 015/141] netfilter: Fix fall-throu... Gustavo A. R. Silva