From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [csky-linux:linux-next 1/3] drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:522: undefined reference to `stmmac_get_platform_resources'
Date: Thu, 05 Nov 2020 04:19:59 +0800 [thread overview]
Message-ID: <202011050458.X9zzFUGj-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5086 bytes --]
tree: https://github.com/c-sky/csky-linux linux-next
head: afe14a3eb45dcd68ba5abb4f0a6e410bba603952
commit: 6257c1904d005d30cb6db89e5342958eb9444e21 [1/3] drivers/net: Add dwmac-thead added.
config: arm-randconfig-r024-20201104 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a6d15d40701ad38f29e4ff93703b3ffa7b204611)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/c-sky/csky-linux/commit/6257c1904d005d30cb6db89e5342958eb9444e21
git remote add csky-linux https://github.com/c-sky/csky-linux
git fetch --no-tags csky-linux linux-next
git checkout 6257c1904d005d30cb6db89e5342958eb9444e21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.o: in function `thead_dwmac_probe':
>> drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:522: undefined reference to `stmmac_get_platform_resources'
>> arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:527: undefined reference to `stmmac_probe_config_dt'
>> arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:583: undefined reference to `stmmac_remove_config_dt'
>> arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.o:(.data+0x4): undefined reference to `stmmac_pltfr_remove'
>> arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/dwmac-thead.o:(.data+0x54): undefined reference to `stmmac_pltfr_pm_ops'
vim +522 drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c
506
507 static int thead_dwmac_probe(struct platform_device *pdev)
508 {
509 struct plat_stmmacenet_data *plat_dat;
510 struct stmmac_resources stmmac_res;
511 struct thead_dwmac_priv_data *thead_plat_dat;
512 struct device *dev = &pdev->dev;
513 struct device_node *np = pdev->dev.of_node;
514 int ret;
515
516 thead_plat_dat = devm_kzalloc(dev, sizeof(*thead_plat_dat), GFP_KERNEL);
517 if (thead_plat_dat == NULL) {
518 dev_err(&pdev->dev, "allocate memory failed\n");
519 return -ENOMEM;
520 }
521
> 522 ret = stmmac_get_platform_resources(pdev, &stmmac_res);
523 if (ret)
524 return ret;
525
526 if (pdev->dev.of_node) {
> 527 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac);
528 if (IS_ERR(plat_dat)) {
529 dev_err(&pdev->dev, "dt configuration failed\n");
530 return PTR_ERR(plat_dat);
531 }
532 } else {
533 plat_dat = dev_get_platdata(&pdev->dev);
534 if (!plat_dat) {
535 dev_err(&pdev->dev, "no platform data provided\n");
536 return -EINVAL;
537 }
538
539 /* Set default value for multicast hash bins */
540 plat_dat->multicast_filter_bins = HASH_TABLE_SIZE;
541
542 /* Set default value for unicast filter entries */
543 plat_dat->unicast_filter_entries = 1;
544 }
545
546 /* Custom initialisation (if needed) */
547 if (plat_dat->init) {
548 ret = plat_dat->init(pdev, plat_dat->bsp_priv);
549 if (ret)
550 goto err_remove_config_dt;
551 }
552
553 /* populate bsp private data */
554 plat_dat->bsp_priv = thead_plat_dat;
555 plat_dat->fix_mac_speed = thead_dwmac_fix_speed;
556 of_property_read_u32(np, "max-frame-size", &plat_dat->maxmtu);
557 of_property_read_u32(np, "snps,multicast-filter-bins",
558 &plat_dat->multicast_filter_bins);
559 of_property_read_u32(np, "snps,perfect-filter-entries",
560 &plat_dat->unicast_filter_entries);
561 plat_dat->unicast_filter_entries = dwmac1000_validate_ucast_entries(
562 plat_dat->unicast_filter_entries);
563 plat_dat->multicast_filter_bins = dwmac1000_validate_mcast_bins(
564 plat_dat->multicast_filter_bins);
565 plat_dat->has_gmac = 1;
566 plat_dat->pmt = 1;
567
568 ret = thead_dwmac_init(pdev, plat_dat->bsp_priv);
569 if (ret)
570 goto err_exit;
571
572 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res);
573 if (ret)
574 goto err_exit;
575
576 return 0;
577
578 err_exit:
579 if (plat_dat->exit)
580 plat_dat->exit(pdev, plat_dat->bsp_priv);
581 err_remove_config_dt:
582 if (pdev->dev.of_node)
> 583 stmmac_remove_config_dt(pdev, plat_dat);
584
585 return ret;
586 }
587
---
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: 36800 bytes --]
reply other threads:[~2020-11-04 20:19 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 \
--in-reply-to=202011050458.X9zzFUGj-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.