linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jonathan Lemon <jonathan.lemon@gmail.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Florian Fainelli <f.fainelli@gmail.com>
Subject: [linux-next:master 4186/12552] drivers/net/phy/broadcom.c:785: undefined reference to `bcm_ptp_probe'
Date: Sun, 24 Jul 2022 12:48:48 +0800	[thread overview]
Message-ID: <202207241206.zTbYogP8-lkp@intel.com> (raw)

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


                 reply	other threads:[~2022-07-24  4:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207241206.zTbYogP8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=f.fainelli@gmail.com \
    --cc=jonathan.lemon@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox