Subject: Re: [PATCH bpf-next v2 2/9] xsk: add TX timestamp and TX checksum offload support

From: kernel test robot <[email-masked]>
Date: Fri, 15 Sep 2023 09:29:09 +0800

Hi Stanislav,

kernel test robot noticed the following build warnings:

[auto build test WARNING on bpf-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Stanislav-Fomichev/xsk-Support-tx_metadata_len/20230915-051153
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    https://lore.kernel.org/r/20230914210452.2588884-3-sdf%40google.com
patch subject: [PATCH bpf-next v2 2/9] xsk: add TX timestamp and TX checksum offload support
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20230915/[email-masked]/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230915/[email-masked]/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-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All warnings (new ones prefixed by >>):

   In file included from include/net/xdp_sock_drv.h:9,
                    from drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:44:
>> include/net/xdp_sock.h:183:52: warning: 'struct xsk_tx_metadata_comp' declared inside parameter list will not be visible outside of this definition or declaration
     183 | static inline void xsk_tx_metadata_complete(struct xsk_tx_metadata_comp *compl,
         |                                                    ^~~~~~~~~~~~~~~~~~~~

vim +183 include/net/xdp_sock.h

   182	
 > 183	static inline void xsk_tx_metadata_complete(struct xsk_tx_metadata_comp *compl,
   184						    const struct xsk_tx_metadata_ops *ops,
   185						    void *priv)
   186	{
   187	}
   188	

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