Commit 61eb3107cd8e0302f95aae26206e552365daf290

Authored by Patrick McHardy
Committed by David S. Miller
1 parent b6b84d4a94

[NETFILTER]: nf_conntrack_extend: use __read_mostly for struct nf_ct_ext_type

Also make them static.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

net/ipv4/netfilter/nf_nat_core.c
... ... @@ -623,7 +623,7 @@
623 623 write_unlock_bh(&nf_nat_lock);
624 624 }
625 625  
626   -struct nf_ct_ext_type nat_extend = {
  626 +static struct nf_ct_ext_type nat_extend __read_mostly = {
627 627 .len = sizeof(struct nf_conn_nat),
628 628 .align = __alignof__(struct nf_conn_nat),
629 629 .destroy = nf_nat_cleanup_conntrack,
net/netfilter/nf_conntrack_helper.c
... ... @@ -145,7 +145,7 @@
145 145 }
146 146 EXPORT_SYMBOL_GPL(nf_conntrack_helper_unregister);
147 147  
148   -struct nf_ct_ext_type helper_extend = {
  148 +static struct nf_ct_ext_type helper_extend __read_mostly = {
149 149 .len = sizeof(struct nf_conn_help),
150 150 .align = __alignof__(struct nf_conn_help),
151 151 .id = NF_CT_EXT_HELPER,