Re: [PATCH 02/18] zlib: annotate switch/case fallthrough cases

2025-03-31 Thread Tom Rini
On Thu, Mar 27, 2025 at 03:32:57PM +, Andre Przywara wrote: > The inflate state machine in zlib uses switch/case fall-through's > extensively, as it sometimes advances the state, and lets the > conveniently placed next case statement handle the new state already. > The pattern here is: >

[PATCH 02/18] zlib: annotate switch/case fallthrough cases

2025-03-27 Thread Andre Przywara
The inflate state machine in zlib uses switch/case fall-through's extensively, as it sometimes advances the state, and lets the conveniently placed next case statement handle the new state already. The pattern here is: state->mode = LEN; case LEN: Annotate those occasions w