diff options
author | Florian Westphal <fw@strlen.de> | 2020-02-18 11:59:27 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-15 15:20:16 +0100 |
commit | 24d19826fcbd97144908ae32019ee67d358c5879 (patch) | |
tree | 44527d5d7b996dc7d943f9f3293ee7e70e3fd515 /net/netfilter/nft_set_rbtree.c | |
parent | e32a4dc6512ce3c1a1920531246e7037896e510a (diff) | |
download | linux-stable-24d19826fcbd97144908ae32019ee67d358c5879.tar.gz linux-stable-24d19826fcbd97144908ae32019ee67d358c5879.tar.bz2 linux-stable-24d19826fcbd97144908ae32019ee67d358c5879.zip |
netfilter: nf_tables: make all set structs const
They do not need to be writeable anymore.
v2: remove left-over __read_mostly annotation in set_pipapo.c (Stefano)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_set_rbtree.c')
-rw-r--r-- | net/netfilter/nft_set_rbtree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c index 5000b938ab1e..172ef8189f99 100644 --- a/net/netfilter/nft_set_rbtree.c +++ b/net/netfilter/nft_set_rbtree.c @@ -481,8 +481,7 @@ static bool nft_rbtree_estimate(const struct nft_set_desc *desc, u32 features, return true; } -struct nft_set_type nft_set_rbtree_type __read_mostly = { - .owner = THIS_MODULE, +const struct nft_set_type nft_set_rbtree_type = { .features = NFT_SET_INTERVAL | NFT_SET_MAP | NFT_SET_OBJECT | NFT_SET_TIMEOUT, .ops = { .privsize = nft_rbtree_privsize, |