tree:
https://github.com/jpirko/linux_mlxsw petrm_tc_extack
head: 7842ab0a446a275c5a8c2b19db8e1ab404a7539d
commit: f96fdd118eb0caa2577e7feaeaac6fc721a302f5 [14/15] net: Introduce an extack argument
to ndo_setup_tc
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-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
git checkout f96fdd118eb0caa2577e7feaeaac6fc721a302f5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>, old ones prefixed by <<):
> drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:618:29: error:
initialization of 'int (*)(struct net_device *, enum tc_setup_type, void *, struct
netlink_ext_ack *)' from incompatible pointer type 'int (*)(struct net_device *,
enum tc_setup_type, void *)' [-Werror=incompatible-pointer-types]
618 |
.ndo_setup_tc = mlx5e_rep_setup_tc,
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:618:29: note: (near initialization for
'mlx5e_netdev_ops_rep.ndo_setup_tc')
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:631:29: error: initialization of 'int
(*)(struct net_device *, enum tc_setup_type, void *, struct netlink_ext_ack *)' from
incompatible pointer type 'int (*)(struct net_device *, enum tc_setup_type, void
*)' [-Werror=incompatible-pointer-types]
631 | .ndo_setup_tc = mlx5e_rep_setup_tc,
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:631:29: note: (near initialization for
'mlx5e_netdev_ops_uplink_rep.ndo_setup_tc')
cc1: some warnings being treated as errors
vim +618 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
f60f315d339e14 Parav Pandit 2019-07-08 613
9b81d5a9945bc6 Vu Pham 2019-04-04 614 static const struct net_device_ops
mlx5e_netdev_ops_rep = {
9b81d5a9945bc6 Vu Pham 2019-04-04 615 .ndo_open =
mlx5e_rep_open,
9b81d5a9945bc6 Vu Pham 2019-04-04 616 .ndo_stop =
mlx5e_rep_close,
d9ee0491c2ffbb Or Gerlitz 2018-02-13 617 .ndo_start_xmit =
mlx5e_xmit,
d9ee0491c2ffbb Or Gerlitz 2018-02-13 @618 .ndo_setup_tc =
mlx5e_rep_setup_tc,
ab8f963a11790e Vladyslav Tarasiuk 2020-01-17 619 .ndo_get_devlink_port =
mlx5e_rep_get_devlink_port,
9b81d5a9945bc6 Vu Pham 2019-04-04 620 .ndo_get_stats64 =
mlx5e_rep_get_stats,
13e509a4c19498 Or Gerlitz 2018-02-13 621 .ndo_has_offload_stats =
mlx5e_rep_has_offload_stats,
13e509a4c19498 Or Gerlitz 2018-02-13 622 .ndo_get_offload_stats =
mlx5e_rep_get_offload_stats,
9b81d5a9945bc6 Vu Pham 2019-04-04 623 .ndo_change_mtu =
mlx5e_rep_change_mtu,
d9ee0491c2ffbb Or Gerlitz 2018-02-13 624 };
250a42b6a764a7 Adi Nissim 2018-04-01 625
:::::: The code at line 618 was first introduced by commit
:::::: d9ee0491c2ffbb5bc8bc418dd857a045d0d0130f net/mlx5e: Use dedicated uplink vport
netdev representor
:::::: TO: Or Gerlitz <ogerlitz(a)mellanox.com>
:::::: CC: Saeed Mahameed <saeedm(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org