From: Zhu Yi Date: Sun, 7 Mar 2010 16:21:39 +0000 (+0000) Subject: net: add __must_check to sk_add_backlog X-Git-Tag: v2.6.33.2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cb63112d399b25ce7e4a5d84065f342b978cd9a4;p=karo-tx-linux.git net: add __must_check to sk_add_backlog [ Upstream commit 4045635318538d3ddd2007720412fdc4b08f6a62 ] Add the "__must_check" tag to sk_add_backlog() so that any failure to check and drop packets will be warned about. Signed-off-by: Zhu Yi Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/net/sock.h b/include/net/sock.h index 01eedfd3e1e3..86f2da1b9488 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -589,7 +589,7 @@ static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) } /* The per-socket spinlock must be held here. */ -static inline int sk_add_backlog(struct sock *sk, struct sk_buff *skb) +static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb) { if (sk->sk_backlog.len >= max(sk->sk_backlog.limit, sk->sk_rcvbuf << 1)) return -ENOBUFS;