Re: [PATCH 3/3] net:bonding:Add support for IPV6 RLB to balance-alb mode

From: kernel test robot
Date: Fri Mar 11 2022 - 11:47:54 EST


Hi Sun,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 2a9eef868a997ec575c2e6ae885e91313f635d59]

url: https://github.com/0day-ci/linux/commits/Sun-Shouxin/net-bonding-Add-support-for-IPV6-RLB-to-balance-alb-mode/20220311-110221
base: 2a9eef868a997ec575c2e6ae885e91313f635d59
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220312/202203120015.kkExdFHA-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6)
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
# https://github.com/0day-ci/linux/commit/dde3df4ab3030a55968f48dc96ff2014d8f18410
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sun-Shouxin/net-bonding-Add-support-for-IPV6-RLB-to-balance-alb-mode/20220311-110221
git checkout dde3df4ab3030a55968f48dc96ff2014d8f18410
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/bonding/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/net/bonding/bond_alb.c:986:6: warning: no previous prototype for function 'rlb6_update_client' [-Wmissing-prototypes]
void rlb6_update_client(struct rlb_client_info *client_info)
^
drivers/net/bonding/bond_alb.c:986:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void rlb6_update_client(struct rlb_client_info *client_info)
^
static
1 warning generated.


vim +/rlb6_update_client +986 drivers/net/bonding/bond_alb.c

984
985 /*********************** ipv6 rlb specific functions ***************************/
> 986 void rlb6_update_client(struct rlb_client_info *client_info)
987 {
988 int i;
989
990 if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst))
991 return;
992
993 for (i = 0; i < RLB_ARP_BURST_SIZE; i++) {
994 ndisc_bond_send_na(client_info->slave->dev,
995 &client_info->ip6_dst,
996 &client_info->ip6_src,
997 false, false, true, true,
998 client_info->vlan_id,
999 client_info->mac_dst,
1000 client_info->slave->dev->dev_addr);
1001 }
1002 }
1003

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx