Re: [PATCH v2] RDMA/core: quiesce CQ polling before device shutdown on reboot

kernel test robot <[email protected]> Wed, 5 Aug 2026 12:49:49 +0800
Newsgroups dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-rdma,org.kernel.vger.netdev
Message-ID <[email protected]>
Hi Chenguang,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v7.2-rc6 next-20260804]
[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/Chenguang-Zhao/RDMA-core-quiesce-CQ-polling-before-device-shutdown-on-reboot/20260805-044210
base:   linus/master
patch link:    https://lore.kernel.org/r/20260714075558.1420384-1-chenguang.zhao%40linux.dev
patch subject: [PATCH v2] RDMA/core: quiesce CQ polling before device shutdown on reboot
config: s390-randconfig-002-20260805 (https://download.01.org/0day-ci/archive/20260805/[email protected]/config)
compiler: s390-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:23,
                    from drivers/net/ethernet/mellanox/mlx5/core/cq.c:33:
   include/linux/mlx5/driver.h: In function 'mlx5_core_is_shutting_down':
>> include/linux/mlx5/driver.h:661:58: error: dereferencing pointer to incomplete type 'struct mlx5_core_dev'
     661 |  return test_bit(MLX5_INTERFACE_STATE_SHUTTING_DOWN, &dev->intf_state);
         |                                                          ^~
   include/linux/bitops.h:44:37: note: in definition of macro 'bitop'
      44 |    __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \
         |                                     ^~~~
   include/linux/mlx5/driver.h:661:9: note: in expansion of macro 'test_bit'
     661 |  return test_bit(MLX5_INTERFACE_STATE_SHUTTING_DOWN, &dev->intf_state);
         |         ^~~~~~~~
--
   In file included from include/linux/kernel.h:23,
                    from drivers/net/ethernet/mellanox/mlx5/core/health.c:33:
   include/linux/mlx5/driver.h: In function 'mlx5_core_is_shutting_down':
>> include/linux/mlx5/driver.h:661:58: error: dereferencing pointer to incomplete type 'struct mlx5_core_dev'
     661 |  return test_bit(MLX5_INTERFACE_STATE_SHUTTING_DOWN, &dev->intf_state);
         |                                                          ^~
   include/linux/bitops.h:44:37: note: in definition of macro 'bitop'
      44 |    __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \
         |                                     ^~~~
   include/linux/mlx5/driver.h:661:9: note: in expansion of macro 'test_bit'
     661 |  return test_bit(MLX5_INTERFACE_STATE_SHUTTING_DOWN, &dev->intf_state);
         |         ^~~~~~~~
   In file included from drivers/net/ethernet/mellanox/mlx5/core/health.c:37:
   include/linux/mlx5/driver.h:662:1: warning: control reaches end of non-void function [-Wreturn-type]
     662 | }
         | ^


vim +661 include/linux/mlx5/driver.h

   658	
   659	static inline bool mlx5_core_is_shutting_down(struct mlx5_core_dev *dev)
   660	{
 > 661		return test_bit(MLX5_INTERFACE_STATE_SHUTTING_DOWN, &dev->intf_state);
   662	}
   663	

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