[Bridge] [PATCH net-next 1/8] bridge: netlink: export port's root id

kbuild test robot lkp at intel.com
Tue Oct 6 12:30:11 UTC 2015


Hi Nikolay,

[auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: x86_64-randconfig-x016-201540 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

   net/bridge/br_netlink.c: In function 'br_port_info_size':
>> net/bridge/br_netlink.c:116:27: error: invalid application of 'sizeof' to incomplete type 'struct ifla_bridge_id'
      + nla_total_size(sizeof(struct ifla_bridge_id)) /* IFLA_BRPORT_ROOT_ID */
                              ^
   net/bridge/br_netlink.c: In function 'br_port_fill_attrs':
   net/bridge/br_netlink.c:151:47: error: invalid application of 'sizeof' to incomplete type 'struct ifla_bridge_id'
         nla_put(skb, IFLA_BRPORT_ROOT_ID, sizeof(struct ifla_bridge_id),
                                                  ^
   net/bridge/br_netlink.c: In function 'br_port_info_size':
>> net/bridge/br_netlink.c:118:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +116 net/bridge/br_netlink.c

   110			+ nla_total_size(1)	/* IFLA_BRPORT_PROTECT */
   111			+ nla_total_size(1)	/* IFLA_BRPORT_FAST_LEAVE */
   112			+ nla_total_size(1)	/* IFLA_BRPORT_LEARNING */
   113			+ nla_total_size(1)	/* IFLA_BRPORT_UNICAST_FLOOD */
   114			+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP */
   115			+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP_WIFI */
 > 116			+ nla_total_size(sizeof(struct ifla_bridge_id))	/* IFLA_BRPORT_ROOT_ID */
   117			+ 0;
 > 118	}
   119	
   120	static inline size_t br_nlmsg_size(struct net_device *dev, u32 filter_mask)
   121	{

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 25228 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/bridge/attachments/20151006/01e922c3/attachment-0001.obj>


More information about the Bridge mailing list