Skip to content

Commit

Permalink
lwtunnel: Make lwtun_encaps[] static
Browse files Browse the repository at this point in the history
Any external user should use the registration API instead of
accessing this directly.

Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Graf authored and David S. Miller committed Jul 30, 2015
1 parent b4b67f2 commit 92a99bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/net/lwtunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion net/core/lwtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 92a99bf

Please sign in to comment.