From: Jules Irenge Date: Sun, 23 Feb 2020 23:16:46 +0000 (+0000) Subject: sctp: Add missing annotation for sctp_transport_walk_start() X-Git-Tag: v5.15~4200^2~350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c72b7740c8665671c0d5d3001490c0e41939c1f;p=platform%2Fkernel%2Flinux-starfive.git sctp: Add missing annotation for sctp_transport_walk_start() Sparse reports a warning at sctp_transport_walk_start() warning: context imbalance in sctp_transport_walk_start - wrong count at exit The root cause is the missing annotation at sctp_transport_walk_start() Add the missing __acquires(RCU) annotation Signed-off-by: Jules Irenge Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 1b56fc4..05be67b 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -5333,7 +5333,7 @@ int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc, EXPORT_SYMBOL_GPL(sctp_get_sctp_info); /* use callback to avoid exporting the core structure */ -void sctp_transport_walk_start(struct rhashtable_iter *iter) +void sctp_transport_walk_start(struct rhashtable_iter *iter) __acquires(RCU) { rhltable_walk_enter(&sctp_transport_hashtable, iter);