Skip to content

Commit 92a99bf

Browse files
tgrafdavem330
authored andcommitted
lwtunnel: Make lwtun_encaps[] static
Any external user should use the registration API instead of accessing this directly. Cc: Roopa Prabhu <[email protected]> Signed-off-by: Thomas Graf <[email protected]> Acked-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b4b67f2 commit 92a99bf

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

include/net/lwtunnel.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ struct lwtunnel_encap_ops {
3131
int (*cmp_encap)(struct lwtunnel_state *a, struct lwtunnel_state *b);
3232
};
3333

34-
extern const struct lwtunnel_encap_ops __rcu *
35-
lwtun_encaps[LWTUNNEL_ENCAP_MAX+1];
36-
3734
#ifdef CONFIG_LWTUNNEL
3835
static inline struct lwtunnel_state *
3936
lwtstate_get(struct lwtunnel_state *lws)

net/core/lwtunnel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)
3737
}
3838
EXPORT_SYMBOL(lwtunnel_state_alloc);
3939

40-
const struct lwtunnel_encap_ops __rcu *
40+
static const struct lwtunnel_encap_ops __rcu *
4141
lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;
4242

4343
int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,

0 commit comments

Comments
 (0)