All of lore.kernel.org
 help / color / mirror / Atom feed
* [saeed:queue-next 838/854] drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:2892:8: error: implicit declaration of function 'mlx5_vport_get_other_func_cap'
@ 2021-02-10  8:09 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-10  8:09 UTC (permalink / raw)
  To: kbuild-all

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

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: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?id=80a0334aff57bce1b9e5d860854a4b474c3030b9
        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=gcc-9.3.0 make.cross ARCH=arm 

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/eswitch_offloads.c: In function 'mlx5_esw_query_vport_vhca_id':
>> drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:2892:8: error: implicit declaration of function 'mlx5_vport_get_other_func_cap' [-Werror=implicit-function-declaration]
    2892 |  err = mlx5_vport_get_other_func_cap(esw->dev, vport_num, query_ctx);
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [saeed:queue-next 838/854] drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:2892:8: error: implicit declaration of function 'mlx5_vport_get_other_func_cap'
@ 2021-02-10  4:22 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-10  4:22 UTC (permalink / raw)
  To: kbuild-all

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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-10  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10  8:09 [saeed:queue-next 838/854] drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:2892:8: error: implicit declaration of function 'mlx5_vport_get_other_func_cap' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-02-10  4:22 kernel test robot

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.