net: add __must_check to sk_add_backlog
Subsystems (3)
PATCH 1/1 net: add __must_check to sk_add_backlog
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 <[email protected]>
--- include/net/sock.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/sock.h +1 -1
@@ -604,7 +604,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 ;
Signature · 1 line
1.6.3.3
From: Zhu Yi <[email protected]>
Date: Mon, 8 Mar 2010 10:21:39 +0800
Quoted 4 lines
Add the "
__must_check" tag tosk_add_backlog()so that any failure to check and drop packets will be warned about.Signed-off-by Zhu Yi <[email protected]>
Applied.