tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y
head: eacdd0a4f060e33d46290dec099c5242e58acfa9
commit: 8c2782d9cf8577929a707c0a68e3313bc71f5c23 [9988/9999] net: ethernet: ti: icss-iep:
Make icss-iep a separate driver
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git checkout 8c2782d9cf8577929a707c0a68e3313bc71f5c23
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> drivers/net/ethernet/ti/icss_iep.c:518:5: warning: no previous
prototype for 'icss_iep_probe' [-Wmissing-prototypes]
518 | int
icss_iep_probe(struct platform_device *pdev)
| ^~~~~~~~~~~~~~
vim +/icss_iep_probe +518 drivers/net/ethernet/ti/icss_iep.c
517
518 int icss_iep_probe(struct platform_device *pdev)
519 {
520 struct device *dev = &pdev->dev;
521 struct icss_iep *iep;
522 struct resource *res;
523 struct clk *iep_clk;
524
525 iep = devm_kzalloc(dev, sizeof(*iep), GFP_KERNEL);
526 if (!iep)
527 return -ENOMEM;
528
529 iep->dev = dev;
530 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
531 iep->base = devm_ioremap_resource(dev, res);
532 if (IS_ERR(iep->base))
533 return -ENODEV;
534
535 iep_clk = devm_clk_get(dev, NULL);
536 if (IS_ERR(iep_clk))
537 return PTR_ERR(iep_clk);
538
539 iep->refclk_freq = clk_get_rate(iep_clk);
540
541 iep->plat_data = of_device_get_match_data(dev);
542 if (!iep->plat_data)
543 return -EINVAL;
544
545 iep->map = devm_regmap_init(dev, NULL, iep, iep->plat_data->config);
546 if (IS_ERR(iep->map)) {
547 dev_err(dev, "Failed to create regmap for IEP %ld\n",
548 PTR_ERR(iep->map));
549 return PTR_ERR(iep->map);
550 }
551
552 mutex_init(&iep->ptp_clk_mutex);
553 dev_set_drvdata(dev, iep);
554 icss_iep_disable(iep);
555
556 return 0;
557 }
558
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org