[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202170101.p6TIUxNw-lkp@intel.com>
Date: Thu, 17 Feb 2022 01:52:19 +0800
From: kernel test robot <lkp@...el.com>
To: Vadim Pasternak <vadimp@...dia.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Jiri Pirko <jiri@...dia.com>
Subject: [jpirko-mlxsw:jiri_devel_linecards 27/43]
drivers/net/ethernet/mellanox/mlxsw/core_env.c:1249:16: error: incompatible
function pointer types initializing 'void (*)(struct mlxsw_core *, u8, void
*, void *)' (aka 'void (*)(struct mlxsw_core *, unsigned char, void *, void
*)') with an expression of ...
tree: https://github.com/jpirko/linux_mlxsw jiri_devel_linecards
head: 5cb021512c3be7e03591497caeab474ecccfcd21
commit: 08ac493598146680137ed7a81dc108b837018125 [27/43] mlxsw: core: Add interfaces for line card initialization and de-initialization
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220217/202202170101.p6TIUxNw-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5)
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/08ac493598146680137ed7a81dc108b837018125
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_linecards
git checkout 08ac493598146680137ed7a81dc108b837018125
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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@...el.com>
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/mellanox/mlxsw/core_env.c:1249:16: error: incompatible function pointer types initializing 'void (*)(struct mlxsw_core *, u8, void *, void *)' (aka 'void (*)(struct mlxsw_core *, unsigned char, void *, void *)') with an expression of type 'void (struct mlxsw_core *, u8, const struct mlxsw_linecard *, void *)' (aka 'void (struct mlxsw_core *, unsigned char, const struct mlxsw_linecard *, void *)') [-Werror,-Wincompatible-function-pointer-types]
.got_active = mlxsw_env_got_active,
^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/core_env.c:1250:18: error: incompatible function pointer types initializing 'void (*)(struct mlxsw_core *, u8, void *, void *)' (aka 'void (*)(struct mlxsw_core *, unsigned char, void *, void *)') with an expression of type 'void (struct mlxsw_core *, u8, const struct mlxsw_linecard *, void *)' (aka 'void (struct mlxsw_core *, unsigned char, const struct mlxsw_linecard *, void *)') [-Werror,-Wincompatible-function-pointer-types]
.got_inactive = mlxsw_env_got_inactive,
^~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +1249 drivers/net/ethernet/mellanox/mlxsw/core_env.c
1247
1248 static struct mlxsw_linecards_event_ops mlxsw_env_event_ops = {
> 1249 .got_active = mlxsw_env_got_active,
1250 .got_inactive = mlxsw_env_got_inactive,
1251 };
1252
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists