tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-5.10
head: 9ced6633127bd25a94939777d9ecda54800859fc
commit: 854f43c099ea41ee621e53b6968bd73a8a0d68b0 [1/74] net/mlx5e: Enable XDP for
Connect-X IPsec capable devices
config: x86_64-randconfig-a004-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
6db3ab2903f42712f44000afb5aa467efbd25f35)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout 854f43c099ea41ee621e53b6968bd73a8a0d68b0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/net/ethernet/mellanox/mlx5/core/en_main.c:4406:6: error:
implicit declaration of function 'mlx5_fpga_is_ipsec_device'
[-Werror,-Wimplicit-function-declaration]
if
(mlx5_fpga_is_ipsec_device(priv->mdev)) {
^
1 error generated.
vim +/mlx5_fpga_is_ipsec_device +4406 drivers/net/ethernet/mellanox/mlx5/core/en_main.c
4395
4396 static int mlx5e_xdp_allowed(struct mlx5e_priv *priv, struct bpf_prog *prog)
4397 {
4398 struct net_device *netdev = priv->netdev;
4399 struct mlx5e_channels new_channels = {};
4400
4401 if (priv->channels.params.lro_en) {
4402 netdev_warn(netdev, "can't set XDP while LRO is on, disable LRO
first\n");
4403 return -EINVAL;
4404 }
4405
4406 if (mlx5_fpga_is_ipsec_device(priv->mdev)) {
4407 netdev_warn(netdev,
4408 "XDP is not available on Innova cards with IPsec support\n");
4409 return -EINVAL;
4410 }
4411
4412 new_channels.params = priv->channels.params;
4413 new_channels.params.xdp_prog = prog;
4414
4415 /* No XSK params: AF_XDP can't be enabled yet at the point of setting
4416 * the XDP program.
4417 */
4418 if (!mlx5e_rx_is_linear_skb(&new_channels.params, NULL)) {
4419 netdev_warn(netdev, "XDP is not allowed with MTU(%d) > %d\n",
4420 new_channels.params.sw_mtu,
4421 mlx5e_xdp_max_mtu(&new_channels.params, NULL));
4422 return -EINVAL;
4423 }
4424
4425 return 0;
4426 }
4427
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org