* [arm:cex7 134/141] drivers/net//ethernet/freescale/dpaa2/dpaa2-mac.c:367:20: error: 'struct dpaa2_mac' has no member named 'netdev'; did you mean 'net_dev'?
@ 2020-03-11 15:53 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-11 15:53 UTC (permalink / raw)
To: Russell King; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2510 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: bd02182bdc82cf750e3dc86742ffaa698a7ba87b
commit: 71a9012bbe74c0e12c5e8729163a28a122abf9e2 [134/141] dpaa2-mac: add 1000BASE-X/SGMII PCS support
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
git checkout 71a9012bbe74c0e12c5e8729163a28a122abf9e2
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net//ethernet/freescale/dpaa2/dpaa2-mac.c: In function 'dpaa2_pcs_create':
>> drivers/net//ethernet/freescale/dpaa2/dpaa2-mac.c:367:20: error: 'struct dpaa2_mac' has no member named 'netdev'; did you mean 'net_dev'?
netdev_warn(mac->netdev, "pcs-mdio node not found\n");
^~~~~~
net_dev
vim +367 drivers/net//ethernet/freescale/dpaa2/dpaa2-mac.c
355
356 static int dpaa2_pcs_create(struct dpaa2_mac *mac,
357 struct device_node *dpmac_node, int id)
358 {
359 struct mdio_device *mdiodev;
360 struct device_node *node;
361 struct mii_bus *bus;
362 int err;
363
364 node = of_parse_phandle(dpmac_node, "pcs-mdio", 0);
365 if (!node) {
366 /* allow old DT files to work */
> 367 netdev_warn(mac->netdev, "pcs-mdio node not found\n");
368 return 0;
369 }
370
371 if (!of_device_is_available(node)) {
372 netdev_err(mac->net_dev, "pcs-mdio node not available\n");
373 return -ENODEV;
374 }
375
376 bus = of_mdio_find_bus(node);
377 of_node_put(node);
378 if (!bus)
379 return -EPROBE_DEFER;
380
381 mdiodev = mdio_device_create(bus, 0);
382 if (IS_ERR(mdiodev)) {
383 err = PTR_ERR(mdiodev);
384 netdev_err(mac->net_dev, "failed to create mdio device: %d\n",
385 err);
386 goto err;
387 }
388
389 err = mdio_device_register(mdiodev);
390 if (err) {
391 netdev_err(mac->net_dev, "failed to register mdio device: %d\n",
392 err);
393 goto dev_free;
394 }
395
396 mac->pcs = mdiodev;
397 mac->phylink_config.pcs_poll = true;
398
399 return 0;
400
401 dev_free:
402 mdio_device_free(mdiodev);
403 err:
404 return err;
405 }
406
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 70414 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-11 15:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 15:53 [arm:cex7 134/141] drivers/net//ethernet/freescale/dpaa2/dpaa2-mac.c:367:20: error: 'struct dpaa2_mac' has no member named 'netdev'; did you mean 'net_dev'? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).