[openeuler:OLK-5.10 2989/2989] drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:1879:17: error: implicit declaration of function '__symbol_put'; did you mean '__symbol_get'?

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: c245365237da527fb423d85e7ec54648113f843d commit: 79871cd2cd720225eb582c9ed49fb4a96a270b3b [2989/2989] net/hinic3: Synchronize new NIC features and bug fixes config: x86_64-buildonly-randconfig-006-20250628 (https://download.01.org/0day-ci/archive/20250628/202506281459.uUU3BKjw-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/20250628/202506281459.uUU3BKjw-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/202506281459.uUU3BKjw-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:103:6: warning: no previous prototype for 'hinic3_uld_lock_init' [-Wmissing-prototypes] 103 | void hinic3_uld_lock_init(void) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:525:5: warning: no previous prototype for 'hinic3_pdev_is_virtfn' [-Wmissing-prototypes] 525 | u32 hinic3_pdev_is_virtfn(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:785:5: warning: no previous prototype for '__set_vroce_func_state' [-Wmissing-prototypes] 785 | int __set_vroce_func_state(struct hinic3_pcidev *pci_adapter) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:826:6: warning: no previous prototype for 'slave_host_mgmt_vroce_work' [-Wmissing-prototypes] 826 | void slave_host_mgmt_vroce_work(struct work_struct *work) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:834:7: warning: no previous prototype for 'hinic3_get_roce_uld_by_pdev' [-Wmissing-prototypes] 834 | void *hinic3_get_roce_uld_by_pdev(struct pci_dev *pdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:1796:6: warning: no previous prototype for 'hinic3_set_func_state' [-Wmissing-prototypes] 1796 | void hinic3_set_func_state(struct hinic3_pcidev *pci_adapter) | ^~~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:1822:6: warning: no previous prototype for 'slave_host_mgmt_work' [-Wmissing-prototypes] 1822 | void slave_host_mgmt_work(struct work_struct *work) | ^~~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c: In function 'slave_host_vfio_probe_delay_work':
drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c:1879:17: error: implicit declaration of function '__symbol_put'; did you mean '__symbol_get'? [-Werror=implicit-function-declaration] 1879 | __symbol_put("migration_dev_migration_probe"); | ^~~~~~~~~~~~ | __symbol_get cc1: some warnings being treated as errors
vim +1879 drivers/net/ethernet/huawei/hinic3/hw/hinic3_lld.c 1858 1859 static void slave_host_vfio_probe_delay_work(struct work_struct *work) 1860 { 1861 struct delayed_work *delay = to_delayed_work(work); 1862 struct hinic3_pcidev *pci_adapter = container_of(delay, struct hinic3_pcidev, migration_probe_dwork); 1863 struct pci_dev *pdev = pci_adapter->pcidev; 1864 int (*dev_migration_probe)(struct pci_dev *); 1865 int rc; 1866 1867 if (hinic3_func_type((struct hinic3_hwdev *)pci_adapter->hwdev) != TYPE_PF) { 1868 return; 1869 } 1870 1871 dev_migration_probe = __symbol_get("migration_dev_migration_probe"); 1872 if (!(dev_migration_probe)) { 1873 sdk_err(&pdev->dev, 1874 "Failed to find: migration_dev_migration_probe"); 1875 queue_delayed_work(pci_adapter->migration_probe_workq, 1876 &pci_adapter->migration_probe_dwork, WAIT_TIME * HZ); 1877 } else { 1878 rc = dev_migration_probe(pdev);
1879 __symbol_put("migration_dev_migration_probe"); 1880 if (rc) { 1881 sdk_err(&pdev->dev, 1882 "Failed to __dev_migration_probe, rc:0x%x, pf migrated(%d).\n", 1883 rc, g_is_pf_migrated); 1884 } else { 1885 g_is_pf_migrated = true; 1886 sdk_info(&pdev->dev, 1887 "Successed in __dev_migration_probe, pf migrated(%d).\n", 1888 g_is_pf_migrated); 1889 } 1890 } 1891 1892 return; 1893 } 1894
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot