[arm:zii 15/47] drivers/net/phy/at803x.c:706:7: error: implicit declaration of function 'at803x_match_phy_id'

kernel test robot lkp at intel.com
Fri Sep 17 09:34:39 PDT 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head:   9f8234d7e443de598635ed7a7ac69753ce3e71d4
commit: 968d6c22446ff44207fd9b4b7750a0035661036a [15/47] net: phy: at803x: simplify custom phy id matching
config: arm64-randconfig-r032-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
        git fetch --no-tags arm zii
        git checkout 968d6c22446ff44207fd9b4b7750a0035661036a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/net/phy/at803x.c:706:7: error: implicit declaration of function 'at803x_match_phy_id' [-Werror,-Wimplicit-function-declaration]
           if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID))
                ^
   1 error generated.


vim +/at803x_match_phy_id +706 drivers/net/phy/at803x.c

2318ca8aef3877 Michael Walle 2020-01-30  697  
b856150c8098f1 David Bauer   2021-06-27  698  static int at803x_get_features(struct phy_device *phydev)
b856150c8098f1 David Bauer   2021-06-27  699  {
b856150c8098f1 David Bauer   2021-06-27  700  	int err;
b856150c8098f1 David Bauer   2021-06-27  701  
b856150c8098f1 David Bauer   2021-06-27  702  	err = genphy_read_abilities(phydev);
b856150c8098f1 David Bauer   2021-06-27  703  	if (err)
b856150c8098f1 David Bauer   2021-06-27  704  		return err;
b856150c8098f1 David Bauer   2021-06-27  705  
b856150c8098f1 David Bauer   2021-06-27 @706  	if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID))
b856150c8098f1 David Bauer   2021-06-27  707  		return 0;
b856150c8098f1 David Bauer   2021-06-27  708  
b856150c8098f1 David Bauer   2021-06-27  709  	/* AR8031/AR8033 have different status registers
b856150c8098f1 David Bauer   2021-06-27  710  	 * for copper and fiber operation. However, the
b856150c8098f1 David Bauer   2021-06-27  711  	 * extended status register is the same for both
b856150c8098f1 David Bauer   2021-06-27  712  	 * operation modes.
b856150c8098f1 David Bauer   2021-06-27  713  	 *
b856150c8098f1 David Bauer   2021-06-27  714  	 * As a result of that, ESTATUS_1000_XFULL is set
b856150c8098f1 David Bauer   2021-06-27  715  	 * to 1 even when operating in copper TP mode.
b856150c8098f1 David Bauer   2021-06-27  716  	 *
b856150c8098f1 David Bauer   2021-06-27  717  	 * Remove this mode from the supported link modes,
b856150c8098f1 David Bauer   2021-06-27  718  	 * as this driver currently only supports copper
b856150c8098f1 David Bauer   2021-06-27  719  	 * operation.
b856150c8098f1 David Bauer   2021-06-27  720  	 */
b856150c8098f1 David Bauer   2021-06-27  721  	linkmode_clear_bit(ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
b856150c8098f1 David Bauer   2021-06-27  722  			   phydev->supported);
b856150c8098f1 David Bauer   2021-06-27  723  	return 0;
b856150c8098f1 David Bauer   2021-06-27  724  }
b856150c8098f1 David Bauer   2021-06-27  725  

:::::: The code at line 706 was first introduced by commit
:::::: b856150c8098f12996ee81c3ab2a65adbaeeb3ec net: phy: at803x: mask 1000 Base-X link mode

:::::: TO: David Bauer <mail at david-bauer.net>
:::::: CC: David S. Miller <davem at davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33258 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210918/dd1d791c/attachment-0001.gz>


More information about the linux-arm-kernel mailing list