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/DSA-FDB-isolatio...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
ab44035d308227723b490487ff0feba521e87029
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/c3f584a3a5fcbaf747a1c754720afa897...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Vladimir-Oltean/DSA-FDB-isolation/20210818-200630
git checkout c3f584a3a5fcbaf747a1c754720afa897885c9a7
# 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(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/rocker/rocker_main.c: In function
'rocker_switchdev_fdb_event':
> drivers/net/ethernet/rocker/rocker_main.c:2804:38: error:
'fdb_info' redeclared as different kind of symbol
2804 | struct
switchdev_notifier_fdb_info *fdb_info = ptr;
| ^~~~~~~~
drivers/net/ethernet/rocker/rocker_main.c:2801:43: note: previous definition of
'fdb_info' was here
2801 | struct switchdev_notifier_fdb_info *fdb_info)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
> drivers/net/ethernet/rocker/rocker_main.c:2804:49: error:
'ptr' undeclared (first use in this function)
2804 | struct
switchdev_notifier_fdb_info *fdb_info = ptr;
| ^~~
drivers/net/ethernet/rocker/rocker_main.c:2804:49: note: each undeclared identifier is
reported only once for each function it appears in
vim +/fdb_info +2804 drivers/net/ethernet/rocker/rocker_main.c
2798
2799 static int
2800 rocker_switchdev_fdb_event(unsigned long event, struct net_device *dev,
2801 struct switchdev_notifier_fdb_info *fdb_info)
2802 {
2803 struct rocker_switchdev_event_work *switchdev_work;
2804 struct switchdev_notifier_fdb_info *fdb_info = ptr;
2805 struct rocker_port *rocker_port;
2806
2807 rocker_port = netdev_priv(dev);
2808 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC);
2809 if (WARN_ON(!switchdev_work))
2810 return NOTIFY_BAD;
2811
2812 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work);
2813 switchdev_work->rocker_port = rocker_port;
2814 switchdev_work->event = event;
2815
2816 memcpy(&switchdev_work->fdb_info, ptr,
2817 sizeof(switchdev_work->fdb_info));
2818 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC);
2819 if (unlikely(!switchdev_work->fdb_info.addr)) {
2820 kfree(switchdev_work);
2821 return NOTIFY_BAD;
2822 }
2823
2824 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr,
2825 fdb_info->addr);
2826 /* Take a reference on the rocker device */
2827 dev_hold(dev);
2828
2829 queue_work(rocker_port->rocker->rocker_owq,
2830 &switchdev_work->work);
2831
2832 return NOTIFY_DONE;
2833 }
2834
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org