Commit 3754fa74 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva
Browse files

rds: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115


Reviewed-by: default avatarHåkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
parent 5af5a020
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ void rds_tcp_state_change(struct sock *sk)
	case TCP_CLOSE_WAIT:
	case TCP_CLOSE:
		rds_conn_path_drop(cp, false);
		break;
	default:
		break;
	}
+2 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ void rds_send_worker(struct work_struct *work)
		case -ENOMEM:
			rds_stats_inc(s_send_delayed_retry);
			queue_delayed_work(rds_wq, &cp->cp_send_w, 2);
			break;
		default:
			break;
		}
@@ -232,6 +233,7 @@ void rds_recv_worker(struct work_struct *work)
		case -ENOMEM:
			rds_stats_inc(s_recv_delayed_retry);
			queue_delayed_work(rds_wq, &cp->cp_recv_w, 2);
			break;
		default:
			break;
		}