Patchwork [net-next] mrp: make mrp_rcv static

login
register
mail settings
Submitter stephen hemminger
Date Feb. 11, 2013, 4:25 p.m.
Message ID <20130211082524.5fb3a976@nehalam.linuxnetplumber.net>
Download mbox | patch
Permalink /patch/219635/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Feb. 11, 2013, 4:25 p.m.
Sparse spotted local function that could be static.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>


--
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
David Miller - Feb. 11, 2013, 7:18 p.m.
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Mon, 11 Feb 2013 08:25:24 -0800

> Sparse spotted local function that could be static.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

Applied.
--
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

Patch

--- a/net/802/mrp.c	2013-02-11 08:13:10.324575963 -0800
+++ b/net/802/mrp.c	2013-02-11 08:23:13.076756457 -0800
@@ -744,8 +744,8 @@  static int mrp_pdu_parse_msg(struct mrp_
 	return 0;
 }
 
-int mrp_rcv(struct sk_buff *skb, struct net_device *dev,
-	    struct packet_type *pt, struct net_device *orig_dev)
+static int mrp_rcv(struct sk_buff *skb, struct net_device *dev,
+		   struct packet_type *pt, struct net_device *orig_dev)
 {
 	struct mrp_application *appl = container_of(pt, struct mrp_application,
 						    pkttype);