mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
netfilter: nf_hook_ops structs can be const
We no longer place these on a list so they can be const. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
5da773a3e8
commit
591bb2789b
18 changed files with 18 additions and 18 deletions
|
|
@ -887,7 +887,7 @@ EXPORT_SYMBOL_GPL(br_netfilter_enable);
|
|||
|
||||
/* For br_nf_post_routing, we need (prio = NF_BR_PRI_LAST), because
|
||||
* br_dev_queue_push_xmit is called afterwards */
|
||||
static struct nf_hook_ops br_nf_ops[] __read_mostly = {
|
||||
static const struct nf_hook_ops br_nf_ops[] = {
|
||||
{
|
||||
.hook = br_nf_pre_routing,
|
||||
.pf = NFPROTO_BRIDGE,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ ebt_out_hook(void *priv, struct sk_buff *skb,
|
|||
return ebt_do_table(skb, state, state->net->xt.frame_filter);
|
||||
}
|
||||
|
||||
static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
|
||||
static const struct nf_hook_ops ebt_ops_filter[] = {
|
||||
{
|
||||
.hook = ebt_in_hook,
|
||||
.pf = NFPROTO_BRIDGE,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ ebt_nat_out(void *priv, struct sk_buff *skb,
|
|||
return ebt_do_table(skb, state, state->net->xt.frame_nat);
|
||||
}
|
||||
|
||||
static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
|
||||
static const struct nf_hook_ops ebt_ops_nat[] = {
|
||||
{
|
||||
.hook = ebt_nat_out,
|
||||
.pf = NFPROTO_BRIDGE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue