public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michal Kubiak <michal.kubiak@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 18 Nov 2023 23:11:46 +0800	[thread overview]
Message-ID: <202311182318.8vcqyUX2-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-11-18 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202311182318.8vcqyUX2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=michal.kubiak@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox