Documentation/.renames.txt: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/zte/dinghai/en_pf.c:85:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] 85 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:85:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 85 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ | static 1 warning generated. Documentation/.renames.txt: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/zte/dinghai/en_pf.c:86:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] 86 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 86 | void dh_pf_pci_close(struct dh_core_dev *dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:96:9: warning: no previous prototype for function 'zxdh_pf_pci_find_capability' [-Wmissing-prototypes] 96 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 96 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:124:15: warning: no previous prototype for function 'zxdh_pf_map_capability' [-Wmissing-prototypes] 124 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 124 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:190:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:190:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 190 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:187:9: warning: no previous prototype for function 'zxdh_pf_common_cfg_init' [-Wmissing-prototypes] 187 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 187 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:220:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 220 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:220:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 220 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:235:18: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'u32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types] 235 | cap.length), ¬ify_length); | ^~~~~~~~~~~~~~ ../include/linux/pci.h:1325:70: note: passing argument to parameter 'val' here 1325 | int pci_read_config_dword(const struct pci_dev *dev, int where, u32 *val); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:237:18: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'u32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types] 237 | cap.offset), ¬ify_offset); | ^~~~~~~~~~~~~~ ../include/linux/pci.h:1325:70: note: passing argument to parameter 'val' here 1325 | int pci_read_config_dword(const struct pci_dev *dev, int where, u32 *val); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:215:9: warning: no previous prototype for function 'zxdh_pf_notify_cfg_init' [-Wmissing-prototypes] 215 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 215 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:263:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:263:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 263 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:260:9: warning: no previous prototype for function 'zxdh_pf_device_cfg_init' [-Wmissing-prototypes] 260 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:260:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 260 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:287:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 287 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:287:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 287 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:285:6: warning: no previous prototype for function 'zxdh_pf_modern_cfg_uninit' [-Wmissing-prototypes] 285 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:285:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 285 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:300:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:300:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 300 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:297:9: warning: no previous prototype for function 'zxdh_pf_modern_cfg_init' [-Wmissing-prototypes] 297 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:297:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 297 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:334:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 334 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:334:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 334 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:331:10: warning: no previous prototype for function 'zxdh_pf_get_queue_notify_off' [-Wmissing-prototypes] 331 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:331:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 331 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:348:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 348 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:348:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 348 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:344:15: warning: no previous prototype for function 'zxdh_pf_map_vq_notify' [-Wmissing-prototypes] 344 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:344:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 344 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:375:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 375 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:375:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] 375 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ ~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/zte/dinghai/en_pf.c:373:6: warning: no previous prototype for function 'zxdh_pf_unmap_vq_notify' [-Wmissing-prototypes] 373 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) | ^ ../drivers/net/ethernet/zte/dinghai/en_pf.c:373:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 373 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) | ^ | static ../drivers/net/ethernet/zte/dinghai/en_pf.c:383:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 383 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 11 warnings and 20 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:2139: .] Error 2 make[1]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.AJufQLwOzt 2026-04-22 11:54:52.744551284 -0400 +++ /tmp/tmp.CzOiNfcwaa 2026-04-22 11:57:03.853955991 -0400 @@ -2,2 +2,2 @@ -../drivers/net/ethernet/zte/dinghai/en_pf.c:85:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] - 85 | void dh_pf_pci_close(struct dh_core_dev *dev) +../drivers/net/ethernet/zte/dinghai/en_pf.c:86:6: warning: no previous prototype for function 'dh_pf_pci_close' [-Wmissing-prototypes] + 86 | void dh_pf_pci_close(struct dh_core_dev *dev) @@ -5,2 +5,2 @@ -../drivers/net/ethernet/zte/dinghai/en_pf.c:85:1: note: declare 'static' if the function is not intended to be used outside of this translation unit - 85 | void dh_pf_pci_close(struct dh_core_dev *dev) +../drivers/net/ethernet/zte/dinghai/en_pf.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 86 | void dh_pf_pci_close(struct dh_core_dev *dev) @@ -9 +9,146 @@ -1 warning generated. +../drivers/net/ethernet/zte/dinghai/en_pf.c:96:9: warning: no previous prototype for function 'zxdh_pf_pci_find_capability' [-Wmissing-prototypes] + 96 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:96:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 96 | int32_t zxdh_pf_pci_find_capability(struct pci_dev *pdev, uint8_t cfg_type, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:124:15: warning: no previous prototype for function 'zxdh_pf_map_capability' [-Wmissing-prototypes] + 124 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:124:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 124 | void __iomem *zxdh_pf_map_capability(struct dh_core_dev *dh_dev, int32_t off, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:190:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 190 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:190:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 190 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:187:9: warning: no previous prototype for function 'zxdh_pf_common_cfg_init' [-Wmissing-prototypes] + 187 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 187 | int32_t zxdh_pf_common_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:220:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 220 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:220:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 220 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:235:18: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'u32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types] + 235 | cap.length), ¬ify_length); + | ^~~~~~~~~~~~~~ +../include/linux/pci.h:1325:70: note: passing argument to parameter 'val' here + 1325 | int pci_read_config_dword(const struct pci_dev *dev, int where, u32 *val); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:237:18: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'u32 *' (aka 'unsigned int *') [-Wincompatible-pointer-types] + 237 | cap.offset), ¬ify_offset); + | ^~~~~~~~~~~~~~ +../include/linux/pci.h:1325:70: note: passing argument to parameter 'val' here + 1325 | int pci_read_config_dword(const struct pci_dev *dev, int where, u32 *val); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:215:9: warning: no previous prototype for function 'zxdh_pf_notify_cfg_init' [-Wmissing-prototypes] + 215 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 215 | int32_t zxdh_pf_notify_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:263:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 263 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:263:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 263 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:260:9: warning: no previous prototype for function 'zxdh_pf_device_cfg_init' [-Wmissing-prototypes] + 260 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:260:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 260 | int32_t zxdh_pf_device_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:287:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 287 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:287:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 287 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:285:6: warning: no previous prototype for function 'zxdh_pf_modern_cfg_uninit' [-Wmissing-prototypes] + 285 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:285:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 285 | void zxdh_pf_modern_cfg_uninit(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:300:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 300 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:300:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 300 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:297:9: warning: no previous prototype for function 'zxdh_pf_modern_cfg_init' [-Wmissing-prototypes] + 297 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:297:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 297 | int32_t zxdh_pf_modern_cfg_init(struct dh_core_dev *dh_dev) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:334:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 334 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:334:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 334 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:331:10: warning: no previous prototype for function 'zxdh_pf_get_queue_notify_off' [-Wmissing-prototypes] + 331 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:331:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 331 | uint16_t zxdh_pf_get_queue_notify_off(struct dh_core_dev *dh_dev, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:348:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 348 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:348:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 348 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:344:15: warning: no previous prototype for function 'zxdh_pf_map_vq_notify' [-Wmissing-prototypes] + 344 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:344:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 344 | void __iomem *zxdh_pf_map_vq_notify(struct dh_core_dev *dh_dev, + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:375:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 375 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:375:25: error: incompatible integer to pointer conversion initializing 'struct zxdh_pf_device *' with an expression of type 'int' [-Wint-conversion] + 375 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ ~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/zte/dinghai/en_pf.c:373:6: warning: no previous prototype for function 'zxdh_pf_unmap_vq_notify' [-Wmissing-prototypes] + 373 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) + | ^ +../drivers/net/ethernet/zte/dinghai/en_pf.c:373:1: note: declare 'static' if the function is not intended to be used outside of this translation unit + 373 | void zxdh_pf_unmap_vq_notify(struct dh_core_dev *dh_dev, void *priv) + | ^ + | static +../drivers/net/ethernet/zte/dinghai/en_pf.c:383:34: error: call to undeclared function 'dh_core_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 383 | struct zxdh_pf_device *pf_dev = dh_core_priv(dh_dev); + | ^ +fatal error: too many errors emitted, stopping now [-ferror-limit=] +11 warnings and 20 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:2139: .] Error 2 +make[1]: *** [/srv/nipa-poller/net-next/wt-0/Makefile:248: __sub-make] Error 2 +make: *** [Makefile:248: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.WPhvNiGq6Y 2026-04-22 11:57:03.859041849 -0400 +++ /tmp/tmp.AjWjdxthg1 2026-04-22 11:57:03.859955945 -0400 @@ -1 +1 @@ - 1 ../drivers/net/ethernet/zte/dinghai/en_pf.c + 30 ../drivers/net/ethernet/zte/dinghai/en_pf.c