diff mbox

[net-next] ipv4: Make fib_encap_match static

Message ID 1439971491-16210-1-git-send-email-ying.xue@windriver.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Ying Xue Aug. 19, 2015, 8:04 a.m. UTC
Make fib_encap_match() static as it isn't used outside the file.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
---
 net/ipv4/fib_semantics.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Jiri Benc Aug. 19, 2015, 11:03 a.m. UTC | #1
On Wed, 19 Aug 2015 16:04:51 +0800, Ying Xue wrote:
> Make fib_encap_match() static as it isn't used outside the file.
> 
> Signed-off-by: Ying Xue <ying.xue@windriver.com>

Reviewed-by: Jiri Benc <jbenc@redhat.com>

Noticed that, too, you were faster, again :-)

 Jiri
David Miller Aug. 20, 2015, 9:12 p.m. UTC | #2
From: Ying Xue <ying.xue@windriver.com>
Date: Wed, 19 Aug 2015 16:04:51 +0800

> Make fib_encap_match() static as it isn't used outside the file.
> 
> Signed-off-by: Ying Xue <ying.xue@windriver.com>

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
diff mbox

Patch

diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index d525307..8fdf6c2 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -533,9 +533,9 @@  errout:
 
 #endif
 
-int fib_encap_match(struct net *net, u16 encap_type,
-		    struct nlattr *encap,
-		    int oif, const struct fib_nh *nh)
+static int fib_encap_match(struct net *net, u16 encap_type,
+			   struct nlattr *encap,
+			   int oif, const struct fib_nh *nh)
 {
 	struct lwtunnel_state *lwtstate;
 	struct net_device *dev = NULL;