tree:
https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git queue-next
head: 5c5a42bb5d698f59a292fe847bfccf65b693ca79
commit: 80a0334aff57bce1b9e5d860854a4b474c3030b9 [838/854] net/mlx5e: E-Switch, Maintain
vhca_id to vport_num mapping
config: x86_64-randconfig-a015-20210209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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/saeed/linux.git/commit/?i...
git remote add saeed
https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
git fetch --no-tags saeed queue-next
git checkout 80a0334aff57bce1b9e5d860854a4b474c3030b9
# 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/eswitch_offloads.c:2892:8: error: implicit
declaration of function 'mlx5_vport_get_other_func_cap'
[-Werror,-Wimplicit-function-declaration]
err =
mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx);
^
1 error generated.
vim +/mlx5_vport_get_other_func_cap +2892
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
2875
2876 static int mlx5_esw_query_vport_vhca_id(struct mlx5_eswitch *esw, u16 vport_num,
u16 *vhca_id)
2877 {
2878 int query_out_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out);
2879 void *query_ctx;
2880 void *hca_caps;
2881 int err;
2882
2883 *vhca_id = 0;
2884 if (mlx5_esw_is_manager_vport(esw, vport_num) ||
2885 !MLX5_CAP_GEN(esw->dev, vhca_resource_manager))
2886 return -EPERM;
2887
2888 query_ctx = kzalloc(query_out_sz, GFP_KERNEL);
2889 if (!query_ctx)
2890 return -ENOMEM;
2891
2892 err = mlx5_vport_get_other_func_cap(esw->dev, vport_num,
query_ctx);
2893 if (err)
2894 goto out_free;
2895
2896 hca_caps = MLX5_ADDR_OF(query_hca_cap_out, query_ctx, capability);
2897 *vhca_id = MLX5_GET(cmd_hca_cap, hca_caps, vhca_id);
2898
2899 out_free:
2900 kfree(query_ctx);
2901 return err;
2902 }
2903
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org