gre: protocol table can be static
Subsystems (2)
PATCH 1/1 gre: protocol table can be static
This table is only used in gre.c
Signed-off-by Stephen Hemminger <[email protected]>
net/ipv4/gre.c +1 -1
@@ -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)
[
From: Stephen Hemminger <[email protected]>
Date: Sat, 2 Oct 2010 08:58:00 +0900
Quoted 3 lines
This table is only used in
gre.cSigned-off-by Stephen Hemminger <[email protected]>
Applied.