tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 99b7d010bc99397e22dbc589f60511582651d2a7 commit: 9c1c9598010fbb9daa1e2a67d23830092fb6246a [3968/7193] net/hinic: Update Huawei Intelligent Network Card Driver: hinic config: x86_64-randconfig-072-20240331 (https://download.01.org/0day-ci/archive/20240331/202403311206.m7mb4WNC-lkp@i...) compiler: gcc-12 (Ubuntu 12.3.0-9ubuntu2) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240331/202403311206.m7mb4WNC-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/202403311206.m7mb4WNC-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/huawei/hinic/hinic_lld.c:36: drivers/net/ethernet/huawei/hinic/hinic_nic_dev.h:210:33: error: field 'hinic_ieee_ets_default' has incomplete type 210 | struct ieee_ets hinic_ieee_ets_default; | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_nic_dev.h:211:33: error: field 'hinic_ieee_ets' has incomplete type 211 | struct ieee_ets hinic_ieee_ets; | ^~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_nic_dev.h:212:33: error: field 'hinic_ieee_pfc' has incomplete type 212 | struct ieee_pfc hinic_ieee_pfc; | ^~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:447:6: warning: no previous prototype for 'hinic_init_syncfw_timer' [-Wmissing-prototypes] 447 | void hinic_init_syncfw_timer(struct hinic_pcidev *pci_adapter) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:462:6: warning: no previous prototype for 'hinic_destroy_syncfw_timer' [-Wmissing-prototypes] 462 | void hinic_destroy_syncfw_timer(struct hinic_pcidev *pci_adapter) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:550:5: warning: no previous prototype for 'hinic_version_cmp' [-Wmissing-prototypes] 550 | int hinic_version_cmp(char *ver1, char *ver2) | ^~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:1139:7: warning: no previous prototype for 'hinic_get_ppf_hwdev_by_pdev' [-Wmissing-prototypes] 1139 | void *hinic_get_ppf_hwdev_by_pdev(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:1296:6: warning: no previous prototype for 'hinic_get_card_func_info_by_card_name' [-Wmissing-prototypes] 1296 | void hinic_get_card_func_info_by_card_name(const char *chip_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:1896:6: warning: no previous prototype for 'hinic_event_process' [-Wmissing-prototypes] 1896 | void hinic_event_process(void *adapter, struct hinic_event_info *event) | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c: In function 'hinic_get_vf_load_state':
drivers/net/ethernet/huawei/hinic/hinic_lld.c:2138:24: error: 'disable_vf_load' undeclared (first use in this function)
2138 | return disable_vf_load; | ^~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c:2138:24: note: each undeclared identifier is reported only once for each function it appears in drivers/net/ethernet/huawei/hinic/hinic_lld.c: In function 'hinic_ovs_set_vf_load_state': drivers/net/ethernet/huawei/hinic/hinic_lld.c:2198:46: error: 'disable_vf_load' undeclared (first use in this function) 2198 | hinic_set_vf_load_state(pci_adapter, disable_vf_load); | ^~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c: At top level: drivers/net/ethernet/huawei/hinic/hinic_lld.c:2352:6: warning: no previous prototype for 'cfg_order_reg' [-Wmissing-prototypes] 2352 | void cfg_order_reg(struct hinic_pcidev *pci_adapter) | ^~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c: In function 'hinic_func_init': drivers/net/ethernet/huawei/hinic/hinic_lld.c:2419:32: error: 'disable_vf_load' undeclared (first use in this function) 2419 | true : disable_vf_load; | ^~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic/hinic_lld.c: At top level: drivers/net/ethernet/huawei/hinic/hinic_lld.c:2127:13: warning: 'hinic_get_vf_load_state' defined but not used [-Wunused-function] 2127 | static bool hinic_get_vf_load_state(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~~~~~~~~
vim +/disable_vf_load +2138 drivers/net/ethernet/huawei/hinic/hinic_lld.c
2126 2127 static bool hinic_get_vf_load_state(struct pci_dev *pdev) 2128 { 2129 unsigned char parent_bus_number; 2130 struct card_node *chip_node; 2131 u8 id; 2132 2133 if (!pdev->is_virtfn) 2134 return false; 2135 2136 /* vf used in vm */ 2137 if (pci_is_root_bus(pdev->bus))
2138 return disable_vf_load;
2139 2140 parent_bus_number = pdev->bus->parent->number; 2141 2142 lld_dev_hold(); 2143 list_for_each_entry(chip_node, &g_hinic_chip_list, node) { 2144 if (chip_node->dp_bus_num == parent_bus_number) { 2145 for (id = 0; id < HINIC_MAX_PF_NUM; id++) { 2146 if (chip_node->pf_bus_num[id] == 2147 pdev->bus->number) { 2148 lld_dev_put(); 2149 return chip_node->disable_vf_load[id]; 2150 } 2151 } 2152 } 2153 } 2154 lld_dev_put(); 2155 2156 return disable_vf_load; 2157 } 2158