From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id 5120A7E357 for ; Wed, 6 Apr 2022 18:23:16 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RcNwm7Vp; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649269396; x=1680805396; h=date:from:to:cc:subject:message-id:mime-version; bh=92yacfNwebATUCEf+W25F15FIBUvP6Pv62+QEoq9dhg=; b=RcNwm7Vpn4RgEAvZ/obaq5vT8RlVZH9N+tx3QTs14N5jnjVh6+MKaXd3 J8bhaV/OThLrKGx6rV0hHByULMYxznE11lqW/1E7xyo0+Fh4TAEw2CCQ5 DAZ7yba6cV9UW/MLOquyYjud6N1bs0Sj298PhlPs0v+keFr1/jhT0SSQS ZXokbVzBM2/T4OfB19e4xTWM5dDFQvbKNbsEdy6/cSysWi05N84LgeGFR ptVO4MJ8FMN29ch+A8f3YUakSt2cKz2x8m2xrQmkCT9sZ/2ZoJMr1jDJO 1kfeOezs7cwBJTz5+q10mMzpa4oqkVdQIwvyip1hYnXGluXKDeu0N4Mkd Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="261116944" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="261116944" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 11:23:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="524589359" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 06 Apr 2022 11:23:14 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncAJF-0004eN-Ee; Wed, 06 Apr 2022 18:23:13 +0000 Date: Thu, 7 Apr 2022 02:22:29 +0800 From: kernel test robot To: Rob Herring Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:robh/linux/dt/pop-pci-nodes 2/2] drivers/pci/of.c:84: undefined reference to `.of_attach_node' Message-ID: <202204070238.tRrrzyyE-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: tree: https://github.com/ammarfaizi2/linux-block robh/linux/dt/pop-pci-nodes head: b9198a9525a97d05b0bb2a7282fede92d7d2d93d commit: b9198a9525a97d05b0bb2a7282fede92d7d2d93d [2/2] PCI: Create DT nodes if they don't exist config: powerpc64-buildonly-randconfig-r001-20220405 (https://download.01.org/0day-ci/archive/20220407/202204070238.tRrrzyyE-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 11.2.0 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 # https://github.com/ammarfaizi2/linux-block/commit/b9198a9525a97d05b0bb2a7282fede92d7d2d93d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block robh/linux/dt/pop-pci-nodes git checkout b9198a9525a97d05b0bb2a7282fede92d7d2d93d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> powerpc64-linux-ld: warning: discarding dynamic section .glink >> powerpc64-linux-ld: warning: discarding dynamic section .plt powerpc64-linux-ld: linkage table error against `of_attach_node' powerpc64-linux-ld: stubs don't match calculated size powerpc64-linux-ld: can not build stubs: bad value powerpc64-linux-ld: drivers/pci/of.o: in function `make_dev_node': >> drivers/pci/of.c:84: undefined reference to `.of_attach_node' >> powerpc64-linux-ld: drivers/pci/of.c:84: undefined reference to `.of_attach_node' powerpc64-linux-ld: drivers/pci/of.o: in function `make_bus_node': drivers/pci/of.c:97: undefined reference to `.of_attach_node' powerpc64-linux-ld: drivers/pci/of.c:97: undefined reference to `.of_attach_node' vim +84 drivers/pci/of.c 59 60 void make_dev_node(struct pci_dev *dev) 61 { 62 struct device_node *node; 63 struct property *prop; 64 __be32 *val; 65 66 node = make_node(); 67 68 prop = kzalloc(sizeof(*prop) + sizeof(__be32) * 5, GFP_KERNEL); 69 prop->name = "reg"; 70 prop->value = prop + 1; 71 prop->length = sizeof(__be32) * 5; 72 val = prop->value; 73 val[0] = __cpu_to_be32(dev->devfn << 8); 74 val[4] = __cpu_to_be32(SZ_4K); 75 node->properties = prop; 76 77 if (pci_is_bridge(dev)) { 78 add_bus_props(node); 79 node->full_name = kasprintf(GFP_KERNEL, "pci@%x,%x", PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); 80 } else 81 node->full_name = kasprintf(GFP_KERNEL, "dev@%x,%x", PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn)); 82 83 node->parent = dev->bus->dev.of_node; > 84 of_attach_node(node); 85 dev->dev.of_node = node; 86 } 87 -- 0-DAY CI Kernel Test Service https://01.org/lkp