linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4186/12552] drivers/net/phy/broadcom.c:785: undefined reference to `bcm_ptp_probe'
@ 2022-07-24  4:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-24  4:48 UTC (permalink / raw)
  To: Jonathan Lemon
  Cc: kbuild-all, Linux Memory Management List, Jakub Kicinski,
	Florian Fainelli

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   18c107a1f120d095404d141dfad8f594bdc44020
commit: 39db6be781cd7dfd44ea259acecaf23f8685550b [4186/12552] net: phy: broadcom: Add PTP support for some Broadcom PHYs.
config: arm64-randconfig-s032-20220724 (https://download.01.org/0day-ci/archive/20220724/202207241206.zTbYogP8-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=39db6be781cd7dfd44ea259acecaf23f8685550b
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 39db6be781cd7dfd44ea259acecaf23f8685550b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   aarch64-linux-ld: Unexpected GOT/PLT entries detected!
   aarch64-linux-ld: Unexpected run-time procedure linkages detected!
   aarch64-linux-ld: ID map text too big or misaligned
   aarch64-linux-ld: drivers/net/phy/broadcom.o: in function `bcm54xx_phy_probe':
>> drivers/net/phy/broadcom.c:785: undefined reference to `bcm_ptp_probe'
   aarch64-linux-ld: drivers/net/phy/broadcom.o: in function `bcm54xx_ptp_stop':
>> drivers/net/phy/broadcom.c:326: undefined reference to `bcm_ptp_stop'
   aarch64-linux-ld: drivers/net/phy/broadcom.o: in function `bcm54xx_ptp_config_init':
>> drivers/net/phy/broadcom.c:334: undefined reference to `bcm_ptp_config_init'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for BROADCOM_PHY
   Depends on NETDEVICES && PHYLIB && PTP_1588_CLOCK_OPTIONAL
   Selected by
   - BCMGENET && NETDEVICES && ETHERNET && NET_VENDOR_BROADCOM && HAS_IOMEM && ARCH_BCM2835


vim +785 drivers/net/phy/broadcom.c

4567d5c3eb9b16 Ioana Ciornei    2020-11-01  768  
5a32fcdb1e686e Florian Fainelli 2021-04-01  769  static int bcm54xx_phy_probe(struct phy_device *phydev)
28dc4c8f4557d8 Florian Fainelli 2017-12-14  770  {
5a32fcdb1e686e Florian Fainelli 2021-04-01  771  	struct bcm54xx_phy_priv *priv;
28dc4c8f4557d8 Florian Fainelli 2017-12-14  772  
28dc4c8f4557d8 Florian Fainelli 2017-12-14  773  	priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
28dc4c8f4557d8 Florian Fainelli 2017-12-14  774  	if (!priv)
28dc4c8f4557d8 Florian Fainelli 2017-12-14  775  		return -ENOMEM;
28dc4c8f4557d8 Florian Fainelli 2017-12-14  776  
28dc4c8f4557d8 Florian Fainelli 2017-12-14  777  	phydev->priv = priv;
28dc4c8f4557d8 Florian Fainelli 2017-12-14  778  
28dc4c8f4557d8 Florian Fainelli 2017-12-14  779  	priv->stats = devm_kcalloc(&phydev->mdio.dev,
28dc4c8f4557d8 Florian Fainelli 2017-12-14  780  				   bcm_phy_get_sset_count(phydev), sizeof(u64),
28dc4c8f4557d8 Florian Fainelli 2017-12-14  781  				   GFP_KERNEL);
28dc4c8f4557d8 Florian Fainelli 2017-12-14  782  	if (!priv->stats)
28dc4c8f4557d8 Florian Fainelli 2017-12-14  783  		return -ENOMEM;
28dc4c8f4557d8 Florian Fainelli 2017-12-14  784  
15acf89e1286b9 Jonathan Lemon   2022-06-21 @785  	priv->ptp = bcm_ptp_probe(phydev);
15acf89e1286b9 Jonathan Lemon   2022-06-21  786  	if (IS_ERR(priv->ptp))
15acf89e1286b9 Jonathan Lemon   2022-06-21  787  		return PTR_ERR(priv->ptp);
15acf89e1286b9 Jonathan Lemon   2022-06-21  788  
28dc4c8f4557d8 Florian Fainelli 2017-12-14  789  	return 0;
28dc4c8f4557d8 Florian Fainelli 2017-12-14  790  }
28dc4c8f4557d8 Florian Fainelli 2017-12-14  791  

:::::: The code at line 785 was first introduced by commit
:::::: 15acf89e1286b91fc46aebf56d9334b33e5ca847 net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib

:::::: TO: Jonathan Lemon <jonathan.lemon@gmail.com>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-24  4:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-24  4:48 [linux-next:master 4186/12552] drivers/net/phy/broadcom.c:785: undefined reference to `bcm_ptp_probe' 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