Hi,

[auto build test ERROR on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Gavin-Shan/NCSI-Support/20160715-190549
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

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

   In file included from include/linux/swab.h:4:0,
                    from include/uapi/linux/byteorder/little_endian.h:12,
                    from include/linux/byteorder/little_endian.h:4,
                    from arch/x86/include/uapi/asm/byteorder.h:4,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/x86/include/asm/bitops.h:504,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from net/ncsi/ncsi-manage.c:10:
   net/ncsi/ncsi-manage.c: In function 'ncsi_register_dev':
>> net/ncsi/ncsi-manage.c:1134:32: error: 'ETH_P_NCSI' undeclared (first use in 
>> this function)
     ndp->ptype.type = cpu_to_be16(ETH_P_NCSI);
                                   ^
   include/uapi/linux/swab.h:100:54: note: in definition of macro '__swab16'
    #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
                                                         ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro 
'__cpu_to_be16'
    #define cpu_to_be16 __cpu_to_be16
                        ^~~~~~~~~~~~~
>> net/ncsi/ncsi-manage.c:1134:20: note: in expansion of macro 'cpu_to_be16'
     ndp->ptype.type = cpu_to_be16(ETH_P_NCSI);
                       ^~~~~~~~~~~
   net/ncsi/ncsi-manage.c:1134:32: note: each undeclared identifier is reported 
only once for each function it appears in
     ndp->ptype.type = cpu_to_be16(ETH_P_NCSI);
                                   ^
   include/uapi/linux/swab.h:100:54: note: in definition of macro '__swab16'
    #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
                                                         ^
   include/linux/byteorder/generic.h:95:21: note: in expansion of macro 
'__cpu_to_be16'
    #define cpu_to_be16 __cpu_to_be16
                        ^~~~~~~~~~~~~
>> net/ncsi/ncsi-manage.c:1134:20: note: in expansion of macro 'cpu_to_be16'
     ndp->ptype.type = cpu_to_be16(ETH_P_NCSI);
                       ^~~~~~~~~~~

vim +/ETH_P_NCSI +1134 net/ncsi/ncsi-manage.c

  1128                  register_inet6addr_notifier(&ncsi_inet6addr_notifier);
  1129  #endif
  1130          list_add_tail_rcu(&ndp->node, &ncsi_dev_list);
  1131          spin_unlock_irqrestore(&ncsi_dev_lock, flags);
  1132  
  1133          /* Register NCSI packet Rx handler */
> 1134          ndp->ptype.type = cpu_to_be16(ETH_P_NCSI);
  1135          ndp->ptype.func = ncsi_rcv_rsp;
  1136          ndp->ptype.dev = dev;
  1137          dev_add_pack(&ndp->ptype);

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

Attachment: .config.gz
Description: Binary data

Reply via email to