lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208041428.DxKaemL1-lkp@intel.com>
Date:   Thu, 4 Aug 2022 14:59:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Marek BehĂșn <kabel@...nel.org>
Subject: [rmk-arm:zii 15/87] drivers/net/dsa/microchip/ksz9477.c:1334:35:
 error: initialization of 'void (*)(struct dsa_switch *, int,  struct
 phylink_config *, phy_interface_t *)' from incompatible pointer type 'void
 (*)(struct dsa_switch *, int,  struct phylink_config *)'

tree:   git://git.armlinux.org.uk/~rmk/linux-arm zii
head:   315d00812d1f8ed8bbbce4e4fd8d32fc883900a0
commit: 8ed5becb72c09d9835bedc0bdaf431cc23f8b7de [15/87] net: dsa: add support for retrieving the interface mode
config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220804/202208041428.DxKaemL1-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
        git fetch --no-tags rmk-arm zii
        git checkout 8ed5becb72c09d9835bedc0bdaf431cc23f8b7de
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/net/dsa/microchip/ksz9477.c:1334:35: error: initialization of 'void (*)(struct dsa_switch *, int,  struct phylink_config *, phy_interface_t *)' from incompatible pointer type 'void (*)(struct dsa_switch *, int,  struct phylink_config *)' [-Werror=incompatible-pointer-types]
    1334 |         .phylink_get_caps       = ksz9477_get_caps,
         |                                   ^~~~~~~~~~~~~~~~
   drivers/net/dsa/microchip/ksz9477.c:1334:35: note: (near initialization for 'ksz9477_switch_ops.phylink_get_caps')
   cc1: some warnings being treated as errors


vim +1334 drivers/net/dsa/microchip/ksz9477.c

c2e866911e25406 Tristram Ha       2018-11-20  1327  
c2e866911e25406 Tristram Ha       2018-11-20  1328  static const struct dsa_switch_ops ksz9477_switch_ops = {
c2e866911e25406 Tristram Ha       2018-11-20  1329  	.get_tag_protocol	= ksz9477_get_tag_protocol,
c2e866911e25406 Tristram Ha       2018-11-20  1330  	.setup			= ksz9477_setup,
c2e866911e25406 Tristram Ha       2018-11-20  1331  	.phy_read		= ksz9477_phy_read16,
c2e866911e25406 Tristram Ha       2018-11-20  1332  	.phy_write		= ksz9477_phy_write16,
143a102e3090532 Codrin Ciubotariu 2020-07-02  1333  	.phylink_mac_link_down	= ksz_mac_link_down,
65ac79e1812016d Arun Ramadoss     2022-05-17 @1334  	.phylink_get_caps	= ksz9477_get_caps,
c2e866911e25406 Tristram Ha       2018-11-20  1335  	.port_enable		= ksz_enable_port,
997d2126ac61128 Arun Ramadoss     2022-05-17  1336  	.get_strings		= ksz_get_strings,
c2e866911e25406 Tristram Ha       2018-11-20  1337  	.get_ethtool_stats	= ksz_get_ethtool_stats,
c2e866911e25406 Tristram Ha       2018-11-20  1338  	.get_sset_count		= ksz_sset_count,
c2e866911e25406 Tristram Ha       2018-11-20  1339  	.port_bridge_join	= ksz_port_bridge_join,
c2e866911e25406 Tristram Ha       2018-11-20  1340  	.port_bridge_leave	= ksz_port_bridge_leave,
c2e866911e25406 Tristram Ha       2018-11-20  1341  	.port_stp_state_set	= ksz9477_port_stp_state_set,
c2e866911e25406 Tristram Ha       2018-11-20  1342  	.port_fast_age		= ksz_port_fast_age,
c2e866911e25406 Tristram Ha       2018-11-20  1343  	.port_vlan_filtering	= ksz9477_port_vlan_filtering,
c2e866911e25406 Tristram Ha       2018-11-20  1344  	.port_vlan_add		= ksz9477_port_vlan_add,
c2e866911e25406 Tristram Ha       2018-11-20  1345  	.port_vlan_del		= ksz9477_port_vlan_del,
c2e866911e25406 Tristram Ha       2018-11-20  1346  	.port_fdb_dump		= ksz9477_port_fdb_dump,
c2e866911e25406 Tristram Ha       2018-11-20  1347  	.port_fdb_add		= ksz9477_port_fdb_add,
c2e866911e25406 Tristram Ha       2018-11-20  1348  	.port_fdb_del		= ksz9477_port_fdb_del,
c2e866911e25406 Tristram Ha       2018-11-20  1349  	.port_mdb_add           = ksz9477_port_mdb_add,
c2e866911e25406 Tristram Ha       2018-11-20  1350  	.port_mdb_del           = ksz9477_port_mdb_del,
c2e866911e25406 Tristram Ha       2018-11-20  1351  	.port_mirror_add	= ksz9477_port_mirror_add,
c2e866911e25406 Tristram Ha       2018-11-20  1352  	.port_mirror_del	= ksz9477_port_mirror_del,
c6101dd7ffb8b7f Arun Ramadoss     2022-04-26  1353  	.get_stats64		= ksz_get_stats64,
e18058ea9986032 Oleksij Rempel    2022-03-08  1354  	.port_change_mtu	= ksz9477_change_mtu,
e18058ea9986032 Oleksij Rempel    2022-03-08  1355  	.port_max_mtu		= ksz9477_max_mtu,
c2e866911e25406 Tristram Ha       2018-11-20  1356  };
c2e866911e25406 Tristram Ha       2018-11-20  1357  

:::::: The code at line 1334 was first introduced by commit
:::::: 65ac79e1812016d7c5760872736802f985ec7455 net: dsa: microchip: add the phylink get_caps

:::::: TO: Arun Ramadoss <arun.ramadoss@...rochip.com>
:::::: CC: David S. Miller <davem@...emloft.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ