summaryrefslogtreecommitdiff
path: root/drivers/hsi/controllers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-07-30 01:45:19 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2019-07-30 22:26:24 +0300
commite008227eb34fe14eb5fdb1ca2a07ac018dd9f22a (patch)
treebdaff482ec3e034e2b1a5a5eb5613f706c32f108 /drivers/hsi/controllers
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlinux-e008227eb34fe14eb5fdb1ca2a07ac018dd9f22a.tar.xz
HSI: ssi_protocol: Mark expected switch fall-throughs
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: arm): drivers/hsi/clients/ssi_protocol.c: In function ‘ssip_set_rxstate’: drivers/hsi/clients/ssi_protocol.c:291:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (atomic_read(&ssi->tx_usecnt)) ^ drivers/hsi/clients/ssi_protocol.c:294:2: note: here case RECEIVING: ^~~~ drivers/hsi/clients/ssi_protocol.c: In function ‘ssip_keep_alive’: drivers/hsi/clients/ssi_protocol.c:466:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (atomic_read(&ssi->tx_usecnt) == 0) ^ drivers/hsi/clients/ssi_protocol.c:472:3: note: here case SEND_IDLE: ^~~~ Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/hsi/controllers')
0 files changed, 0 insertions, 0 deletions