Skip to contentSkip to conversation

4.9-rc0: nf_hooks_ingress missing, breaking compilation

DISCUSSION Pavel Machek 2 participants 2 messages Oct 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 1 line · Pavel Machek

Hi!

Hi Pavel,

Quoted 1 line

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.

Quoted 16 lines

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