Hi Vladimir,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Vladimir-Oltean/Better-support-f...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
31222162557ca85808b9985de7e519041561f455
config: arm-randconfig-r025-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
fcc1ce00931751ac02498986feb37744e9ace8de)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://github.com/0day-ci/linux/commit/a25b1e23ecf26f2dc45247ebcf4ff5bde...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Vladimir-Oltean/Better-support-for-sandwiched-LAGs-with-bridge-and-DSA/20210319-072218
git checkout a25b1e23ecf26f2dc45247ebcf4ff5bde213ac42
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from net/bridge/br_device.c:19:
In file included from net/bridge/br_private.h:13:
> include/linux/if_bridge.h:204:5: warning: no previous prototype
for function 'switchdev_bridge_port_offload' [-Wmissing-prototypes]
int
switchdev_bridge_port_offload(struct net_device *dev,
^
include/linux/if_bridge.h:204:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
int switchdev_bridge_port_offload(struct net_device *dev,
^
static
> include/linux/if_bridge.h:210:5: warning: no previous prototype
for function 'switchdev_bridge_port_unoffload' [-Wmissing-prototypes]
int
switchdev_bridge_port_unoffload(struct net_device *dev)
^
include/linux/if_bridge.h:210:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
int switchdev_bridge_port_unoffload(struct net_device *dev)
^
static
> include/linux/if_bridge.h:212:1: error: non-void function does
not return a value [-Werror,-Wreturn-type]
}
^
2 warnings and 1 error generated.
--
In file included from net/bridge/br_netlink_tunnel.c:18:
In file included from net/bridge/br_private.h:13:
> include/linux/if_bridge.h:204:5: warning: no previous prototype
for function 'switchdev_bridge_port_offload' [-Wmissing-prototypes]
int
switchdev_bridge_port_offload(struct net_device *dev,
^
include/linux/if_bridge.h:204:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
int switchdev_bridge_port_offload(struct net_device *dev,
^
static
> include/linux/if_bridge.h:210:5: warning: no previous prototype
for function 'switchdev_bridge_port_unoffload' [-Wmissing-prototypes]
int
switchdev_bridge_port_unoffload(struct net_device *dev)
^
include/linux/if_bridge.h:210:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
int switchdev_bridge_port_unoffload(struct net_device *dev)
^
static
> include/linux/if_bridge.h:212:1: error: non-void function does
not return a value [-Werror,-Wreturn-type]
}
^
net/bridge/br_netlink_tunnel.c:29:6: warning: no previous prototype for function
'vlan_tunid_inrange' [-Wmissing-prototypes]
bool vlan_tunid_inrange(const struct net_bridge_vlan *v_curr,
^
net/bridge/br_netlink_tunnel.c:29:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
bool vlan_tunid_inrange(const struct net_bridge_vlan *v_curr,
^
static
net/bridge/br_netlink_tunnel.c:196:5: warning: no previous prototype for function
'br_vlan_tunnel_info' [-Wmissing-prototypes]
int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd,
^
net/bridge/br_netlink_tunnel.c:196:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int br_vlan_tunnel_info(const struct net_bridge_port *p, int cmd,
^
static
4 warnings and 1 error generated.
vim +212 include/linux/if_bridge.h
198
199 #if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_NET_SWITCHDEV)
200 int switchdev_bridge_port_offload(struct net_device *dev,
201 struct netlink_ext_ack *extack);
202 int switchdev_bridge_port_unoffload(struct net_device *dev);
203 #else
204 int switchdev_bridge_port_offload(struct net_device *dev,
205 struct netlink_ext_ack *extack)
206 {
207 return 0;
208 }
209
210 int switchdev_bridge_port_unoffload(struct net_device *dev)
211 {
212 }
213 #endif
214
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org