* [linux-next:master 5984/7824] drivers/net/phy/mdio-mscc-miim.c:146: undefined reference to `devm_mdiobus_alloc_size'
@ 2020-07-13 12:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-13 12:16 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5662 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: 1814cff26739de7d02db6193bc620d0a4bdea676 [5984/7824] net: phy: add a Kconfig option for mdio_devres
config: h8300-randconfig-r001-20200713 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.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
git checkout 1814cff26739de7d02db6193bc620d0a4bdea676
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
h8300-linux-ld: section .init.text LMA [00000000004b4f00,0000000000500bd9] overlaps section .text LMA [0000000000000158,000000000100ed37]
h8300-linux-ld: section .data VMA [0000000000400000,00000000004b4eff] overlaps section .text VMA [0000000000000158,000000000100ed37]
h8300-linux-ld: drivers/net/phy/mdio-mscc-miim.o: in function `mscc_miim_probe':
>> drivers/net/phy/mdio-mscc-miim.c:146: undefined reference to `devm_mdiobus_alloc_size'
h8300-linux-ld: drivers/net/phy/mdio-mvusb.o: in function `mvusb_mdio_probe':
>> drivers/net/phy/mdio-mvusb.c:77: undefined reference to `devm_mdiobus_alloc_size'
vim +146 drivers/net/phy/mdio-mscc-miim.c
542671fe4d86ad Alexandre Belloni 2018-05-14 134
542671fe4d86ad Alexandre Belloni 2018-05-14 135 static int mscc_miim_probe(struct platform_device *pdev)
542671fe4d86ad Alexandre Belloni 2018-05-14 136 {
542671fe4d86ad Alexandre Belloni 2018-05-14 137 struct resource *res;
542671fe4d86ad Alexandre Belloni 2018-05-14 138 struct mii_bus *bus;
542671fe4d86ad Alexandre Belloni 2018-05-14 139 struct mscc_miim_dev *dev;
542671fe4d86ad Alexandre Belloni 2018-05-14 140 int ret;
542671fe4d86ad Alexandre Belloni 2018-05-14 141
542671fe4d86ad Alexandre Belloni 2018-05-14 142 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
542671fe4d86ad Alexandre Belloni 2018-05-14 143 if (!res)
542671fe4d86ad Alexandre Belloni 2018-05-14 144 return -ENODEV;
542671fe4d86ad Alexandre Belloni 2018-05-14 145
542671fe4d86ad Alexandre Belloni 2018-05-14 @146 bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*dev));
542671fe4d86ad Alexandre Belloni 2018-05-14 147 if (!bus)
542671fe4d86ad Alexandre Belloni 2018-05-14 148 return -ENOMEM;
542671fe4d86ad Alexandre Belloni 2018-05-14 149
542671fe4d86ad Alexandre Belloni 2018-05-14 150 bus->name = "mscc_miim";
542671fe4d86ad Alexandre Belloni 2018-05-14 151 bus->read = mscc_miim_read;
542671fe4d86ad Alexandre Belloni 2018-05-14 152 bus->write = mscc_miim_write;
542671fe4d86ad Alexandre Belloni 2018-05-14 153 bus->reset = mscc_miim_reset;
542671fe4d86ad Alexandre Belloni 2018-05-14 154 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev));
542671fe4d86ad Alexandre Belloni 2018-05-14 155 bus->parent = &pdev->dev;
542671fe4d86ad Alexandre Belloni 2018-05-14 156
542671fe4d86ad Alexandre Belloni 2018-05-14 157 dev = bus->priv;
542671fe4d86ad Alexandre Belloni 2018-05-14 158 dev->regs = devm_ioremap_resource(&pdev->dev, res);
542671fe4d86ad Alexandre Belloni 2018-05-14 159 if (IS_ERR(dev->regs)) {
542671fe4d86ad Alexandre Belloni 2018-05-14 160 dev_err(&pdev->dev, "Unable to map MIIM registers\n");
542671fe4d86ad Alexandre Belloni 2018-05-14 161 return PTR_ERR(dev->regs);
542671fe4d86ad Alexandre Belloni 2018-05-14 162 }
542671fe4d86ad Alexandre Belloni 2018-05-14 163
542671fe4d86ad Alexandre Belloni 2018-05-14 164 res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
542671fe4d86ad Alexandre Belloni 2018-05-14 165 if (res) {
542671fe4d86ad Alexandre Belloni 2018-05-14 166 dev->phy_regs = devm_ioremap_resource(&pdev->dev, res);
542671fe4d86ad Alexandre Belloni 2018-05-14 167 if (IS_ERR(dev->phy_regs)) {
542671fe4d86ad Alexandre Belloni 2018-05-14 168 dev_err(&pdev->dev, "Unable to map internal phy registers\n");
542671fe4d86ad Alexandre Belloni 2018-05-14 169 return PTR_ERR(dev->phy_regs);
542671fe4d86ad Alexandre Belloni 2018-05-14 170 }
542671fe4d86ad Alexandre Belloni 2018-05-14 171 }
542671fe4d86ad Alexandre Belloni 2018-05-14 172
542671fe4d86ad Alexandre Belloni 2018-05-14 173 ret = of_mdiobus_register(bus, pdev->dev.of_node);
542671fe4d86ad Alexandre Belloni 2018-05-14 174 if (ret < 0) {
542671fe4d86ad Alexandre Belloni 2018-05-14 175 dev_err(&pdev->dev, "Cannot register MDIO bus (%d)\n", ret);
542671fe4d86ad Alexandre Belloni 2018-05-14 176 return ret;
542671fe4d86ad Alexandre Belloni 2018-05-14 177 }
542671fe4d86ad Alexandre Belloni 2018-05-14 178
542671fe4d86ad Alexandre Belloni 2018-05-14 179 platform_set_drvdata(pdev, bus);
542671fe4d86ad Alexandre Belloni 2018-05-14 180
542671fe4d86ad Alexandre Belloni 2018-05-14 181 return 0;
542671fe4d86ad Alexandre Belloni 2018-05-14 182 }
542671fe4d86ad Alexandre Belloni 2018-05-14 183
:::::: The code at line 146 was first introduced by commit
:::::: 542671fe4d86ad42b132d8814b6847ee1414aba6 net: phy: mscc-miim: Add MDIO driver
:::::: TO: Alexandre Belloni <alexandre.belloni@bootlin.com>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25697 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-13 12:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13 12:16 [linux-next:master 5984/7824] drivers/net/phy/mdio-mscc-miim.c:146: undefined reference to `devm_mdiobus_alloc_size' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.