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 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx
- [PATCH 000/141] Fix fall-through warnings for Clang Gustavo A. R. Silva
- [PATCH 005/141] drm/radeon: Fix fall-through warn... Gustavo A. R. Silva
- Re: [PATCH 005/141] drm/radeon: Fix fall-thro... Alex Deucher
- [PATCH 004/141] drm/amdgpu: Fix fall-through warn... Gustavo A. R. Silva
- Re: [PATCH 004/141] drm/amdgpu: Fix fall-thro... Alex Deucher
- [PATCH 028/141] drm/amd/display: Fix fall-through... Gustavo A. R. Silva
- Re: [PATCH 028/141] drm/amd/display: Fix fall... Alex Deucher
- [PATCH 078/141] drm/amd/pm: Fix fall-through warn... Gustavo A. R. Silva
- Re: [PATCH 078/141] drm/amd/pm: Fix fall-thro... Alex Deucher
- Re: [PATCH 000/141] Fix fall-through warnings for... Joe Perches
- Re: [PATCH 000/141] Fix fall-through warnings... Gustavo A. R. Silva
- Re: [PATCH 000/141] Fix fall-through warnings for... Jakub Kicinski
- Re: [PATCH 000/141] Fix fall-through warnings... Gustavo A. R. Silva
- Re: [PATCH 000/141] Fix fall-through warnings... Kees Cook
- Re: [PATCH 000/141] Fix fall-through warn... Jakub Kicinski
- Re: [PATCH 000/141] Fix fall-through ... Kees Cook
- Re: [PATCH 000/141] Fix fall-through ... Kees Cook
- Re: [PATCH 000/141] Fix fall-thr... James Bottomley
- Re: [PATCH 000/141] Fix fall... Sam Ravnborg
- Re: [PATCH 000/141] Fix fall... Joe Perches
- Re: [PATCH 000/141] Fix ... James Bottomley