netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] gre: protocol table can be static
@ 2010-10-01 23:58 Stephen Hemminger
  2010-10-04  4:51 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2010-10-01 23:58 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Herbert Xu

This table is only used in gre.c

Signed-off-by: Stephen Hemminger <shemminger@vyatta.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)
[

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] gre: protocol table can be static
  2010-10-01 23:58 [PATCH net-next] gre: protocol table can be static Stephen Hemminger
@ 2010-10-04  4:51 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-10-04  4:51 UTC (permalink / raw)
  To: shemminger; +Cc: netdev, herbert

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-04  4:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01 23:58 [PATCH net-next] gre: protocol table can be static Stephen Hemminger
2010-10-04  4:51 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).