Re: [PATCH net-next v3 3/3] net: stmmac: Add driver support for DWMAC5 fault IRQ Support

From: kernel test robot
Date: Fri Nov 24 2023 - 08:20:32 EST


Hi Suraj,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Suraj-Jaiswal/dt-bindings-net-qcom-ethqos-add-binding-doc-for-fault-IRQ-for-sa8775p/20231123-202252
base: net-next/main
patch link: https://lore.kernel.org/r/62eaaace3713751cb1ecac3163e857737107ca0e.1700737841.git.quic_jsuraj%40quicinc.com
patch subject: [PATCH net-next v3 3/3] net: stmmac: Add driver support for DWMAC5 fault IRQ Support
config: csky-randconfig-r081-20231124 (https://download.01.org/0day-ci/archive/20231124/202311241444.wkNnpI5Q-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241444.wkNnpI5Q-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311241444.wkNnpI5Q-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:693:5: warning: no previous prototype for 'stmmac_get_fault_intr_config' [-Wmissing-prototypes]
693 | int stmmac_get_fault_intr_config(struct platform_device *pdev, struct stmmac_resources *res)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/stmmac_get_fault_intr_config +693 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

692
> 693 int stmmac_get_fault_intr_config(struct platform_device *pdev, struct stmmac_resources *res)
694 {
695 int ret = 0;
696
697 res->safety_common_intr = platform_get_irq_byname(pdev, "safety");
698
699 if (res->safety_common_intr < 0) {
700 if (res->safety_common_intr != -EPROBE_DEFER)
701 dev_err(&pdev->dev, "safety IRQ configuration information not found\n");
702 ret = 1;
703 }
704
705 return ret;
706 }
707

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki