]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
net: add __must_check to sk_add_backlog
authorZhu Yi <yi.zhu@intel.com>
Sun, 7 Mar 2010 16:21:39 +0000 (16:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2010 18:45:26 +0000 (10:45 -0800)
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 <yi.zhu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h

index 170353dd957048607e5c677c3bd78ebcbc0c4483..092b0551e77f28a08387d687592366ee4467a678 100644 (file)
@@ -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;