linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [jpirko-mlxsw:jiri_devel_linecards 37/58] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:344:39: error: passing argument 1 of 'mlxsw_linecard_provision_fail' from incompatible pointer type
@ 2022-01-28 14:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-28 14:23 UTC (permalink / raw)
  To: Jiri Pirko; +Cc: kbuild-all, linux-kernel

tree:   https://github.com/jpirko/linux_mlxsw jiri_devel_linecards
head:   e29aaaea5a4ec1a13a522a428fed7ce715a01d0d
commit: 73018c57f04b9844d72620e46dd767eb0fc1ad01 [37/58] mlxsw: core_linecards: Probe devices for provisioned line card and attach them
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20220128/202201282226.T1KtFC5Q-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.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://github.com/jpirko/linux_mlxsw/commit/73018c57f04b9844d72620e46dd767eb0fc1ad01
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw jiri_devel_linecards
        git checkout 73018c57f04b9844d72620e46dd767eb0fc1ad01
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/net/ethernet/mellanox/mlxsw/

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/mlxsw/core_linecards.c: In function 'mlxsw_linecard_status_event_to_work':
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:344:39: error: passing argument 1 of 'mlxsw_linecard_provision_fail' from incompatible pointer type [-Werror=incompatible-pointer-types]
     344 |         mlxsw_linecard_provision_fail(linecard);
         |                                       ^~~~~~~~
         |                                       |
         |                                       struct mlxsw_linecard *
   drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:153:62: note: expected 'struct mlxsw_core *' but argument is of type 'struct mlxsw_linecard *'
     153 | static void mlxsw_linecard_provision_fail(struct mlxsw_core *mlxsw_core,
         |                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:344:9: error: too few arguments to function 'mlxsw_linecard_provision_fail'
     344 |         mlxsw_linecard_provision_fail(linecard);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:153:13: note: declared here
     153 | static void mlxsw_linecard_provision_fail(struct mlxsw_core *mlxsw_core,
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/mlxsw_linecard_provision_fail +344 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c

57299b50dc9224 Jiri Pirko 2022-01-28  334  
57299b50dc9224 Jiri Pirko 2022-01-28  335  static void mlxsw_linecard_status_event_to_work(struct work_struct *work)
57299b50dc9224 Jiri Pirko 2022-01-28  336  {
57299b50dc9224 Jiri Pirko 2022-01-28  337  	struct mlxsw_linecard *linecard =
57299b50dc9224 Jiri Pirko 2022-01-28  338  		container_of(work, struct mlxsw_linecard,
57299b50dc9224 Jiri Pirko 2022-01-28  339  			     status_event_to_dw.work);
57299b50dc9224 Jiri Pirko 2022-01-28  340  
57299b50dc9224 Jiri Pirko 2022-01-28  341  	dev_err(linecard->linecards->bus_info->dev, "linecard %u: Timeout reached waiting on %s status event",
57299b50dc9224 Jiri Pirko 2022-01-28  342  		linecard->slot_index,
57299b50dc9224 Jiri Pirko 2022-01-28  343  		mlxsw_linecard_status_event_type_name[linecard->status_event_type_to]);
57299b50dc9224 Jiri Pirko 2022-01-28 @344  	mlxsw_linecard_provision_fail(linecard);
57299b50dc9224 Jiri Pirko 2022-01-28  345  }
57299b50dc9224 Jiri Pirko 2022-01-28  346  

:::::: The code at line 344 was first introduced by commit
:::::: 57299b50dc9224b8512f83e641ae92cc128016cf TMP: event timeout

:::::: TO: Jiri Pirko <jiri@nvidia.com>
:::::: CC: Jiri Pirko <jiri@nvidia.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-28 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28 14:23 [jpirko-mlxsw:jiri_devel_linecards 37/58] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:344:39: error: passing argument 1 of 'mlxsw_linecard_provision_fail' from incompatible pointer type 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;
as well as URLs for NNTP newsgroup(s).