linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [jpirko-mlxsw:jiri_devel_linecards 28/43] drivers/net/ethernet/mellanox/mlxsw/core_thermal.c:1023:23: error: initialization of 'void (*)(struct mlxsw_core *, u8,  void *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char,  void *, void *)'} from incompatible pointer type 'void (*)(struct...
@ 2022-02-16 15:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-16 15:09 UTC (permalink / raw)
  To: Vadim Pasternak; +Cc: kbuild-all, linux-kernel, Jiri Pirko

tree:   https://github.com/jpirko/linux_mlxsw jiri_devel_linecards
head:   5cb021512c3be7e03591497caeab474ecccfcd21
commit: 37b9b28d9ef1e71cb5a449450fbc2ca9e9d6d667 [28/43] mlxsw: core_thermal: Add interfaces for line card initialization and de-initialization
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220216/202202162311.zXdLiZmj-lkp@intel.com/config)
compiler: powerpc-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/37b9b28d9ef1e71cb5a449450fbc2ca9e9d6d667
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw jiri_devel_linecards
        git checkout 37b9b28d9ef1e71cb5a449450fbc2ca9e9d6d667
        # 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=powerpc 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_thermal.c:1023:23: error: initialization of 'void (*)(struct mlxsw_core *, u8,  void *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char,  void *, void *)'} from incompatible pointer type 'void (*)(struct mlxsw_core *, u8,  const struct mlxsw_linecard *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char,  const struct mlxsw_linecard *, void *)'} [-Werror=incompatible-pointer-types]
    1023 |         .got_active = mlxsw_thermal_got_active,
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/core_thermal.c:1023:23: note: (near initialization for 'mlxsw_thermal_event_ops.got_active')
   drivers/net/ethernet/mellanox/mlxsw/core_thermal.c:1024:25: error: initialization of 'void (*)(struct mlxsw_core *, u8,  void *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char,  void *, void *)'} from incompatible pointer type 'void (*)(struct mlxsw_core *, u8,  const struct mlxsw_linecard *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char,  const struct mlxsw_linecard *, void *)'} [-Werror=incompatible-pointer-types]
    1024 |         .got_inactive = mlxsw_thermal_got_inactive,
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/core_thermal.c:1024:25: note: (near initialization for 'mlxsw_thermal_event_ops.got_inactive')
   cc1: some warnings being treated as errors


vim +1023 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c

  1021	
  1022	static struct mlxsw_linecards_event_ops mlxsw_thermal_event_ops = {
> 1023		.got_active = mlxsw_thermal_got_active,
  1024		.got_inactive = mlxsw_thermal_got_inactive,
  1025	};
  1026	

---
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-02-16 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 15:09 [jpirko-mlxsw:jiri_devel_linecards 28/43] drivers/net/ethernet/mellanox/mlxsw/core_thermal.c:1023:23: error: initialization of 'void (*)(struct mlxsw_core *, u8, void *, void *)' {aka 'void (*)(struct mlxsw_core *, unsigned char, void *, void *)'} from incompatible pointer type 'void (*)(struct 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).