* [chenxing:mstar_v6_5_reorder 357/700] drivers/net/ethernet/cadence/macb_main.c:4077:12: warning: 'msc313_clk_init' defined but not used
@ 2026-08-01 22:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-01 22:51 UTC (permalink / raw)
To: Daniel Palmer; +Cc: oe-kbuild-all
tree: https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head: 1a5c60e65ea399670a5384b869c4958338af2799
commit: f4632a2fb4430616482f93927167a2b61385552c [357/700] macb: add hack for tx_ref and rx_ref needed for rmii
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260802/202608020628.7gz0fmZf-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/202608020628.7gz0fmZf-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/202608020628.7gz0fmZf-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/cadence/macb_main.c:4730:12: warning: 'msc313_init' defined but not used [-Wunused-function]
4730 | static int msc313_init(struct platform_device *pdev)
| ^~~~~~~~~~~
>> drivers/net/ethernet/cadence/macb_main.c:4077:12: warning: 'msc313_clk_init' defined but not used [-Wunused-function]
4077 | static int msc313_clk_init(struct platform_device *pdev, struct clk **pclk,
| ^~~~~~~~~~~~~~~
vim +/msc313_clk_init +4077 drivers/net/ethernet/cadence/macb_main.c
4076
> 4077 static int msc313_clk_init(struct platform_device *pdev, struct clk **pclk,
4078 struct clk **hclk, struct clk **tx_clk,
4079 struct clk **rx_clk, struct clk **tsu_clk)
4080 {
4081 struct clk *rx_ref = devm_clk_get_optional(&pdev->dev, "rx_ref");
4082 struct clk *tx_ref = devm_clk_get_optional(&pdev->dev, "tx_ref");
4083
4084 if (IS_ERR(rx_ref))
4085 return PTR_ERR(rx_ref);
4086
4087 if (IS_ERR(tx_ref))
4088 return PTR_ERR(tx_ref);
4089
4090 if (rx_ref)
4091 clk_prepare_enable(rx_ref);
4092
4093 if (tx_ref)
4094 clk_prepare_enable(tx_ref);
4095
4096 return macb_clk_init(pdev, pclk, hclk, tx_clk, rx_clk, tsu_clk);
4097 }
4098
--
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-01 22:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-01 22:51 [chenxing:mstar_v6_5_reorder 357/700] drivers/net/ethernet/cadence/macb_main.c:4077:12: warning: 'msc313_clk_init' defined but not used 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.