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: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
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/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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm64 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/ti/am65-cpsw-switchdev.c: In function
'am65_cpsw_switchdev_fdb_event':
> drivers/net/ethernet/ti/am65-cpsw-switchdev.c:461:43: error:
'ptr' undeclared (first use in this function)
461 |
memcpy(&switchdev_work->fdb_info, ptr,
| ^~~
drivers/net/ethernet/ti/am65-cpsw-switchdev.c:461:43: note: each undeclared identifier
is reported only once for each function it appears in
vim +/ptr +461 drivers/net/ethernet/ti/am65-cpsw-switchdev.c
c3f584a3a5fcba Vladimir Oltean 2021-08-18 442
c3f584a3a5fcba Vladimir Oltean 2021-08-18 443 static int
am65_cpsw_switchdev_fdb_event(struct net_device *ndev,
c3f584a3a5fcba Vladimir Oltean 2021-08-18 444 unsigned long event,
c3f584a3a5fcba Vladimir Oltean 2021-08-18 445 struct
switchdev_notifier_fdb_info *fdb_info)
c3f584a3a5fcba Vladimir Oltean 2021-08-18 446 {
c3f584a3a5fcba Vladimir Oltean 2021-08-18 447 struct am65_cpsw_switchdev_event_work
*switchdev_work;
c3f584a3a5fcba Vladimir Oltean 2021-08-18 448 struct am65_cpsw_port *port =
am65_ndev_to_port(ndev);
c3f584a3a5fcba Vladimir Oltean 2021-08-18 449
c3f584a3a5fcba Vladimir Oltean 2021-08-18 450 if (!am65_cpsw_port_dev_check(ndev))
c3f584a3a5fcba Vladimir Oltean 2021-08-18 451 return 0;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 452
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 453 switchdev_work =
kzalloc(sizeof(*switchdev_work), GFP_ATOMIC);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 454 if (WARN_ON(!switchdev_work))
c3f584a3a5fcba Vladimir Oltean 2021-08-18 455 return -ENOMEM;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 456
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 457
INIT_WORK(&switchdev_work->work, am65_cpsw_switchdev_event_work);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 458 switchdev_work->port = port;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 459 switchdev_work->event = event;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 460
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 @461
memcpy(&switchdev_work->fdb_info, ptr,
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 462
sizeof(switchdev_work->fdb_info));
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 463 switchdev_work->fdb_info.addr =
kzalloc(ETH_ALEN, GFP_ATOMIC);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 464 if
(!switchdev_work->fdb_info.addr)
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 465 goto err_addr_alloc;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 466 ether_addr_copy((u8
*)switchdev_work->fdb_info.addr,
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 467 fdb_info->addr);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 468 dev_hold(ndev);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 469
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 470 queue_work(system_long_wq,
&switchdev_work->work);
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 471
c3f584a3a5fcba Vladimir Oltean 2021-08-18 472 return 0;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 473
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 474 err_addr_alloc:
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 475 kfree(switchdev_work);
c3f584a3a5fcba Vladimir Oltean 2021-08-18 476 return -ENOMEM;
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 477 }
86e8b070b25e3c Vignesh Raghavendra 2021-02-11 478
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org