tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 830c644d6e307456c2e77e6ce8bd6f1cf1ddc351 commit: bc0e7c9b35e0290125847e322dce4609f83f2dc9 [7226/7334] RNP: Fix warnings config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240409/202404092155.wk6wC2Wu-lkp@i...) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240409/202404092155.wk6wC2Wu-lkp@i...)
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/202404092155.wk6wC2Wu-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/mucse/rnp/rnp_main.c:5739: warning: Function parameter or member 'netdev' not described in 'rnp_netpoll' drivers/net/ethernet/mucse/rnp/rnp_main.c:5739: warning: expecting prototype for Polling 'interrupt'(). Prototype was for rnp_netpoll() instead
--
drivers/net/ethernet/mucse/rnp/rnp_mbx_fw.c:65: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* force firmware report link event to driver
vim +5739 drivers/net/ethernet/mucse/rnp/rnp_main.c
455d45ae080810 Dong Yibo 2024-02-22 5731 455d45ae080810 Dong Yibo 2024-02-22 5732 #ifdef CONFIG_NET_POLL_CONTROLLER bc0e7c9b35e029 Dong Yibo 2024-03-29 5733 /** 455d45ae080810 Dong Yibo 2024-02-22 5734 * Polling 'interrupt' - used by things like netconsole to send skbs 455d45ae080810 Dong Yibo 2024-02-22 5735 * without having to re-enable interrupts. It's not called while 455d45ae080810 Dong Yibo 2024-02-22 5736 * the interrupt routine is executing. 455d45ae080810 Dong Yibo 2024-02-22 5737 */ 455d45ae080810 Dong Yibo 2024-02-22 5738 static void rnp_netpoll(struct net_device *netdev) 455d45ae080810 Dong Yibo 2024-02-22 @5739 { 455d45ae080810 Dong Yibo 2024-02-22 5740 struct rnp_adapter *adapter = netdev_priv(netdev); 455d45ae080810 Dong Yibo 2024-02-22 5741 int i; 455d45ae080810 Dong Yibo 2024-02-22 5742 455d45ae080810 Dong Yibo 2024-02-22 5743 /* if interface is down do nothing */ 455d45ae080810 Dong Yibo 2024-02-22 5744 if (test_bit(__RNP_DOWN, &adapter->state)) 455d45ae080810 Dong Yibo 2024-02-22 5745 return; 455d45ae080810 Dong Yibo 2024-02-22 5746 455d45ae080810 Dong Yibo 2024-02-22 5747 adapter->flags |= RNP_FLAG_IN_NETPOLL; 455d45ae080810 Dong Yibo 2024-02-22 5748 for (i = 0; i < adapter->num_q_vectors; i++) 455d45ae080810 Dong Yibo 2024-02-22 5749 rnp_msix_clean_rings(0, adapter->q_vector[i]); 455d45ae080810 Dong Yibo 2024-02-22 5750 adapter->flags &= ~RNP_FLAG_IN_NETPOLL; 455d45ae080810 Dong Yibo 2024-02-22 5751 } 455d45ae080810 Dong Yibo 2024-02-22 5752
:::::: The code at line 5739 was first introduced by commit :::::: 455d45ae080810ae554f5e586adb9004230f9f70 drivers: initial support for rnp drivers from Mucse Technology
:::::: TO: Dong Yibo dong100@mucse.com :::::: CC: Dong Yibo dong100@mucse.com