========== build_clang - FAILED Documentation/.renames.txt: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/zte/dinghai/en_pf.c:80:10: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' 80 | pf_dev->pci_ioremap_addr[0] = | ~~~~~~ ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:83:15: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' 83 | if (!pf_dev->pci_ioremap_addr[0]) { | ~~~~~~ ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:105:26: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' 105 | iounmap((void *)pf_dev->pci_ioremap_addr[0]); | ~~~~~~ ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:100:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] 100 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:100:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 100 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ | static 1 warning and 3 errors generated. make[8]: *** [../scripts/Makefile.build:289: drivers/net/ethernet/zte/dinghai/en_pf.o] Error 1 make[7]: *** [../scripts/Makefile.build:548: drivers/net/ethernet/zte/dinghai] Error 2 make[6]: *** [../scripts/Makefile.build:548: drivers/net/ethernet/zte] Error 2 make[5]: *** [../scripts/Makefile.build:548: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:548: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:548: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:2105: .] Error 2 make[1]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 Documentation/.renames.txt: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/zte/dinghai/en_pf.c:100:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] 100 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:100:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 100 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:110:9: warning: no previous prototype for function 'zxdh_pf_pci_find_capability' [-Wmissing-prototypes] 110 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 110 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:138:15: warning: no previous prototype for function 'zxdh_pf_map_capability' [-Wmissing-prototypes] 138 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 138 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:201:9: warning: no previous prototype for function 'zxdh_pf_common_cfg_init' [-Wmissing-prototypes] 201 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:201:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 201 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:229:9: warning: no previous prototype for function 'zxdh_pf_notify_cfg_init' [-Wmissing-prototypes] 229 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:229:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 229 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:274:9: warning: no previous prototype for function 'zxdh_pf_device_cfg_init' [-Wmissing-prototypes] 274 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:274:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 274 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:299:6: warning: no previous prototype for function 'zxdh_pf_modern_cfg_uninit' [-Wmissing-prototypes] 299 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 299 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:311:9: warning: no previous prototype for function 'zxdh_pf_modern_cfg_init' [-Wmissing-prototypes] 311 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:311:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 311 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:345:10: warning: no previous prototype for function 'zxdh_pf_get_queue_notify_off' [-Wmissing-prototypes] 345 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 345 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:358:15: warning: no previous prototype for function 'zxdh_pf_map_vq_notify' [-Wmissing-prototypes] 358 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:358:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 358 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:387:6: warning: no previous prototype for function 'zxdh_pf_unmap_vq_notify' [-Wmissing-prototypes] 387 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:387:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 387 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:395:6: warning: no previous prototype for function 'zxdh_pf_set_status' [-Wmissing-prototypes] 395 | void zxdh_pf_set_status(struct dh_core_dev *dh_dev, uint8_t status) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 395 | void zxdh_pf_set_status(struct dh_core_dev *dh_dev, uint8_t status) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:402:9: warning: no previous prototype for function 'zxdh_pf_get_status' [-Wmissing-prototypes] 402 | uint8_t zxdh_pf_get_status(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:402:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 402 | uint8_t zxdh_pf_get_status(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:420:6: warning: no previous prototype for function 'zxdh_pf_get_vf_mac' [-Wmissing-prototypes] 420 | void zxdh_pf_get_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:420:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 420 | void zxdh_pf_get_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:443:6: warning: no previous prototype for function 'zxdh_pf_set_vf_mac_reg' [-Wmissing-prototypes] 443 | void zxdh_pf_set_vf_mac_reg(struct zxdh_pf_device *pf_dev, uint8_t *mac, int32_t vf_id) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:443:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 443 | void zxdh_pf_set_vf_mac_reg(struct zxdh_pf_device *pf_dev, uint8_t *mac, int32_t vf_id) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:461:6: warning: no previous prototype for function 'zxdh_pf_set_vf_mac' [-Wmissing-prototypes] 461 | void zxdh_pf_set_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:461:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 461 | void zxdh_pf_set_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:468:6: warning: no previous prototype for function 'zxdh_set_mac' [-Wmissing-prototypes] 468 | void zxdh_set_mac(struct dh_core_dev *dh_dev, uint8_t *mac) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:468:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 468 | void zxdh_set_mac(struct dh_core_dev *dh_dev, uint8_t *mac) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:481:6: warning: no previous prototype for function 'zxdh_get_mac' [-Wmissing-prototypes] 481 | void zxdh_get_mac(struct dh_core_dev *dh_dev, uint8_t *mac) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:481:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 481 | void zxdh_get_mac(struct dh_core_dev *dh_dev, uint8_t *mac) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:498:10: warning: no previous prototype for function 'zxdh_pf_get_features' [-Wmissing-prototypes] 498 | uint64_t zxdh_pf_get_features(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:498:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 498 | uint64_t zxdh_pf_get_features(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:511:6: warning: no previous prototype for function 'zxdh_pf_set_features' [-Wmissing-prototypes] 511 | void zxdh_pf_set_features(struct dh_core_dev *dh_dev, uint64_t features) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:511:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 511 | void zxdh_pf_set_features(struct dh_core_dev *dh_dev, uint64_t features) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:17:19: warning: unused variable 'zxdh_pf_driver_string' [-Wunused-const-variable] 17 | static const char zxdh_pf_driver_string[] = DRV_SUMMARY; | ^~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:18:19: warning: unused variable 'zxdh_pf_copyright' [-Wunused-const-variable] 18 | static const char zxdh_pf_copyright[] = "Copyright (c) 2022-2024, ZTE Corporation."; | ^~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:409:16: warning: unused function 'zxdh_pf_get_cfg_gen' [-Wunused-function] 409 | static uint8_t zxdh_pf_get_cfg_gen(struct dh_core_dev *dh_dev) | ^~~~~~~~~~~~~~~~~~~ 23 warnings generated. New errors added --- /tmp/tmp.Er3hkv0GnX 2026-04-14 22:37:16.351681096 -0400 +++ /tmp/tmp.YPTHM0TcBV 2026-04-14 22:37:25.109080070 -0400 @@ -2,9 +1,0 @@ -../drivers/net/ethernet/zte/dinghai/en_pf.c:80:10: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' - 80 | pf_dev->pci_ioremap_addr[0] = - | ~~~~~~ ^ -../drivers/net/ethernet/zte/dinghai/en_pf.c:83:15: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' - 83 | if (!pf_dev->pci_ioremap_addr[0]) { - | ~~~~~~ ^ -../drivers/net/ethernet/zte/dinghai/en_pf.c:105:26: error: no member named 'pci_ioremap_addr' in 'struct zxdh_pf_device' - 105 | iounmap((void *)pf_dev->pci_ioremap_addr[0]); - | ~~~~~~ ^ @@ -18,12 +9,143 @@ -1 warning and 3 errors generated. -make[8]: *** [../scripts/Makefile.build:289: drivers/net/ethernet/zte/dinghai/en_pf.o] Error 1 -make[7]: *** [../scripts/Makefile.build:548: drivers/net/ethernet/zte/dinghai] Error 2 -make[6]: *** [../scripts/Makefile.build:548: drivers/net/ethernet/zte] Error 2 -make[5]: *** [../scripts/Makefile.build:548: drivers/net/ethernet] Error 2 -make[4]: *** [../scripts/Makefile.build:548: drivers/net] Error 2 -make[4]: *** Waiting for unfinished jobs.... -make[3]: *** [../scripts/Makefile.build:548: drivers] Error 2 -make[3]: *** Waiting for unfinished jobs.... -make[2]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:2105: .] Error 2 -make[1]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:248: __sub-make] Error 2 -make: *** [Makefile:248: __sub-make] Error 2 +../drivers/net/ethernet/zte/dinghai/en_pf.c:110:9: warning: no previous prototype for function 'zxdh_pf_pci_find_capability' [-Wmissing-prototypes] + 110 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 110 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:138:15: warning: no previous prototype for function 'zxdh_pf_map_capability' [-Wmissing-prototypes] + 138 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 138 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:201:9: warning: no previous prototype for function 'zxdh_pf_common_cfg_init' [-Wmissing-prototypes] + 201 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:201:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 201 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:229:9: warning: no previous prototype for function 'zxdh_pf_notify_cfg_init' [-Wmissing-prototypes] + 229 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:229:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 229 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:274:9: warning: no previous prototype for function 'zxdh_pf_device_cfg_init' [-Wmissing-prototypes] + 274 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:274:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 274 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:299:6: warning: no previous prototype for function 'zxdh_pf_modern_cfg_uninit' [-Wmissing-prototypes] + 299 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:299:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 299 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:311:9: warning: no previous prototype for function 'zxdh_pf_modern_cfg_init' [-Wmissing-prototypes] + 311 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:311:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 311 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:345:10: warning: no previous prototype for function 'zxdh_pf_get_queue_notify_off' [-Wmissing-prototypes] + 345 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 345 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:358:15: warning: no previous prototype for function 'zxdh_pf_map_vq_notify' [-Wmissing-prototypes] + 358 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:358:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 358 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:387:6: warning: no previous prototype for function 'zxdh_pf_unmap_vq_notify' [-Wmissing-prototypes] + 387 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:387:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 387 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:395:6: warning: no previous prototype for function 'zxdh_pf_set_status' [-Wmissing-prototypes] + 395 | void zxdh_pf_set_status(struct dh_core_dev *dh_dev, uint8_t status) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 395 | void zxdh_pf_set_status(struct dh_core_dev *dh_dev, uint8_t status) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:402:9: warning: no previous prototype for function 'zxdh_pf_get_status' [-Wmissing-prototypes] + 402 | uint8_t zxdh_pf_get_status(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:402:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 402 | uint8_t zxdh_pf_get_status(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:420:6: warning: no previous prototype for function 'zxdh_pf_get_vf_mac' [-Wmissing-prototypes] + 420 | void zxdh_pf_get_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:420:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 420 | void zxdh_pf_get_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:443:6: warning: no previous prototype for function 'zxdh_pf_set_vf_mac_reg' [-Wmissing-prototypes] + 443 | void zxdh_pf_set_vf_mac_reg(struct zxdh_pf_device *pf_dev, uint8_t *mac, int32_t vf_id) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:443:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 443 | void zxdh_pf_set_vf_mac_reg(struct zxdh_pf_device *pf_dev, uint8_t *mac, int32_t vf_id) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:461:6: warning: no previous prototype for function 'zxdh_pf_set_vf_mac' [-Wmissing-prototypes] + 461 | void zxdh_pf_set_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:461:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 461 | void zxdh_pf_set_vf_mac(struct dh_core_dev *dh_dev, uint8_t *mac, int32_t vf_id) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:468:6: warning: no previous prototype for function 'zxdh_set_mac' [-Wmissing-prototypes] + 468 | void zxdh_set_mac(struct dh_core_dev *dh_dev, uint8_t *mac) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:468:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 468 | void zxdh_set_mac(struct dh_core_dev *dh_dev, uint8_t *mac) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:481:6: warning: no previous prototype for function 'zxdh_get_mac' [-Wmissing-prototypes] + 481 | void zxdh_get_mac(struct dh_core_dev *dh_dev, uint8_t *mac) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:481:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 481 | void zxdh_get_mac(struct dh_core_dev *dh_dev, uint8_t *mac) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:498:10: warning: no previous prototype for function 'zxdh_pf_get_features' [-Wmissing-prototypes] + 498 | uint64_t zxdh_pf_get_features(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:498:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 498 | uint64_t zxdh_pf_get_features(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:511:6: warning: no previous prototype for function 'zxdh_pf_set_features' [-Wmissing-prototypes] + 511 | void zxdh_pf_set_features(struct dh_core_dev *dh_dev, uint64_t features) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:511:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 511 | void zxdh_pf_set_features(struct dh_core_dev *dh_dev, uint64_t features) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:17:19: warning: unused variable 'zxdh_pf_driver_string' [-Wunused-const-variable] + 17 | static const char zxdh_pf_driver_string[] = DRV_SUMMARY; + | ^~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:18:19: warning: unused variable 'zxdh_pf_copyright' [-Wunused-const-variable] + 18 | static const char zxdh_pf_copyright[] = "Copyright (c) 2022-2024, ZTE Corporation."; + | ^~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:409:16: warning: unused function 'zxdh_pf_get_cfg_gen' [-Wunused-function] + 409 | static uint8_t zxdh_pf_get_cfg_gen(struct dh_core_dev *dh_dev) + | ^~~~~~~~~~~~~~~~~~~ +23 warnings generated. Per-file breakdown --- /tmp/tmp.H1PlRBUahj 2026-04-14 22:38:44.905740690 -0400 +++ /tmp/tmp.cTZj1Qiii6 2026-04-14 22:38:44.906740680 -0400 @@ -1 +1 @@ - 4 ../drivers/net/ethernet/zte/dinghai/en_pf.c + 23 ../drivers/net/ethernet/zte/dinghai/en_pf.c