From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, arm@kernel.org
Subject: [soc:board-remove 161/200] drivers/net/dsa/b53/b53_srab.c:619:29: warning: unused variable 'dn'
Date: Wed, 19 Aug 2026 13:55:20 +0800 [thread overview]
Message-ID: <202608191337.lWFpSf1X-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git board-remove
head: c12d647b0229f4d75a2973c9b4e79f9b53406426
commit: 17d6f307eeac32b9e1bae82f8f4388297cc4647f [161/200] net: dsa: remove pdata based probing
config: x86_64-buildonly-randconfig-006-20260819 (https://download.01.org/0day-ci/archive/20260819/202608191337.lWFpSf1X-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/20260819/202608191337.lWFpSf1X-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/202608191337.lWFpSf1X-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/dsa/b53/b53_srab.c: In function 'b53_srab_probe':
>> drivers/net/dsa/b53/b53_srab.c:619:29: warning: unused variable 'dn' [-Wunused-variable]
619 | struct device_node *dn = pdev->dev.of_node;
| ^~
vim +/dn +619 drivers/net/dsa/b53/b53_srab.c
0e01491de64600 Florian Fainelli 2018-09-05 616
967dd82ffc52e9 Florian Fainelli 2016-06-09 617 static int b53_srab_probe(struct platform_device *pdev)
967dd82ffc52e9 Florian Fainelli 2016-06-09 618 {
fefae6909ead17 Florian Fainelli 2016-07-08 @619 struct device_node *dn = pdev->dev.of_node;
fefae6909ead17 Florian Fainelli 2016-07-08 620 const struct of_device_id *of_id = NULL;
967dd82ffc52e9 Florian Fainelli 2016-06-09 621 struct b53_srab_priv *priv;
967dd82ffc52e9 Florian Fainelli 2016-06-09 622 struct b53_device *dev;
967dd82ffc52e9 Florian Fainelli 2016-06-09 623
967dd82ffc52e9 Florian Fainelli 2016-06-09 624 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
967dd82ffc52e9 Florian Fainelli 2016-06-09 625 if (!priv)
967dd82ffc52e9 Florian Fainelli 2016-06-09 626 return -ENOMEM;
967dd82ffc52e9 Florian Fainelli 2016-06-09 627
291f4b6de48aa8 YueHaibing 2019-08-01 628 priv->regs = devm_platform_ioremap_resource(pdev, 0);
967dd82ffc52e9 Florian Fainelli 2016-06-09 629 if (IS_ERR(priv->regs))
ef24d6c3d69651 Tiezhu Yang 2020-05-22 630 return PTR_ERR(priv->regs);
967dd82ffc52e9 Florian Fainelli 2016-06-09 631
967dd82ffc52e9 Florian Fainelli 2016-06-09 632 dev = b53_switch_alloc(&pdev->dev, &b53_srab_ops, priv);
967dd82ffc52e9 Florian Fainelli 2016-06-09 633 if (!dev)
967dd82ffc52e9 Florian Fainelli 2016-06-09 634 return -ENOMEM;
967dd82ffc52e9 Florian Fainelli 2016-06-09 635
17d6f307eeac32 Arnd Bergmann 2026-08-07 636 of_id = of_match_node(b53_srab_of_match, dn);
17d6f307eeac32 Arnd Bergmann 2026-08-07 637 dev->chip_id = (u32)(unsigned long)of_id->data;
fefae6909ead17 Florian Fainelli 2016-07-08 638
967dd82ffc52e9 Florian Fainelli 2016-06-09 639 platform_set_drvdata(pdev, dev);
967dd82ffc52e9 Florian Fainelli 2016-06-09 640
16994374a6fc6a Florian Fainelli 2018-09-05 641 b53_srab_prepare_irq(pdev);
0e01491de64600 Florian Fainelli 2018-09-05 642 b53_srab_mux_init(pdev);
16994374a6fc6a Florian Fainelli 2018-09-05 643
967dd82ffc52e9 Florian Fainelli 2016-06-09 644 return b53_switch_register(dev);
967dd82ffc52e9 Florian Fainelli 2016-06-09 645 }
967dd82ffc52e9 Florian Fainelli 2016-06-09 646
:::::: The code at line 619 was first introduced by commit
:::::: fefae6909ead1798c39bee4d94e7e8f1f2752ef6 net: dsa: b53: Allow SRAB driver to specify platform data
:::::: TO: Florian Fainelli <f.fainelli@gmail.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-08-19 5:55 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=202608191337.lWFpSf1X-lkp@intel.com \
--to=lkp@intel.com \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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