* [alobakin:pr/21 8/10] drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: error: call to undeclared function 'xdp_do_flush_map'; ISO C99 and later do not support implicit function declarations
@ 2023-11-18 15:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-18 15:11 UTC (permalink / raw)
To: Michal Kubiak; +Cc: llvm, oe-kbuild-all
tree: https://github.com/alobakin/linux pr/21
head: 17e2d4276ad07f26ea53c62f51094d0b388aabfb
commit: 182d94b17320b2a4dd20c84605816a1645a85290 [8/10] idpf: add support for XDP_REDIRECT
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20231118/202311182318.8vcqyUX2-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231118/202311182318.8vcqyUX2-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/202311182318.8vcqyUX2-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/intel/idpf/idpf_dev.c:4:
In file included from drivers/net/ethernet/intel/idpf/idpf.h:27:
>> drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: error: call to undeclared function 'xdp_do_flush_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
xdp_do_flush_map();
^
drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: note: did you mean 'xdp_do_flush'?
include/linux/filter.h:1026:6: note: 'xdp_do_flush' declared here
void xdp_do_flush(void);
^
1 error generated.
--
In file included from drivers/net/ethernet/intel/idpf/idpf_main.c:4:
In file included from drivers/net/ethernet/intel/idpf/idpf.h:27:
>> drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: error: call to undeclared function 'xdp_do_flush_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
xdp_do_flush_map();
^
drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: note: did you mean 'xdp_do_flush'?
include/linux/filter.h:1026:6: note: 'xdp_do_flush' declared here
void xdp_do_flush(void);
^
drivers/net/ethernet/intel/idpf/idpf_main.c:162:39: warning: shift count >= width of type [-Wshift-count-overflow]
err = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:77:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
1 warning and 1 error generated.
vim +/xdp_do_flush_map +1103 drivers/net/ethernet/intel/idpf/idpf_txrx.h
1090
1091 /**
1092 * idpf_finalize_xdp_rx - Bump XDP Tx tail and/or flush redirect map
1093 * @xdpq: XDP Tx queue
1094 * @xdp_act: Logical OR of flags of XDP actions that require finalization
1095 *
1096 * This function bumps XDP Tx tail and/or flush redirect map, and
1097 * should be called when a batch of packets has been processed in the
1098 * napi loop.
1099 */
1100 static inline void idpf_finalize_xdp_rx(struct idpf_queue *xdpq, u32 xdp_act)
1101 {
1102 if (xdp_act & IDPF_XDP_ACT_FINALIZE_REDIR)
> 1103 xdp_do_flush_map();
1104 if (xdp_act & IDPF_XDP_ACT_FINALIZE_TX) {
1105 idpf_set_rs_bit(xdpq);
1106 idpf_xdpq_update_tail(xdpq);
1107 }
1108 }
1109
--
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-11-18 15:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-18 15:11 [alobakin:pr/21 8/10] drivers/net/ethernet/intel/idpf/idpf_txrx.h:1103:3: error: call to undeclared function 'xdp_do_flush_map'; ISO C99 and later do not support implicit function declarations 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