* [leon-rdma:move-drivers 11/16] drivers/infiniband/hw/mlx5/ipoib.c:581:10: error: use of undeclared identifier 'mlx5e_skb_from_cqe_linear'
@ 2025-05-31 6:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-31 6:41 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git move-drivers
head: 59b028d17e1dc229f52b9c2081b90fbb11798b27
commit: 7e94a32c6f4e8a718894671b0bf624bee281d605 [11/16] RDMA/mlx5: Move IPoIB to relevant subsystem
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250531/202505311416.2NUNk5bO-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250531/202505311416.2NUNk5bO-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/202505311416.2NUNk5bO-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/infiniband/hw/mlx5/ipoib.c:581:10: error: use of undeclared identifier 'mlx5e_skb_from_cqe_linear'
581 | mlx5e_skb_from_cqe_linear,
| ^
>> drivers/infiniband/hw/mlx5/ipoib.c:581:10: error: call to undeclared function 'mlx5e_skb_from_cqe_linear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>> drivers/infiniband/hw/mlx5/ipoib.c:582:10: error: use of undeclared identifier 'mlx5e_skb_from_cqe_nonlinear'; did you mean 'mlx5e_skb_from_cqe_linear'?
582 | mlx5e_skb_from_cqe_nonlinear,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| mlx5e_skb_from_cqe_linear
include/linux/indirect_call_wrapper.h:24:26: note: expanded from macro 'INDIRECT_CALL_2'
24 | INDIRECT_CALL_1(f, f1, __VA_ARGS__); \
| ^
include/linux/indirect_call_wrapper.h:19:15: note: expanded from macro 'INDIRECT_CALL_1'
19 | likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__); \
| ^
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
76 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
drivers/infiniband/hw/mlx5/ipoib.c:581:10: note: 'mlx5e_skb_from_cqe_linear' declared here
581 | mlx5e_skb_from_cqe_linear,
| ^
>> drivers/infiniband/hw/mlx5/ipoib.c:582:10: error: call to undeclared function 'mlx5e_skb_from_cqe_nonlinear'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
582 | mlx5e_skb_from_cqe_nonlinear,
| ^
drivers/infiniband/hw/mlx5/ipoib.c:580:8: warning: pointer/integer type mismatch in conditional expression ('int' and 'struct sk_buff *') [-Wconditional-type-mismatch]
580 | skb = INDIRECT_CALL_2(rq->wqe.skb_from_cqe,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581 | mlx5e_skb_from_cqe_linear,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
582 | mlx5e_skb_from_cqe_nonlinear,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
583 | rq, wi, cqe, cqe_bcnt);
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/indirect_call_wrapper.h:24:7: note: expanded from macro 'INDIRECT_CALL_2'
24 | INDIRECT_CALL_1(f, f1, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/indirect_call_wrapper.h:19:19: note: expanded from macro 'INDIRECT_CALL_1'
19 | likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__); \
| ^ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
>> drivers/infiniband/hw/mlx5/ipoib.c:580:6: error: assigning to 'struct sk_buff *' from incompatible type 'void'
580 | skb = INDIRECT_CALL_2(rq->wqe.skb_from_cqe,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
581 | mlx5e_skb_from_cqe_linear,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
582 | mlx5e_skb_from_cqe_nonlinear,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
583 | rq, wi, cqe, cqe_bcnt);
| ~~~~~~~~~~~~~~~~~~~~~~
1 warning and 5 errors generated.
vim +/mlx5e_skb_from_cqe_linear +581 drivers/infiniband/hw/mlx5/ipoib.c
562
563 static void mlx5i_handle_rx_cqe(struct mlx5e_rq *rq, struct mlx5_cqe64 *cqe)
564 {
565 struct mlx5_wq_cyc *wq = &rq->wqe.wq;
566 struct mlx5e_wqe_frag_info *wi;
567 struct sk_buff *skb;
568 u32 cqe_bcnt;
569 u16 ci;
570
571 ci = mlx5_wq_cyc_ctr2ix(wq, be16_to_cpu(cqe->wqe_counter));
572 wi = mlx5e_get_frag(rq, ci);
573 cqe_bcnt = be32_to_cpu(cqe->byte_cnt);
574
575 if (unlikely(MLX5E_RX_ERR_CQE(cqe))) {
576 rq->stats->wqe_err++;
577 goto wq_cyc_pop;
578 }
579
> 580 skb = INDIRECT_CALL_2(rq->wqe.skb_from_cqe,
> 581 mlx5e_skb_from_cqe_linear,
> 582 mlx5e_skb_from_cqe_nonlinear,
583 rq, wi, cqe, cqe_bcnt);
584 if (!skb)
585 goto wq_cyc_pop;
586
587 mlx5i_complete_rx_cqe(rq, cqe, cqe_bcnt, skb);
588 if (unlikely(!skb->dev)) {
589 dev_kfree_skb_any(skb);
590 goto wq_cyc_pop;
591 }
592 napi_gro_receive(rq->cq.napi, skb);
593
594 wq_cyc_pop:
595 mlx5_wq_cyc_pop(wq);
596 }
597
--
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:[~2025-05-31 6:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-31 6:41 [leon-rdma:move-drivers 11/16] drivers/infiniband/hw/mlx5/ipoib.c:581:10: error: use of undeclared identifier 'mlx5e_skb_from_cqe_linear' 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