> On Oct 13, 2023, at 3:48 AM, Emmanouil Pitsidianakis > <[email protected]> wrote: > > In preparation of raising -Wimplicit-fallthrough to 5, replace all > fall-through comments with the fallthrough attribute pseudo-keyword. > > Signed-off-by: Emmanouil Pitsidianakis <[email protected]> Reviewed-by: Raphael Norwitz <[email protected]> > --- > contrib/vhost-user-scsi/vhost-user-scsi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c > b/contrib/vhost-user-scsi/vhost-user-scsi.c > index 9ef61cf5a7..71076f579b 100644 > --- a/contrib/vhost-user-scsi/vhost-user-scsi.c > +++ b/contrib/vhost-user-scsi/vhost-user-scsi.c > @@ -109,14 +109,15 @@ static struct scsi_task *scsi_task_new(int cdb_len, > uint8_t *cdb, int dir, > static int get_cdb_len(uint8_t *cdb) > { > assert(cdb); > > switch (cdb[0] >> 5) { > case 0: return 6; > - case 1: /* fall through */ > + case 1: > + fallthrough; > case 2: return 10; > case 4: return 16; > case 5: return 12; > } > g_warning("Unable to determine cdb len (0x%02hhX)", (uint8_t)(cdb[0] >> > 5)); > return -1; > } > -- > 2.39.2 >
- [RFC PATCH 43/78] hw/misc: add fallthrough pseudo-... Emmanouil Pitsidianakis
- [RFC PATCH 28/78] target/avr: add fallthrough pseu... Emmanouil Pitsidianakis
- [RFC PATCH 21/78] target/sparc: add fallthrough ps... Emmanouil Pitsidianakis
- [RFC PATCH 44/78] hw/m68k/mcf_intc.c: add fallthro... Emmanouil Pitsidianakis
- [RFC PATCH 45/78] hw/dma: add fallthrough pseudo-k... Emmanouil Pitsidianakis
- [RFC PATCH 29/78] target/cris: add fallthrough pse... Emmanouil Pitsidianakis
- [RFC PATCH 16/78] audio: add fallthrough pseudo-ke... Emmanouil Pitsidianakis
- [RFC PATCH 33/78] target/rx: add fallthrough pseud... Emmanouil Pitsidianakis
- [RFC PATCH 37/78] target/hexagon: add fallthrough ... Emmanouil Pitsidianakis
- [RFC PATCH 48/78] contrib/vhost-user-scsi: add fal... Emmanouil Pitsidianakis
- Re: [RFC PATCH 48/78] contrib/vhost-user-scsi... Raphael Norwitz
- [RFC PATCH 10/78] hw/ide/atapi.c: add fallthrough ... Emmanouil Pitsidianakis
- [RFC PATCH 42/78] hw/i386: add fallthrough pseudo-... Emmanouil Pitsidianakis
- [RFC PATCH 30/78] target/nios2: add fallthrough ps... Emmanouil Pitsidianakis
- [RFC PATCH 22/78] target/ppc: add fallthrough pseu... Emmanouil Pitsidianakis
- Re: [RFC PATCH 22/78] target/ppc: add fallthr... Cédric Le Goater
- [RFC PATCH 57/78] hw/net: add fallthrough pseudo-k... Emmanouil Pitsidianakis
- [RFC PATCH 56/78] hw/input: add fallthrough pseudo... Emmanouil Pitsidianakis
- [RFC PATCH 24/78] target/alpha: add fallthrough ps... Emmanouil Pitsidianakis
- [RFC PATCH 49/78] hw/arm: add fallthrough pseudo-k... Emmanouil Pitsidianakis
