[jpirko-mlxsw:combined_queue 1866/1919] net/bridge/br_mdb.c:564: undefined reference to `br_switchdev_mdb_notify'

From: kernel test robot
Date: Fri Oct 29 2021 - 16:33:17 EST


tree: https://github.com/jpirko/linux_mlxsw combined_queue
head: cc90b1ce366c29e26c7b67e86a3f87ec1500fc1f
commit: 9776457c784f6549d43f80eb96d4122b51558258 [1866/1919] net: bridge: mdb: move all switchdev logic to br_switchdev.c
config: i386-randconfig-a003-20211028 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/jpirko/linux_mlxsw/commit/9776457c784f6549d43f80eb96d4122b51558258
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw combined_queue
git checkout 9776457c784f6549d43f80eb96d4122b51558258
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

ld: net/bridge/br_mdb.o: in function `br_mdb_notify':
>> net/bridge/br_mdb.c:564: undefined reference to `br_switchdev_mdb_notify'


vim +564 net/bridge/br_mdb.c

37a393bc4932d7 Cong Wang 2012-12-11 554
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 555 void br_mdb_notify(struct net_device *dev,
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 556 struct net_bridge_mdb_entry *mp,
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 557 struct net_bridge_port_group *pg,
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 558 int type)
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 559 {
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 560 struct net *net = dev_net(dev);
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 561 struct sk_buff *skb;
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 562 int err = -ENOBUFS;
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 563
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 @564 br_switchdev_mdb_notify(dev, mp, pg, type);
9ae9ff994b0e42 Vladimir Oltean 2021-10-27 565
81f1983852fd1f Nikolay Aleksandrov 2020-09-07 566 skb = nlmsg_new(rtnl_mdb_nlmsg_size(pg), GFP_ATOMIC);
37a393bc4932d7 Cong Wang 2012-12-11 567 if (!skb)
37a393bc4932d7 Cong Wang 2012-12-11 568 goto errout;
37a393bc4932d7 Cong Wang 2012-12-11 569
81f1983852fd1f Nikolay Aleksandrov 2020-09-07 570 err = nlmsg_populate_mdb_fill(skb, dev, mp, pg, type);
37a393bc4932d7 Cong Wang 2012-12-11 571 if (err < 0) {
37a393bc4932d7 Cong Wang 2012-12-11 572 kfree_skb(skb);
37a393bc4932d7 Cong Wang 2012-12-11 573 goto errout;
37a393bc4932d7 Cong Wang 2012-12-11 574 }
37a393bc4932d7 Cong Wang 2012-12-11 575
37a393bc4932d7 Cong Wang 2012-12-11 576 rtnl_notify(skb, net, 0, RTNLGRP_MDB, NULL, GFP_ATOMIC);
37a393bc4932d7 Cong Wang 2012-12-11 577 return;
37a393bc4932d7 Cong Wang 2012-12-11 578 errout:
37a393bc4932d7 Cong Wang 2012-12-11 579 rtnl_set_sk_err(net, RTNLGRP_MDB, err);
37a393bc4932d7 Cong Wang 2012-12-11 580 }
37a393bc4932d7 Cong Wang 2012-12-11 581

:::::: The code at line 564 was first introduced by commit
:::::: 9ae9ff994b0e42eefcc33f8adda1ec498f79338e net: bridge: split out the switchdev portion of br_mdb_notify

:::::: TO: Vladimir Oltean <vladimir.oltean@xxxxxxx>
:::::: CC: Jakub Kicinski <kuba@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip