Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92a99bf3 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

lwtunnel: Make lwtun_encaps[] static



Any external user should use the registration API instead of
accessing this directly.

Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Acked-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4b67f26
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -31,9 +31,6 @@ struct lwtunnel_encap_ops {
	int (*cmp_encap)(struct lwtunnel_state *a, struct lwtunnel_state *b);
};

extern const struct lwtunnel_encap_ops __rcu *
		lwtun_encaps[LWTUNNEL_ENCAP_MAX+1];

#ifdef CONFIG_LWTUNNEL
static inline struct lwtunnel_state *
lwtstate_get(struct lwtunnel_state *lws)
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)
}
EXPORT_SYMBOL(lwtunnel_state_alloc);

const struct lwtunnel_encap_ops __rcu *
static const struct lwtunnel_encap_ops __rcu *
		lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;

int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,