[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101002085800.4cd06561@s6510>
Date: Sat, 2 Oct 2010 08:58:00 +0900
From: Stephen Hemminger <shemminger@...tta.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, Herbert Xu <herbert@...dor.apana.org.au>
Subject: [PATCH net-next] gre: protocol table can be static
This table is only used in gre.c
Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
--- 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)
[
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists