[nf-next:master 43/54] net/netfilter/core.c:96: error: type defaults to 'int' in declaration of '__val'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master
head:   f20fbc0717f9f007c94b2641134b19228d0ce9ed
commit: e3b37f11e6e4e6b6f02cc762f182ce233d2c1c9d [43/54] netfilter: replace list_head with single linked list
config: x86_64-randconfig-s0-09260726 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout e3b37f11e6e4e6b6f02cc762f182ce233d2c1c9d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   net/netfilter/core.c: In function 'nf_set_hooks_head':
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of '__val'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of '__val'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
>> net/netfilter/core.c:96: error: invalid type argument of 'unary *' (have 'int')
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
>> net/netfilter/core.c:96: warning: cast to pointer from integer of different size
>> net/netfilter/core.c:96: error: type defaults to 'int' in declaration of 'type name'
>> net/netfilter/core.c:96: warning: cast from pointer to integer of different size
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'
   net/netfilter/core.c:96: error: 'struct net_device' has no member named 'nf_hooks_ingress'

vim +96 net/netfilter/core.c

    90	{
    91		switch (reg->pf) {
    92		case NFPROTO_NETDEV:
    93			/* We already checked in nf_register_net_hook() that this is
    94			 * used from ingress.
    95			 */
  > 96			rcu_assign_pointer(reg->dev->nf_hooks_ingress, entry);
    97			break;
    98		default:
    99			rcu_assign_pointer(net->nf.hooks[reg->pf][reg->hooknum],

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux