diff mbox

[net-next] gre: protocol table can be static

Message ID 20101002085800.4cd06561@s6510
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

stephen hemminger Oct. 1, 2010, 11:58 p.m. UTC
This table is only used in gre.c

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

[
--
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

Comments

David Miller Oct. 4, 2010, 4:51 a.m. UTC | #1
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Sat, 2 Oct 2010 08:58:00 +0900

> This table is only used in gre.c
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.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

--- a/net/ipv4/gre.c	2010-09-29 10:41:46.895895032 +0900
+++ b/net/ipv4/gre.c	2010-09-29 10:41:56.265898132 +0900
@@ -22,7 +22,7 @@ 
 #include <net/gre.h>
 
 
-const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
+static const struct gre_protocol *gre_proto[GREPROTO_MAX] __read_mostly;
 static DEFINE_SPINLOCK(gre_proto_lock);
 
 int gre_add_protocol(const struct gre_protocol *proto, u8 version)