Re: linux-next: Tree for Sep 27

From: Sergey Senozhatsky
Date: Tue Sep 27 2016 - 06:05:27 EST


Hello,

On (09/27/16 16:40), Stephen Rothwell wrote:
>
> Changes since 20160923:
>

seems that commit e3b37f11e6e4e6b6 ("netfilter: replace list_head with
single linked list") breaks the build on !CONFIG_NETFILTER_INGRESS systems
accessing ->nf_hooks_ingress

static void nf_set_hooks_head(struct net *net, const struct nf_hook_ops *reg,
struct nf_hook_entry *entry)
{
switch (reg->pf) {
case NFPROTO_NETDEV:
/* We already checked in nf_register_net_hook() that this is
* used from ingress.
*/
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^^^^^^^^^^^^^^^^^^^^


log:


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: In function ânf_set_hooks_headâ:
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);
^
./include/linux/compiler.h:322:17: note: in definition of macro âWRITE_ONCEâ
union { typeof(x) __val; char __c[1]; } __u = \
^
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:323:30: note: in definition of macro âWRITE_ONCEâ
{ .__val = (__force typeof(x)) (val) }; \
^
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:323:35: note: in definition of macro âWRITE_ONCEâ
{ .__val = (__force typeof(x)) (val) }; \
^~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:324:22: note: in definition of macro âWRITE_ONCEâ
__write_once_size(&(x), __u.__c, sizeof(x)); \
^
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:324:42: note: in definition of macro âWRITE_ONCEâ
__write_once_size(&(x), __u.__c, sizeof(x)); \
^
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);
^
./include/linux/compiler.h:498:19: note: in definition of macro â__compiletime_assertâ
bool __cond = !(condition); \
^~~~~~~~~
./include/linux/compiler.h:518:2: note: in expansion of macro â_compiletime_assertâ
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:2: note: in expansion of macro âcompiletime_assertâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:21: note: in expansion of macro â__native_wordâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~
./arch/x86/include/asm/barrier.h:64:2: note: in expansion of macro âcompiletime_assert_atomic_typeâ
compiletime_assert_atomic_type(*p); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:498:19: note: in definition of macro â__compiletime_assertâ
bool __cond = !(condition); \
^~~~~~~~~
./include/linux/compiler.h:518:2: note: in expansion of macro â_compiletime_assertâ
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:2: note: in expansion of macro âcompiletime_assertâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:21: note: in expansion of macro â__native_wordâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~
./arch/x86/include/asm/barrier.h:64:2: note: in expansion of macro âcompiletime_assert_atomic_typeâ
compiletime_assert_atomic_type(*p); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:498:19: note: in definition of macro â__compiletime_assertâ
bool __cond = !(condition); \
^~~~~~~~~
./include/linux/compiler.h:518:2: note: in expansion of macro â_compiletime_assertâ
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:2: note: in expansion of macro âcompiletime_assertâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:21: note: in expansion of macro â__native_wordâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~
./arch/x86/include/asm/barrier.h:64:2: note: in expansion of macro âcompiletime_assert_atomic_typeâ
compiletime_assert_atomic_type(*p); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:498:19: note: in definition of macro â__compiletime_assertâ
bool __cond = !(condition); \
^~~~~~~~~
./include/linux/compiler.h:518:2: note: in expansion of macro â_compiletime_assertâ
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:2: note: in expansion of macro âcompiletime_assertâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:521:21: note: in expansion of macro â__native_wordâ
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~
./arch/x86/include/asm/barrier.h:64:2: note: in expansion of macro âcompiletime_assert_atomic_typeâ
compiletime_assert_atomic_type(*p); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:322:17: note: in definition of macro âWRITE_ONCEâ
union { typeof(x) __val; char __c[1]; } __u = \
^
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:323:30: note: in definition of macro âWRITE_ONCEâ
{ .__val = (__force typeof(x)) (val) }; \
^
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:323:35: note: in definition of macro âWRITE_ONCEâ
{ .__val = (__force typeof(x)) (val) }; \
^~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:25: note: in expansion of macro âRCU_INITIALIZERâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:323:35: note: in definition of macro âWRITE_ONCEâ
{ .__val = (__force typeof(x)) (val) }; \
^~~
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:25: note: in expansion of macro âRCU_INITIALIZERâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:324:22: note: in definition of macro âWRITE_ONCEâ
__write_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
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);
^
./include/linux/compiler.h:324:42: note: in definition of macro âWRITE_ONCEâ
__write_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/barrier.h:157:33: note: in expansion of macro â__smp_store_releaseâ
#define smp_store_release(p, v) __smp_store_release(p, v)
^~~~~~~~~~~~~~~~~~~
./include/linux/rcupdate.h:668:3: note: in expansion of macro âsmp_store_releaseâ
smp_store_release(&p, RCU_INITIALIZER((typeof(p))_r_a_p__v)); \
^~~~~~~~~~~~~~~~~
net/netfilter/core.c:96:3: note: in expansion of macro ârcu_assign_pointerâ
rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
^~~~~~~~~~~~~~~~~~
CC net/ipv4/ip_fragment.o
make[2]: *** [scripts/Makefile.build:290: net/netfilter/core.o] Error 1
make[1]: *** [scripts/Makefile.build:475: net/netfilter] Error 2
make[1]: *** Waiting for unfinished jobs....

-ss