All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sashal-linux-stable:queue-5.10 1/74] drivers/net/ethernet/mellanox/mlx5/core/en_main.c:4406:6: error: implicit declaration of function 'mlx5_fpga_is_ipsec_device'
Date: Thu, 18 Mar 2021 16:39:28 +0800	[thread overview]
Message-ID: <202103181614.mUPEdKfo-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3034 bytes --]

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/commit/?id=854f43c099ea41ee621e53b6968bd73a8a0d68b0
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37574 bytes --]

                 reply	other threads:[~2021-03-18  8:39 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=202103181614.mUPEdKfo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.