From: kernel test robot <lkp@intel.com>
To: Tarun Maddipatla <tarun.maddipatlavenkatasaikrishna@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, git@amd.com,
Michal Simek <monstr@monstr.eu>
Subject: [xilinx-xlnx:master 690/1090] drivers/net/ethernet/cadence/macb_main.c:5689:17: error: implicit declaration of function 'macb_init_rx_watermark'; did you mean 'macb_init_rx_ring'?
Date: Wed, 07 Oct 2026 12:58:10 +0800 [thread overview]
Message-ID: <202610071247.bgmQpdYX-lkp@intel.com> (raw)
tree: https://github.com/Xilinx/linux-xlnx master
head: 235bd5e49f53bfea681cfd6c489ca1e0eab0b061
commit: 6556503dd049e54cb7439aab65eedd719450cdaa [690/1090] net: macb: Add TX pause frame support
config: x86_64-randconfig-1006-20261007 (https://download.01.org/0day-ci/archive/20261007/202610071247.bgmQpdYX-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610071247.bgmQpdYX-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610071247.bgmQpdYX-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/ethernet/cadence/macb_main.c: In function 'macb_probe':
>> drivers/net/ethernet/cadence/macb_main.c:5689:17: error: implicit declaration of function 'macb_init_rx_watermark'; did you mean 'macb_init_rx_ring'? [-Wimplicit-function-declaration]
5689 | macb_init_rx_watermark(bp, macb_config);
| ^~~~~~~~~~~~~~~~~~~~~~
| macb_init_rx_ring
vim +5689 drivers/net/ethernet/cadence/macb_main.c
5570
5571 static int macb_probe(struct platform_device *pdev)
5572 {
5573 const struct macb_config *macb_config = &default_gem_config;
5574 int (*clk_init)(struct platform_device *, struct clk **,
5575 struct clk **, struct clk **, struct clk **,
5576 struct clk **) = macb_config->clk_init;
5577 int (*init)(struct platform_device *) = macb_config->init;
5578 struct device_node *np = pdev->dev.of_node;
5579 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL;
5580 struct clk *tsu_clk = NULL;
5581 unsigned int queue_mask, num_queues;
5582 bool native_io;
5583 phy_interface_t interface;
5584 struct net_device *dev;
5585 struct resource *regs;
5586 u32 wtrmrk_rst_val;
5587 void __iomem *mem;
5588 struct macb *bp;
5589 int err, val;
5590
5591 mem = devm_platform_get_and_ioremap_resource(pdev, 0, ®s);
5592 if (IS_ERR(mem))
5593 return PTR_ERR(mem);
5594
5595 if (np) {
5596 const struct of_device_id *match;
5597
5598 match = of_match_node(macb_dt_ids, np);
5599 if (match && match->data) {
5600 macb_config = match->data;
5601 clk_init = macb_config->clk_init;
5602 init = macb_config->init;
5603 }
5604 }
5605
5606 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk, &tsu_clk);
5607 if (err)
5608 return err;
5609
5610 pm_runtime_set_autosuspend_delay(&pdev->dev, MACB_PM_TIMEOUT);
5611 pm_runtime_use_autosuspend(&pdev->dev);
5612 pm_runtime_get_noresume(&pdev->dev);
5613 pm_runtime_set_active(&pdev->dev);
5614 pm_runtime_enable(&pdev->dev);
5615 native_io = hw_is_native_io(mem);
5616
5617 macb_probe_queues(mem, native_io, &queue_mask, &num_queues);
5618 dev = alloc_etherdev_mq(sizeof(*bp), num_queues);
5619 if (!dev) {
5620 err = -ENOMEM;
5621 goto err_disable_clocks;
5622 }
5623
5624 dev->base_addr = regs->start;
5625
5626 SET_NETDEV_DEV(dev, &pdev->dev);
5627
5628 bp = netdev_priv(dev);
5629 bp->pdev = pdev;
5630 bp->dev = dev;
5631 bp->regs = mem;
5632 bp->native_io = native_io;
5633 if (native_io) {
5634 bp->macb_reg_readl = hw_readl_native;
5635 bp->macb_reg_writel = hw_writel_native;
5636 } else {
5637 bp->macb_reg_readl = hw_readl;
5638 bp->macb_reg_writel = hw_writel;
5639 }
5640 bp->num_queues = num_queues;
5641 bp->queue_mask = queue_mask;
5642 if (macb_config)
5643 bp->dma_burst_length = macb_config->dma_burst_length;
5644 bp->pclk = pclk;
5645 bp->hclk = hclk;
5646 bp->tx_clk = tx_clk;
5647 bp->rx_clk = rx_clk;
5648 bp->tsu_clk = tsu_clk;
5649 if (macb_config)
5650 bp->jumbo_max_len = macb_config->jumbo_max_len;
5651
5652 if (!hw_is_gem(bp->regs, bp->native_io))
5653 bp->max_tx_length = MACB_MAX_TX_LEN;
5654 else if (macb_config->max_tx_length)
5655 bp->max_tx_length = macb_config->max_tx_length;
5656 else
5657 bp->max_tx_length = GEM_MAX_TX_LEN;
5658
5659 bp->wol = 0;
5660 device_set_wakeup_capable(&pdev->dev, 1);
5661
5662 bp->usrio = macb_config->usrio;
5663
5664 /* By default we set to partial store and forward mode for zynqmp.
5665 * Disable if not set in devicetree.
5666 */
5667 if (GEM_BFEXT(PBUF_CUTTHRU, gem_readl(bp, DCFG6))) {
5668 err = of_property_read_u32(bp->pdev->dev.of_node,
5669 "cdns,rx-watermark",
5670 &bp->rx_watermark);
5671
5672 if (!err) {
5673 /* Disable partial store and forward in case of error or
5674 * invalid watermark value
5675 */
5676 wtrmrk_rst_val = (1 << (GEM_BFEXT(RX_PBUF_ADDR, gem_readl(bp, DCFG2)))) - 1;
5677 if (bp->rx_watermark > wtrmrk_rst_val || !bp->rx_watermark) {
5678 dev_info(&bp->pdev->dev, "Invalid watermark value\n");
5679 bp->rx_watermark = 0;
5680 }
5681 }
5682 }
5683 spin_lock_init(&bp->lock);
5684 spin_lock_init(&bp->stats_lock);
5685
5686 /* setup capabilities */
5687 macb_configure_caps(bp, macb_config);
5688 if (bp->caps & MACB_CAPS_GEM_HAS_RXWMARK)
> 5689 macb_init_rx_watermark(bp, macb_config);
5690
5691 bp->pause_quantum = macb_config->txpause_quantum;
5692 if (!bp->pause_quantum)
5693 bp->pause_quantum = GEM_TXPAUSEQUANTUM_DEFAULT;
5694
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-07 4:58 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=202610071247.bgmQpdYX-lkp@intel.com \
--to=lkp@intel.com \
--cc=git@amd.com \
--cc=monstr@monstr.eu \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tarun.maddipatlavenkatasaikrishna@amd.com \
/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.