[openeuler:OLK-6.6 2455/2455] drivers/net/ethernet/huawei/hinic3/hinic3_ethtool.c:823:5: warning: no previous prototype for 'hinic3_set_rxq_recovery_flag'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9b85bcf0e6357841885264f42859bec05c9073f4 commit: dcb286ce50a35a77e51b61db72c7cc001647b598 [2455/2455] net/hinic3: add huawei/hinic3 driver config: x86_64-buildonly-randconfig-006-20250704 (https://download.01.org/0day-ci/archive/20250704/202507040311.LBh4TqFz-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250704/202507040311.LBh4TqFz-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/202507040311.LBh4TqFz-lkp@intel.com/ All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/huawei/hinic3/hinic3_ethtool.c:823:5: warning: no previous prototype for 'hinic3_set_rxq_recovery_flag' [-Wmissing-prototypes] 823 | int hinic3_set_rxq_recovery_flag(struct net_device *netdev, u32 priv_flags) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:64:55: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init] 64 | struct hinic3_uld_info g_uld_info[SERVICE_T_MAX] = { {0} }; | ^ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:64:55: note: (near initialization for 'g_uld_info[0]') drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:64:55: error: invalid initializer drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:64:55: note: (near initialization for 'g_uld_info[0].<anonymous>') drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:69:6: warning: no previous prototype for 'hinic3_uld_lock_init' [-Wmissing-prototypes] 69 | void hinic3_uld_lock_init(void) | ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/hinic3_set_rxq_recovery_flag +823 drivers/net/ethernet/huawei/hinic3/hinic3_ethtool.c 822
823 int hinic3_set_rxq_recovery_flag(struct net_device *netdev, u32 priv_flags) 824 { 825 struct hinic3_nic_dev *nic_dev = netdev_priv(netdev); 826 827 if (priv_flags & HINIC3_PRIV_FLAGS_RXQ_RECOVERY) { 828 if (!HINIC3_SUPPORT_RXQ_RECOVERY(nic_dev->hwdev)) { 829 nicif_info(nic_dev, drv, netdev, "Unsupport open rxq recovery\n"); 830 return -EOPNOTSUPP; 831 } 832 833 if (test_and_set_bit(HINIC3_RXQ_RECOVERY, &nic_dev->flags)) 834 return 0; 835 queue_delayed_work(nic_dev->workq, &nic_dev->rxq_check_work, HZ); 836 nicif_info(nic_dev, drv, netdev, "open rxq recovery\n"); 837 } else { 838 if (!test_and_clear_bit(HINIC3_RXQ_RECOVERY, &nic_dev->flags)) 839 return 0; 840 cancel_delayed_work_sync(&nic_dev->rxq_check_work); 841 nicif_info(nic_dev, drv, netdev, "close rxq recovery\n"); 842 } 843 844 return 0; 845 } 846
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot