From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10430C433EF for ; Sun, 24 Jul 2022 04:49:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 65B9A6B0072; Sun, 24 Jul 2022 00:49:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 60AF46B0073; Sun, 24 Jul 2022 00:49:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4D2A06B0074; Sun, 24 Jul 2022 00:49:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3E57B6B0072 for ; Sun, 24 Jul 2022 00:49:43 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 144AC1410DE for ; Sun, 24 Jul 2022 04:49:43 +0000 (UTC) X-FDA: 79720765446.28.A4EFD58 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf29.hostedemail.com (Postfix) with ESMTP id 6F689120023 for ; Sun, 24 Jul 2022 04:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658638182; x=1690174182; h=date:from:to:cc:subject:message-id:mime-version; bh=6qEoJv+i++CkQ/xK3CIA+XqGydZgtRpuxAV8O6vpvbg=; b=GzDpn2KunDC1kx9FUL1+cNr9X91EoWF3JiEgMHiJ+FqvxNXAE66w98wX 8EEo+A+Kx6m2f0tNwSR2ROl8oMm+tRmROl5J9c+fhrfB6y4goIb8cbX7t gU8JwmGPB6i8GSPmXHsVBxfYpE62qMyPM738ww3c6vaGO4q29bLQKi4Z1 jADFP5RXdFeQ8SdGW/AstZ6Of3PIsIZfSlbpfRbOySWkbWXYojSTt2grO ZoyR8HaUynYJKrF5CLUGAXTmvSXwhTI6KtO7qzF03AaKGxhbi1a57qSFZ U1/BG0Hi0T31/vrW1rJgB8R8bjJMUTWyRI9Ncmw+4+elm3y8t64bDr6aK Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10417"; a="373818543" X-IronPort-AV: E=Sophos;i="5.93,189,1654585200"; d="scan'208";a="373818543" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2022 21:49:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,189,1654585200"; d="scan'208";a="574627106" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 23 Jul 2022 21:49:38 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oFTYf-0003Yt-2v; Sun, 24 Jul 2022 04:49:37 +0000 Date: Sun, 24 Jul 2022 12:48:48 +0800 From: kernel test robot To: Jonathan Lemon Cc: kbuild-all@lists.01.org, Linux Memory Management List , Jakub Kicinski , Florian Fainelli Subject: [linux-next:master 4186/12552] drivers/net/phy/broadcom.c:785: undefined reference to `bcm_ptp_probe' Message-ID: <202207241206.zTbYogP8-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658638182; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=npZQu1ww38iEyPLvm7yLEf/j/gQ/l3rCzYwYe/D7IdY=; b=ijIpAIPOZFJoOp4ulvgDF020qxVlgS2pVOCeLWX7uGC9HNUNIf26mcGQq3/kTcVWku0zjN mdvIKj1kH9rOO9uNzzagFLwAOHdViYBpkUMQ9lIbTySHCb1Ah7j0Np4Wm26SHcpq6/BM2q VbfmqUyb1z+a3aJPuv5XwDfGQP/9n40= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658638182; a=rsa-sha256; cv=none; b=7e2nsDz1IomNa/WzQKZNnBR6AxnRDEPL+UT9KAsCDv622iUwluhyiFtPT73WFdaqt8QYmu QuWrHMb5bNkjHmO7UwSG15VLv5g3EkPZXEFiQwI+t2UchlJ5oNipEn+OenfzpnFOWuk8Kr haETIqxavQwbMO/M6s++vzxudXzk/74= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=GzDpn2Ku; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf29.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com X-Stat-Signature: zftt5ngteioehtjysszyih87uoqwq4af X-Rspamd-Queue-Id: 6F689120023 Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=GzDpn2Ku; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf29.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1658638181-935512 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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 :::::: CC: Jakub Kicinski -- 0-DAY CI Kernel Test Service https://01.org/lkp