Re: [PATCH] net/mlx5: poll mlx5 eq during irq migration

From: kernel test robot

Date: Thu Mar 05 2026 - 03:46:08 EST


Hi Praveen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master v7.0-rc2 next-20260304]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Praveen-Kumar-Kannoju/net-mlx5-poll-mlx5-eq-during-irq-migration/20260305-003505
base: net-next/main
patch link: https://lore.kernel.org/r/20260304161704.910564-1-praveen.kannoju%40oracle.com
patch subject: [PATCH] net/mlx5: poll mlx5 eq during irq migration
config: x86_64-buildonly-randconfig-002-20260305 (https://download.01.org/0day-ci/archive/20260305/202603051647.fykhqQ3H-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603051647.fykhqQ3H-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/202603051647.fykhqQ3H-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/mellanox/mlx5/core/eq.c:958:6: warning: no previous prototype for function 'mlx5_eq_reap_irq_notify' [-Wmissing-prototypes]
958 | void mlx5_eq_reap_irq_notify(struct irq_affinity_notify *notify, const cpumask_t *mask)
| ^
drivers/net/ethernet/mellanox/mlx5/core/eq.c:958:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
958 | void mlx5_eq_reap_irq_notify(struct irq_affinity_notify *notify, const cpumask_t *mask)
| ^
| static
>> drivers/net/ethernet/mellanox/mlx5/core/eq.c:978:6: warning: no previous prototype for function 'mlx5_eq_reap_irq_release' [-Wmissing-prototypes]
978 | void mlx5_eq_reap_irq_release(struct kref *ref) {}
| ^
drivers/net/ethernet/mellanox/mlx5/core/eq.c:978:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
978 | void mlx5_eq_reap_irq_release(struct kref *ref) {}
| ^
| static
2 warnings generated.


vim +/mlx5_eq_reap_irq_notify +958 drivers/net/ethernet/mellanox/mlx5/core/eq.c

957
> 958 void mlx5_eq_reap_irq_notify(struct irq_affinity_notify *notify, const cpumask_t *mask)
959 {
960 u32 eqe_count;
961 struct mlx5_eq_comp *eq = container_of(notify, struct mlx5_eq_comp, notify);
962
963 if (mlx5_reap_eq_irq_aff_change) {
964 mlx5_core_warn(eq->core.dev, "irqn = 0x%x migration notified, EQ 0x%x: Cons = 0x%x\n",
965 eq->core.irqn, eq->core.eqn, eq->core.cons_index);
966
967 while (!rtnl_trylock())
968 msleep(20);
969
970 eqe_count = mlx5_eq_poll_irq_disabled(eq);
971 if (eqe_count)
972 mlx5_core_warn(eq->core.dev, "Recovered %d eqes on EQ 0x%x\n",
973 eqe_count, eq->core.eqn);
974 rtnl_unlock();
975 }
976 }
977
> 978 void mlx5_eq_reap_irq_release(struct kref *ref) {}
979

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