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

ray_cs: Use fallthrough pseudo-keyword

In order to enable -Wimplicit-fallthrough for Clang[1], replace the
existing /* fall through */ comments with the new pseudo-keyword
macro fallthrough[2].

[1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10
[2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201008220422.GA6926@embeddedor

authored by

Gustavo A. R. Silva and committed by
Kalle Valo
256ff2ef 7eae0518

+3 -3
+3 -3
drivers/net/wireless/ray_cs.c
··· 877 877 switch (ccsindex = get_free_tx_ccs(local)) { 878 878 case ECCSBUSY: 879 879 pr_debug("ray_hw_xmit tx_ccs table busy\n"); 880 - /* fall through */ 880 + fallthrough; 881 881 case ECCSFULL: 882 882 pr_debug("ray_hw_xmit No free tx ccs\n"); 883 - /* fall through */ 883 + fallthrough; 884 884 case ECARDGONE: 885 885 netif_stop_queue(dev); 886 886 return XMIT_NO_CCS; ··· 1272 1272 switch (wrqu->mode) { 1273 1273 case IW_MODE_ADHOC: 1274 1274 card_mode = 0; 1275 - /* Fall through */ 1275 + fallthrough; 1276 1276 case IW_MODE_INFRA: 1277 1277 local->sparm.b5.a_network_type = card_mode; 1278 1278 break;