From: kernel test robot <[email protected]>
To: Rob Herring <[email protected]>
Cc: [email protected],
GNU/Weeb Mailing List <[email protected]>,
[email protected]
Subject: [ammarfaizi2-block:robh/linux/dt/pop-pci-nodes 2/2] drivers/pci/of.c:84: undefined reference to `.of_attach_node'
Date: Thu, 7 Apr 2022 02:22:29 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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/[email protected]/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 <[email protected]>
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
reply other threads:[~2022-04-06 18:23 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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