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: <202208040812.1vQa7ayZ-lkp@intel.com>
Date:   Thu, 4 Aug 2022 08:15:21 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Russell King (Oracle)" <rmk+kernel@...linux.org.uk>
Cc:     llvm@...ts.linux.dev, 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:22:
 error: incompatible function pointer types initializing 'void (*)(struct
 dsa_switch *, int, struct phylink_config *, phy_interface_t *)' with an
 expression of type 'void (struct dsa_switch *, int, struct phylin...

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-a013 (https://download.01.org/0day-ci/archive/20220804/202208040812.1vQa7ayZ-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 495519e5f8232d144ed26e9c18dbcbac6a5f25eb)
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 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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/dsa/microchip/

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:22: error: incompatible function pointer types initializing 'void (*)(struct dsa_switch *, int, struct phylink_config *, phy_interface_t *)' with an expression of type 'void (struct dsa_switch *, int, struct phylink_config *)' [-Werror,-Wincompatible-function-pointer-types]
           .phylink_get_caps       = ksz9477_get_caps,
                                     ^~~~~~~~~~~~~~~~
   1 error generated.


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

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