[linux-next:master 7499/8213] drivers/net/ethernet/intel/ice/ice_base.c:525:16: error: variable 'desc' has initializer but incomplete type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@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/202312161324.nZN1zCQT-lkp@xxxxxxxxx/

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux