From patchwork Thu Aug 23 11:51:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kbuild test robot X-Patchwork-Id: 179607 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B67642C00AF for ; Thu, 23 Aug 2012 21:52:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754031Ab2HWLvb (ORCPT ); Thu, 23 Aug 2012 07:51:31 -0400 Received: from mga11.intel.com ([192.55.52.93]:63733 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089Ab2HWLv3 (ORCPT ); Thu, 23 Aug 2012 07:51:29 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 23 Aug 2012 04:51:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,300,1344236400"; d="scan'208";a="209433077" Received: from unknown (HELO wfg-t420.sh.intel.com) ([10.255.20.223]) by fmsmga001.fm.intel.com with ESMTP; 23 Aug 2012 04:51:25 -0700 Received: from wfg by wfg-t420.sh.intel.com with local (Exim 4.77) (envelope-from ) id 1T4VwX-0004ZS-Rc; Thu, 23 Aug 2012 19:51:21 +0800 Date: Thu, 23 Aug 2012 19:51:21 +0800 From: Fengguang Wu To: David Miller Cc: networking , Eric Leblond Subject: [PATCH] af_packet: match_fanout_group() can be static Message-ID: <20120823115121.GA17472@localhost> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org cc: Eric Leblond Signed-off-by: Fengguang Wu --- net/packet/af_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next.orig/net/packet/af_packet.c 2012-08-23 19:48:43.209188551 +0800 +++ linux-next/net/packet/af_packet.c 2012-08-23 19:48:53.413188794 +0800 @@ -1273,7 +1273,7 @@ static void __fanout_unlink(struct sock 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;