Re: [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k
From: kernel test robot
Date: Fri Oct 23 2026 - 21:00:00 EST
Hi vmukunda,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/vmukunda/octeontx2-af-Fix-npc_delete_flow-counter-read-for-cn20k/20261023-100112
base: net/main
patch link: https://lore.kernel.org/r/20261023100112.3402726-1-vmukunda%40marvell.com
patch subject: [PATCH net] octeontx2-af: Fix npc_delete_flow counter read for cn20k
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20261024/202610240855.NijJJoJD-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261024/202610240855.NijJJoJD-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/202610240855.NijJJoJD-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/marvell/octeontx2/af/rvu.h:13,
from drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:11:
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c: In function 'rvu_mbox_handler_npc_delete_flow':
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:1962:58: error: 'rvu_pdev' undeclared (first use in this function)
1962 | if (blkaddr && !is_cn20k(rvu_pdev))
| ^~~~~~~~
include/linux/soc/marvell/silicons.h:22:41: note: in definition of macro 'is_cn20k'
22 | #define is_cn20k(pdev) ((void)(pdev), 0)
| ^~~~
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:1962:58: note: each undeclared identifier is reported only once for each function it appears in
include/linux/soc/marvell/silicons.h:22:41: note: in definition of macro 'is_cn20k'
22 | #define is_cn20k(pdev) ((void)(pdev), 0)
| ^~~~
>> include/linux/soc/marvell/silicons.h:22:46: warning: left-hand operand of comma expression has no effect [-Wunused-value]
22 | #define is_cn20k(pdev) ((void)(pdev), 0)
| ^
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:1962:49: note: in expansion of macro 'is_cn20k'
1962 | if (blkaddr && !is_cn20k(rvu_pdev))
| ^~~~~~~~
vim +22 include/linux/soc/marvell/silicons.h
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 12
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 13 #define CN20K_CHIPID 0x20
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 14 /*
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 15 * Silicon check for CN20K family
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 16 */
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 17 static inline bool is_cn20k(struct pci_dev *pdev)
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 18 {
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 19 return (pdev->subsystem_device & 0xFF) == CN20K_CHIPID;
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 20 }
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 21 #else
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 @22 #define is_cn20k(pdev) ((void)(pdev), 0)
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 23 #endif
25d51ebf0f54f9 Subbaraya Sundeep 2025-06-11 24
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki