netfilter: nf_tables: make all set structs const
[linux-2.6-microblaze.git] / net / netfilter / nft_set_hash.c
index d350a7c..4d3f147 100644 (file)
@@ -662,8 +662,7 @@ static bool nft_hash_fast_estimate(const struct nft_set_desc *desc, u32 features
        return true;
 }
 
-struct nft_set_type nft_set_rhash_type __read_mostly = {
-       .owner          = THIS_MODULE,
+const struct nft_set_type nft_set_rhash_type = {
        .features       = NFT_SET_MAP | NFT_SET_OBJECT |
                          NFT_SET_TIMEOUT | NFT_SET_EVAL,
        .ops            = {
@@ -686,8 +685,7 @@ struct nft_set_type nft_set_rhash_type __read_mostly = {
        },
 };
 
-struct nft_set_type nft_set_hash_type __read_mostly = {
-       .owner          = THIS_MODULE,
+const struct nft_set_type nft_set_hash_type = {
        .features       = NFT_SET_MAP | NFT_SET_OBJECT,
        .ops            = {
                .privsize       = nft_hash_privsize,
@@ -706,8 +704,7 @@ struct nft_set_type nft_set_hash_type __read_mostly = {
        },
 };
 
-struct nft_set_type nft_set_hash_fast_type __read_mostly = {
-       .owner          = THIS_MODULE,
+const struct nft_set_type nft_set_hash_fast_type = {
        .features       = NFT_SET_MAP | NFT_SET_OBJECT,
        .ops            = {
                .privsize       = nft_hash_privsize,