Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=74feb6e84e189707ca1324a92f7206617efbd735
Commit:     74feb6e84e189707ca1324a92f7206617efbd735
Parent:     65f7651788e18fadb2fbb7276af935d7871e1803
Author:     Eric Dumazet <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 24 00:15:42 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:00:37 2008 -0800

    [ICMP]: Avoid sparse warnings in net/ipv4/icmp.c
    
       CHECK   net/ipv4/icmp.c
    net/ipv4/icmp.c:249:13: warning: context imbalance in 'icmp_xmit_unlock' -
    unexpected unlock
    net/ipv4/icmp.c:376:13: warning: context imbalance in 'icmp_reply' - 
different
    lock contexts for basic block
    net/ipv4/icmp.c:430:6: warning: context imbalance in 'icmp_send' - different
    lock contexts for basic block
    
    Solution is to declare both icmp_xmit_lock() and icmp_xmit_unlock() as 
inline
    
    Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/icmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index ce5b4be..1a60249 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -232,7 +232,7 @@ static const struct icmp_control 
icmp_pointers[NR_ICMP_TYPES+1];
 static DEFINE_PER_CPU(struct socket *, __icmp_socket) = NULL;
 #define icmp_socket    __get_cpu_var(__icmp_socket)
 
-static __inline__ int icmp_xmit_lock(void)
+static inline int icmp_xmit_lock(void)
 {
        local_bh_disable();
 
@@ -246,7 +246,7 @@ static __inline__ int icmp_xmit_lock(void)
        return 0;
 }
 
-static void icmp_xmit_unlock(void)
+static inline void icmp_xmit_unlock(void)
 {
        spin_unlock_bh(&icmp_socket->sk->sk_lock.slock);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to