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

s390/zcrypt: use fallthrough;

Convert the various uses of fallthrough comments to fallthrough;

Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe.com/

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Joe Perches and committed by
Vasily Gorbik
fcf0220a 2c7749b9

+9 -9
+1 -1
drivers/s390/crypto/ap_bus.c
··· 360 360 wake_up(&ap_poll_wait); 361 361 break; 362 362 } 363 - /* Fall through */ 363 + fallthrough; 364 364 case AP_WAIT_TIMEOUT: 365 365 spin_lock_bh(&ap_poll_timer_lock); 366 366 if (!hrtimer_is_queued(&ap_poll_timer)) {
+4 -4
drivers/s390/crypto/ap_queue.c
··· 152 152 ap_msg->receive(aq, ap_msg, aq->reply); 153 153 break; 154 154 } 155 - /* fall through */ 155 + fallthrough; 156 156 case AP_RESPONSE_NO_PENDING_REPLY: 157 157 if (!status.queue_empty || aq->queue_count <= 0) 158 158 break; ··· 219 219 case AP_RESPONSE_NORMAL: 220 220 if (aq->queue_count > 0) 221 221 return AP_WAIT_AGAIN; 222 - /* fall through */ 222 + fallthrough; 223 223 default: 224 224 return AP_WAIT_NONE; 225 225 } ··· 254 254 aq->state = AP_STATE_WORKING; 255 255 return AP_WAIT_AGAIN; 256 256 } 257 - /* fall through */ 257 + fallthrough; 258 258 case AP_RESPONSE_Q_FULL: 259 259 aq->state = AP_STATE_QUEUE_FULL; 260 260 return AP_WAIT_INTERRUPT; ··· 380 380 case AP_RESPONSE_NORMAL: 381 381 if (aq->queue_count > 0) 382 382 return AP_WAIT_AGAIN; 383 - /* fallthrough */ 383 + fallthrough; 384 384 case AP_RESPONSE_NO_PENDING_REPLY: 385 385 return AP_WAIT_TIMEOUT; 386 386 default:
+4 -4
drivers/s390/crypto/zcrypt_msgtype6.c
··· 801 801 if (msg->cprbx.cprb_ver_id == 0x02) 802 802 return convert_type86_ica(zq, reply, 803 803 outputdata, outputdatalength); 804 - /* fall through - wrong cprb version is an unknown response */ 804 + fallthrough; /* wrong cprb version is an unknown response */ 805 805 default: /* Unknown response type, this should NEVER EVER happen */ 806 806 zq->online = 0; 807 807 pr_err("Cryptographic device %02x.%04x failed and was set offline\n", ··· 834 834 } 835 835 if (msg->cprbx.cprb_ver_id == 0x02) 836 836 return convert_type86_xcrb(zq, reply, xcRB); 837 - /* fall through - wrong cprb version is an unknown response */ 837 + fallthrough; /* wrong cprb version is an unknown response */ 838 838 default: /* Unknown response type, this should NEVER EVER happen */ 839 839 xcRB->status = 0x0008044DL; /* HDD_InvalidParm */ 840 840 zq->online = 0; ··· 864 864 return convert_error(zq, reply); 865 865 if (msg->cprbx.cprb_ver_id == 0x04) 866 866 return convert_type86_ep11_xcrb(zq, reply, xcRB); 867 - /* fall through - wrong cprb version is an unknown resp */ 867 + fallthrough; /* wrong cprb version is an unknown resp */ 868 868 default: /* Unknown response type, this should NEVER EVER happen */ 869 869 zq->online = 0; 870 870 pr_err("Cryptographic device %02x.%04x failed and was set offline\n", ··· 894 894 return -EINVAL; 895 895 if (msg->cprbx.cprb_ver_id == 0x02) 896 896 return convert_type86_rng(zq, reply, data); 897 - /* fall through - wrong cprb version is an unknown response */ 897 + fallthrough; /* wrong cprb version is an unknown response */ 898 898 default: /* Unknown response type, this should NEVER EVER happen */ 899 899 zq->online = 0; 900 900 pr_err("Cryptographic device %02x.%04x failed and was set offline\n",