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

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

 



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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux