[Intel-wired-lan] [PATCH RESEND][next] ice: Fix fall-through warnings for Clang

Brelinski, TonyX tonyx.brelinski at intel.com
Wed Mar 10 00:01:09 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Paul Menzel
> Sent: Friday, March 5, 2021 1:04 AM
> To: Gustavo A. R. Silva <gustavoars at kernel.org>; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; David S. Miller <davem at davemloft.net>;
> Jakub Kicinski <kuba at kernel.org>
> Cc: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org; linux-
> hardening at vger.kernel.org; linux-kernel at vger.kernel.org
> Subject: Re: [Intel-wired-lan] [PATCH RESEND][next] ice: Fix fall-through
> warnings for Clang
> 
> Dear Gustavo,
> 
> 
> Thank you for working on that.
> 
> Am 05.03.21 um 09:52 schrieb Gustavo A. R. Silva:
> > In preparation to enable -Wimplicit-fallthrough for Clang, fix a
> > warning by explicitly adding a break statement instead of just letting
> > the code fall through to the next case.
> 
> It would be nice to have a short summary of the discrepancy between GCC
> and clang, and it was decided to go with the “clang decision”, and not have
> clang adapt to GCC.
> 
> > Link: https://github.com/KSPP/linux/issues/115
> > Signed-off-by: Gustavo A. R. Silva <gustavoars at kernel.org>
> > ---
> >   drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 1 +
> >   1 file changed, 1 insertion(+)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> A Contingent Worker at Intel




More information about the Intel-wired-lan mailing list