2016-10-06 06:58:50

by Pavel Machek

[permalink] [raw]
Subject: 4.9-rc0: nf_hooks_ingress missing, breaking compilation

Hi!

In kernel based on edadd0e, I get plenty of errors such as:

net/netfilter/core.c:96:3: note: in expansion of macro ‘rcu_assign_pointer’
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^
In file included from ./include/linux/linkage.h:4:0,
from ./include/linux/kernel.h:6,
from net/netfilter/core.c:10:
net/netfilter/core.c:96:30: error: ‘struct net_device’ has no member named ‘nf_hooks_ingress’
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^

Config is attached.

[Ok, I guess testing -rc0 is "a bit too brave" :-)]

Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


Attachments:
(No filename) (0.00 B)
signature.asc (181.00 B)
Digital signature
Download all attachments

2016-10-06 13:54:27

by Aaron Conole

[permalink] [raw]
Subject: Re: 4.9-rc0: nf_hooks_ingress missing, breaking compilation

Pavel Machek <[email protected]> writes:

> Hi!

Hi Pavel,

> In kernel based on edadd0e, I get plenty of errors such as:

In this case, I screwed up - sincere apologies.

Enabling CONFIG_NETFILTER_INGRESS will work around this error for the
time being, while the fix makes it way through the various trees.

> net/netfilter/core.c:96:3: note: in expansion of macro ‘rcu_assign_pointer’
> rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
> ^
> In file included from ./include/linux/linkage.h:4:0,
> from ./include/linux/kernel.h:6,
> from net/netfilter/core.c:10:
> net/netfilter/core.c:96:30: error: ‘struct net_device’ has no member named ‘nf_hooks_ingress’
> rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
> ^
>
> Config is attached.
>
> [Ok, I guess testing -rc0 is "a bit too brave" :-)]
>
> Best regards,
> Pavel