Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: qla4xxx: ql4_os: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Notice that, in this particular case, I replaced "allow fall-through" with
a "fall through" annotation, which is what GCC is expecting to find.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Gustavo A. R. Silva and committed by
Martin K. Petersen
fc9ac87e 7b8f32ee

+1 -1
+1 -1
drivers/scsi/qla4xxx/ql4_os.c
··· 2875 2875 chap_tbl.secret_len); 2876 2876 } 2877 2877 } 2878 - /* allow fall-through */ 2878 + /* fall through */ 2879 2879 default: 2880 2880 return iscsi_session_get_param(cls_sess, param, buf); 2881 2881 }