af_packet: match_fanout_group() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Thu, 23 Aug 2012 11:51:21 +0000 (19:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2012 16:27:12 +0000 (09:27 -0700)
cc: Eric Leblond <eric@regit.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c

index aee7196..c5c9e2a 100644 (file)
@@ -1273,7 +1273,7 @@ static void __fanout_unlink(struct sock *sk, struct packet_sock *po)
        spin_unlock(&f->lock);
 }
 
-bool match_fanout_group(struct packet_type *ptype, struct sock * sk)
+static bool match_fanout_group(struct packet_type *ptype, struct sock * sk)
 {
        if (ptype->af_packet_priv == (void*)((struct packet_sock *)sk)->fanout)
                return true;