From patchwork Thu Jan 27 13:56:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 728 Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 762D11545C9 for ; Thu, 27 Jan 2011 14:56:27 +0100 (CET) Received: from sven-desktop.home.narfation.org (i59F6B335.versanet.de [89.246.179.53]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 1092094061; Thu, 27 Jan 2011 14:56:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=mail; t=1296136619; bh=C3wSYgIZH0XXEHs5hYBJki09/Di2R6dpu5LLOL3UpVQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ZIGs2lCZLgRmJxp/w2MIobabfw7qXlrjkCeRtSubqrXLjLyaK3j5A4pAMP0posU1C iTAcy+S7N5ROKL1oTLv9aa/zxxO809YS8luvEnW2fquyT2cijQjTX/yeww2tsdqqLf rnRldgtw8QIEKqYBU0/MZwqiLkAjF/oHW2mu2R08= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 27 Jan 2011 14:56:10 +0100 Message-Id: <1296136571-13226-4-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1296136571-13226-1-git-send-email-sven@narfation.org> References: <1296136571-13226-1-git-send-email-sven@narfation.org> Subject: [B.A.T.M.A.N.] [PATCH 3/4] batman-adv: Remove declaration of batman_skb_recv X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 13:56:27 -0000 batman_skb_recv can be defined in hard-interface.c as static because it is never used outside of that file. Signed-off-by: Sven Eckelmann --- batman-adv/hard-interface.c | 11 +++++++++-- batman-adv/hard-interface.h | 4 ---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/batman-adv/hard-interface.c b/batman-adv/hard-interface.c index 3ab9a20..ee847e3 100644 --- a/batman-adv/hard-interface.c +++ b/batman-adv/hard-interface.c @@ -34,6 +34,12 @@ /* protect update critical side of if_list - but not the content */ static DEFINE_SPINLOCK(if_list_lock); + +static int batman_skb_recv(struct sk_buff *skb, + struct net_device *dev, + struct packet_type *ptype, + struct net_device *orig_dev); + static void hardif_free_rcu(struct rcu_head *rcu) { struct batman_if *batman_if; @@ -549,8 +555,9 @@ out: /* receive a packet with the batman ethertype coming on a hard * interface */ -int batman_skb_recv(struct sk_buff *skb, struct net_device *dev, - struct packet_type *ptype, struct net_device *orig_dev) +static int batman_skb_recv(struct sk_buff *skb, struct net_device *dev, + struct packet_type *ptype, + struct net_device *orig_dev) { struct bat_priv *bat_priv; struct batman_packet *batman_packet; diff --git a/batman-adv/hard-interface.h b/batman-adv/hard-interface.h index 30ec3b8..a42f5a4 100644 --- a/batman-adv/hard-interface.h +++ b/batman-adv/hard-interface.h @@ -35,10 +35,6 @@ struct batman_if *get_batman_if_by_netdev(struct net_device *net_dev); int hardif_enable_interface(struct batman_if *batman_if, char *iface_name); void hardif_disable_interface(struct batman_if *batman_if); void hardif_remove_interfaces(void); -int batman_skb_recv(struct sk_buff *skb, - struct net_device *dev, - struct packet_type *ptype, - struct net_device *orig_dev); int hardif_min_mtu(struct net_device *soft_iface); void update_min_mtu(struct net_device *soft_iface);