Re: [net-next 2/2] Octeontx2-pf: Add support for DMAC_FILTER trap

From: kernel test robot

Date: Wed Jan 14 2026 - 10:40:01 EST


Hi Hariprasad,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Hariprasad-Kelam/octeontx2-af-Mailbox-handlers-to-fetch-DMAC-filter-drop-counter/20260114-150046
base: net-next/main
patch link: https://lore.kernel.org/r/20260114065743.2162706-3-hkelam%40marvell.com
patch subject: [net-next 2/2] Octeontx2-pf: Add support for DMAC_FILTER trap
config: um-allyesconfig (https://download.01.org/0day-ci/archive/20260114/202601142356.TWrRByBh-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260114/202601142356.TWrRByBh-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601142356.TWrRByBh-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h:31,
from drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:22:
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.h:30:40: warning: 'otx2_trap_groups_arr' defined but not used [-Wunused-const-variable=]
30 | static const struct devlink_trap_group otx2_trap_groups_arr[] = {
| ^~~~~~~~~~~~~~~~~~~~


vim +/otx2_trap_groups_arr +30 drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.h

29
> 30 static const struct devlink_trap_group otx2_trap_groups_arr[] = {
31 /* No policer is associated with following groups (policerid == 0)*/
32 DEVLINK_TRAP_GROUP_GENERIC(L2_DROPS, 0),
33 };
34

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki