linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 7499/8213] drivers/net/ethernet/intel/ice/ice_base.c:525:16: error: variable 'desc' has initializer but incomplete type
@ 2023-12-16  5:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-16  5:17 UTC (permalink / raw)
  To: Larysa Zaremba
  Cc: oe-kbuild-all, Linux Memory Management List, Alexei Starovoitov,
	Maciej Fijalkowski

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   17cb8a20bde66a520a2ca7aad1063e1ce7382240
commit: d68d707dcbbf6a9cfe378fc2eb3ffffd5b47727e [7499/8213] ice: Support XDP hints in AF_XDP ZC mode
config: arc-randconfig-002-20231215 (https://download.01.org/0day-ci/archive/20231216/202312161324.nZN1zCQT-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231216/202312161324.nZN1zCQT-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312161324.nZN1zCQT-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/net/ethernet/intel/ice/ice_base.c: In function 'ice_xsk_pool_fill_cb':
>> drivers/net/ethernet/intel/ice/ice_base.c:525:16: error: variable 'desc' has initializer but incomplete type
     525 |         struct xsk_cb_desc desc = {};
         |                ^~~~~~~~~~~
>> drivers/net/ethernet/intel/ice/ice_base.c:525:28: error: storage size of 'desc' isn't known
     525 |         struct xsk_cb_desc desc = {};
         |                            ^~~~
>> drivers/net/ethernet/intel/ice/ice_base.c:525:28: warning: unused variable 'desc' [-Wunused-variable]


vim +/desc +525 drivers/net/ethernet/intel/ice/ice_base.c

   521	
   522	static void ice_xsk_pool_fill_cb(struct ice_rx_ring *ring)
   523	{
   524		void *ctx_ptr = &ring->pkt_ctx;
 > 525		struct xsk_cb_desc desc = {};
   526	
   527		XSK_CHECK_PRIV_TYPE(struct ice_xdp_buff);
   528		desc.src = &ctx_ptr;
   529		desc.off = offsetof(struct ice_xdp_buff, pkt_ctx) -
   530			   sizeof(struct xdp_buff);
   531		desc.bytes = sizeof(ctx_ptr);
   532		xsk_pool_fill_cb(ring->xsk_pool, &desc);
   533	}
   534	

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-16  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-16  5:17 [linux-next:master 7499/8213] drivers/net/ethernet/intel/ice/ice_base.c:525:16: error: variable 'desc' has initializer but incomplete type kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox