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

From: Nikolay Aleksandrov <[email-masked]>
Date: Tue, 6 Oct 2015 14:43:01 +0200

On 10/06/2015 02:30 PM, kbuild test robot wrote:
> 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]
>     }
>     ^

This is incorrect, the structure is in net-next. My previous set introduced it:
commit 5127c81f84de ("bridge: netlink: export root id")

Cheers,
 Nik