All of lore.kernel.org
 help / color / mirror / Atom feed
* [soc:board-remove 161/200] drivers/net/dsa/b53/b53_srab.c:619:29: warning: unused variable 'dn'
@ 2026-08-19  5:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-19  5:55 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-arm-kernel, arm

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19  5:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  5:55 [soc:board-remove 161/200] drivers/net/dsa/b53/b53_srab.c:619:29: warning: unused variable 'dn' 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.