.pylintrc: warning: ignored by one of the .gitignore files In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:41: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:45: ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 202 | struct devlink_fmsg *fmsg); | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:46: ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 13 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:465:13: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 465 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:24: error: incompatible integer to pointer conversion initializing 'struct mlx5_core_dev *' with an expression of type 'int' [-Wint-conversion] 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:473:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 473 | devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:477:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 477 | devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:488:39: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 488 | mlx5_fw_reporter_ctx_pairs_put(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:491:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 491 | devlink_fmsg_u8_pair_put(fmsg, "syndrome", fw_reporter_ctx->err_synd); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:492:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | devlink_fmsg_u32_pair_put(fmsg, "fw_miss_counter", fw_reporter_ctx->miss_counter); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:497:19: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 497 | struct devlink_fmsg *fmsg) | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:507:2: error: call to undeclared function 'devlink_fmsg_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | devlink_fmsg_pair_nest_start(fmsg, "health buffer"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:508:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 508 | devlink_fmsg_obj_nest_start(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:509:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 509 | devlink_fmsg_arr_pair_nest_start(fmsg, "assert_var"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:511:3: error: call to undeclared function 'devlink_fmsg_u32_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | devlink_fmsg_u32_put(fmsg, ioread32be(h->assert_var + i)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:512:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 512 | devlink_fmsg_arr_pair_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:513:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 513 | devlink_fmsg_u32_pair_put(fmsg, "assert_exit_ptr", | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:520:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 520 | devlink_fmsg_u8_pair_put(fmsg, "rfr", mlx5_health_get_rfr(rfr_severity)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:526:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | devlink_fmsg_obj_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:527:2: error: call to undeclared function 'devlink_fmsg_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 527 | devlink_fmsg_pair_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:532:16: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 532 | struct devlink_fmsg *fmsg, void *priv_ctx, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:535:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 6 warnings and 20 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/health.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c:8: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/dm.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/gid.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.c:7: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.c:5: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:4: ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 13 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:60:6: error: conflicting types for 'mlx5_reporter_vnic_diagnose_counters' 60 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:12:6: note: previous declaration is here 12 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:119:44: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] 119 | mlx5_reporter_vnic_diagnose_counters(dev, fmsg, 0, false); | ^~~~ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:29: note: passing argument to parameter 'fmsg' here 13 | struct devlink_fmsg *fmsg, | ^ 1 warning and 2 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:6: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/channels.c:5: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/channels.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_common.c:33: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_common.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:34: ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 202 | struct devlink_fmsg *fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:37: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:896:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 896 | devlink_fmsg_obj_nest_start(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:897:2: error: call to undeclared function 'devlink_fmsg_u64_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 897 | devlink_fmsg_u64_pair_put(fmsg, "timestamp", trace_data->timestamp); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:898:2: error: call to undeclared function 'devlink_fmsg_bool_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 898 | devlink_fmsg_bool_pair_put(fmsg, "lost", trace_data->lost); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:899:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 899 | devlink_fmsg_u8_pair_put(fmsg, "event_id", trace_data->event_id); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:900:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 900 | devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:901:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 901 | devlink_fmsg_obj_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:905:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 905 | struct devlink_fmsg *fmsg) | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:904:5: error: conflicting types for 'mlx5_fw_tracer_get_saved_traces_objects' 904 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:201:5: note: previous declaration is here 201 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:922:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 922 | devlink_fmsg_arr_pair_nest_start(fmsg, "dump fw traces"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:925:32: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] 925 | mlx5_devlink_fmsg_fill_trace(fmsg, &straces[index]); | ^~~~ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:51: note: passing argument to parameter 'fmsg' here 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:930:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 930 | devlink_fmsg_arr_pair_nest_end(fmsg); | ^ 3 warnings and 10 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_fs.c:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_fs.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c:35: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h:38: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/xdp.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:45: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_rx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_tx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_dim.c:33: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_dim.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/tir.c:5: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/tir.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c:35: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_txrx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.c:33: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.h:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/port.o] Error 1 ../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:16: error: call to undeclared function 'irq_get_effective_affinity_mask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:14: error: incompatible integer to pointer conversion assigning to 'const struct cpumask *' from 'int' [-Wint-conversion] 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_main.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c:36: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_selftest.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:34: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:35: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_stats.o] Error 1 make[7]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox/mlx5/core] Error 2 make[6]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox] Error 2 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [../scripts/Makefile.build:554: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:554: drivers/net] Error 2 make[3]: *** [../scripts/Makefile.build:554: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2003: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 .pylintrc: warning: ignored by one of the .gitignore files .pylintrc: warning: ignored by one of the .gitignore files In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/gid.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c:8: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/dm.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:41: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:45: ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 202 | struct devlink_fmsg *fmsg); | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:46: ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 13 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:465:13: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 465 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:24: error: incompatible integer to pointer conversion initializing 'struct mlx5_core_dev *' with an expression of type 'int' [-Wint-conversion] 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:473:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 473 | devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:477:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 477 | devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:488:39: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 488 | mlx5_fw_reporter_ctx_pairs_put(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:491:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 491 | devlink_fmsg_u8_pair_put(fmsg, "syndrome", fw_reporter_ctx->err_synd); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:492:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | devlink_fmsg_u32_pair_put(fmsg, "fw_miss_counter", fw_reporter_ctx->miss_counter); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:497:19: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 497 | struct devlink_fmsg *fmsg) | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:507:2: error: call to undeclared function 'devlink_fmsg_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 507 | devlink_fmsg_pair_nest_start(fmsg, "health buffer"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:508:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 508 | devlink_fmsg_obj_nest_start(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:509:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 509 | devlink_fmsg_arr_pair_nest_start(fmsg, "assert_var"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:511:3: error: call to undeclared function 'devlink_fmsg_u32_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 511 | devlink_fmsg_u32_put(fmsg, ioread32be(h->assert_var + i)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:512:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 512 | devlink_fmsg_arr_pair_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:513:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 513 | devlink_fmsg_u32_pair_put(fmsg, "assert_exit_ptr", | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:520:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 520 | devlink_fmsg_u8_pair_put(fmsg, "rfr", mlx5_health_get_rfr(rfr_severity)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:526:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 526 | devlink_fmsg_obj_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:527:2: error: call to undeclared function 'devlink_fmsg_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 527 | devlink_fmsg_pair_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:532:16: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 532 | struct devlink_fmsg *fmsg, void *priv_ctx, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/health.c:535:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 6 warnings and 20 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/health.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:4: ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 13 | struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:60:6: error: conflicting types for 'mlx5_reporter_vnic_diagnose_counters' 60 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:12:6: note: previous declaration is here 12 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:119:44: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] 119 | mlx5_reporter_vnic_diagnose_counters(dev, fmsg, 0, false); | ^~~~ ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:29: note: passing argument to parameter 'fmsg' here 13 | struct devlink_fmsg *fmsg, | ^ 1 warning and 2 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.c:7: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.c:5: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:34: ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 202 | struct devlink_fmsg *fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:37: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:896:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 896 | devlink_fmsg_obj_nest_start(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:897:2: error: call to undeclared function 'devlink_fmsg_u64_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 897 | devlink_fmsg_u64_pair_put(fmsg, "timestamp", trace_data->timestamp); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:898:2: error: call to undeclared function 'devlink_fmsg_bool_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 898 | devlink_fmsg_bool_pair_put(fmsg, "lost", trace_data->lost); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:899:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 899 | devlink_fmsg_u8_pair_put(fmsg, "event_id", trace_data->event_id); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:900:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 900 | devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:901:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 901 | devlink_fmsg_obj_nest_end(fmsg); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:905:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] 905 | struct devlink_fmsg *fmsg) | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:904:5: error: conflicting types for 'mlx5_fw_tracer_get_saved_traces_objects' 904 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:201:5: note: previous declaration is here 201 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:922:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 922 | devlink_fmsg_arr_pair_nest_start(fmsg, "dump fw traces"); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:925:32: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] 925 | mlx5_devlink_fmsg_fill_trace(fmsg, &straces[index]); | ^~~~ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:51: note: passing argument to parameter 'fmsg' here 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, | ^ ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:930:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 930 | devlink_fmsg_arr_pair_nest_end(fmsg); | ^ 3 warnings and 10 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/channels.c:5: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/channels.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/tir.c:5: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/tir.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.c:33: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.h:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/port.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:6: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_fs.c:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_fs.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_common.c:33: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_common.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_dim.c:33: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_dim.o] Error 1 ../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:16: error: call to undeclared function 'irq_get_effective_affinity_mask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:14: error: incompatible integer to pointer conversion assigning to 'const struct cpumask *' from 'int' [-Wint-conversion] 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_main.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c:36: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_selftest.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:37: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:40: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_tx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c:4: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c:35: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h:38: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/xdp.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c:35: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_txrx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:45: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ 1 error generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_rx.o] Error 1 In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:34: ../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' 955 | struct devlink_port dl_port; | ^ ../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' 2468 | struct devlink_port *devlink_port; | ^ In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:35: In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | return devlink_net(priv_to_devlink(dev)); | ^ ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] 50 | return devlink_net(priv_to_devlink(dev)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_stats.o] Error 1 make[7]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox/mlx5/core] Error 2 make[6]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox] Error 2 make[5]: *** [../scripts/Makefile.build:554: drivers/net/ethernet] Error 2 make[4]: *** [../scripts/Makefile.build:554: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:554: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2003: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.16AkQ3i5Fg 2025-06-26 11:03:06.797748921 -0700 +++ /tmp/tmp.DETHL9jFC8 2025-06-26 11:04:51.266272812 -0700 @@ -1,0 +2,377 @@ +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c:37: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/gid.o] Error 1 +make[8]: *** Waiting for unfinished jobs.... +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c:8: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/lib/dm.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:41: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:45: +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 202 | struct devlink_fmsg *fmsg); + | ^ +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/health.c:46: +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 13 | struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:465:13: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 465 | struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:468:24: error: incompatible integer to pointer conversion initializing 'struct mlx5_core_dev *' with an expression of type 'int' [-Wint-conversion] + 468 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:473:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 473 | devlink_fmsg_u8_pair_put(fmsg, "Syndrome", synd); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:477:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 477 | devlink_fmsg_string_pair_put(fmsg, "Description", hsynd_str(synd)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:488:39: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 488 | mlx5_fw_reporter_ctx_pairs_put(struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:491:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 491 | devlink_fmsg_u8_pair_put(fmsg, "syndrome", fw_reporter_ctx->err_synd); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:492:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 492 | devlink_fmsg_u32_pair_put(fmsg, "fw_miss_counter", fw_reporter_ctx->miss_counter); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:497:19: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 497 | struct devlink_fmsg *fmsg) + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:507:2: error: call to undeclared function 'devlink_fmsg_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 507 | devlink_fmsg_pair_nest_start(fmsg, "health buffer"); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:508:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 508 | devlink_fmsg_obj_nest_start(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:509:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 509 | devlink_fmsg_arr_pair_nest_start(fmsg, "assert_var"); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:511:3: error: call to undeclared function 'devlink_fmsg_u32_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 511 | devlink_fmsg_u32_put(fmsg, ioread32be(h->assert_var + i)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:512:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 512 | devlink_fmsg_arr_pair_nest_end(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:513:2: error: call to undeclared function 'devlink_fmsg_u32_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 513 | devlink_fmsg_u32_pair_put(fmsg, "assert_exit_ptr", + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:520:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 520 | devlink_fmsg_u8_pair_put(fmsg, "rfr", mlx5_health_get_rfr(rfr_severity)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:526:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 526 | devlink_fmsg_obj_nest_end(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:527:2: error: call to undeclared function 'devlink_fmsg_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 527 | devlink_fmsg_pair_nest_end(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:532:16: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 532 | struct devlink_fmsg *fmsg, void *priv_ctx, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/health.c:535:30: error: call to undeclared function 'devlink_health_reporter_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 535 | struct mlx5_core_dev *dev = devlink_health_reporter_priv(reporter); + | ^ +fatal error: too many errors emitted, stopping now [-ferror-limit=] +6 warnings and 20 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/health.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:4: +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:15: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 13 | struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:60:6: error: conflicting types for 'mlx5_reporter_vnic_diagnose_counters' + 60 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:12:6: note: previous declaration is here + 12 | void mlx5_reporter_vnic_diagnose_counters(struct mlx5_core_dev *dev, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c:119:44: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] + 119 | mlx5_reporter_vnic_diagnose_counters(dev, fmsg, 0, false); + | ^~~~ +../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h:13:29: note: passing argument to parameter 'fmsg' here + 13 | struct devlink_fmsg *fmsg, + | ^ +1 warning and 2 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.c:7: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/crdump.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.c:5: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/rsc_dump.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:34: +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:202:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 202 | struct devlink_fmsg *fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:37: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:896:2: error: call to undeclared function 'devlink_fmsg_obj_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 896 | devlink_fmsg_obj_nest_start(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:897:2: error: call to undeclared function 'devlink_fmsg_u64_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 897 | devlink_fmsg_u64_pair_put(fmsg, "timestamp", trace_data->timestamp); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:898:2: error: call to undeclared function 'devlink_fmsg_bool_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 898 | devlink_fmsg_bool_pair_put(fmsg, "lost", trace_data->lost); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:899:2: error: call to undeclared function 'devlink_fmsg_u8_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 899 | devlink_fmsg_u8_pair_put(fmsg, "event_id", trace_data->event_id); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:900:2: error: call to undeclared function 'devlink_fmsg_string_pair_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 900 | devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:901:2: error: call to undeclared function 'devlink_fmsg_obj_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 901 | devlink_fmsg_obj_nest_end(fmsg); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:905:17: warning: declaration of 'struct devlink_fmsg' will not be visible outside of this function [-Wvisibility] + 905 | struct devlink_fmsg *fmsg) + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:904:5: error: conflicting types for 'mlx5_fw_tracer_get_saved_traces_objects' + 904 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h:201:5: note: previous declaration is here + 201 | int mlx5_fw_tracer_get_saved_traces_objects(struct mlx5_fw_tracer *tracer, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:922:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 922 | devlink_fmsg_arr_pair_nest_start(fmsg, "dump fw traces"); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:925:32: error: incompatible pointer types passing 'struct devlink_fmsg *' to parameter of type 'struct devlink_fmsg *' [-Werror,-Wincompatible-pointer-types] + 925 | mlx5_devlink_fmsg_fill_trace(fmsg, &straces[index]); + | ^~~~ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:893:51: note: passing argument to parameter 'fmsg' here + 893 | mlx5_devlink_fmsg_fill_trace(struct devlink_fmsg *fmsg, + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:930:2: error: call to undeclared function 'devlink_fmsg_arr_pair_nest_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 930 | devlink_fmsg_arr_pair_nest_end(fmsg); + | ^ +3 warnings and 10 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/channels.c:5: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/channels.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/tir.c:5: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/tir.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.c:33: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/port.h:37: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/port.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c:6: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/params.h:7: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:37: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_fs.c:40: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:37: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_fs.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_common.c:33: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_common.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_dim.c:33: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_dim.o] Error 1 +../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:16: error: call to undeclared function 'irq_get_effective_affinity_mask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/en_main.c:2763:14: error: incompatible integer to pointer conversion assigning to 'const struct cpumask *' from 'int' [-Wint-conversion] + 2763 | c->aff_mask = irq_get_effective_affinity_mask(irq); + | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +2 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_main.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_selftest.c:36: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_selftest.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:37: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_tx.c:40: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:40: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +4 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_tx.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c:4: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c:35: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h:38: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en/xdp.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c:35: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_txrx.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:45: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +1 error generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_rx.o] Error 1 +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:34: +../drivers/net/ethernet/mellanox/mlx5/core/en.h:955:22: error: field has incomplete type 'struct devlink_port' + 955 | struct devlink_port dl_port; + | ^ +../include/linux/netdevice.h:2468:9: note: forward declaration of 'struct devlink_port' + 2468 | struct devlink_port *devlink_port; + | ^ +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:35: +In file included from ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h:14: +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: call to undeclared function 'devlink_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:21: error: call to undeclared function 'priv_to_devlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h:50:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct net *' [-Wint-conversion] + 50 | return devlink_net(priv_to_devlink(dev)); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +4 errors generated. +make[8]: *** [../scripts/Makefile.build:287: drivers/net/ethernet/mellanox/mlx5/core/en_stats.o] Error 1 +make[7]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox/mlx5/core] Error 2 +make[6]: *** [../scripts/Makefile.build:554: drivers/net/ethernet/mellanox] Error 2 +make[5]: *** [../scripts/Makefile.build:554: drivers/net/ethernet] Error 2 +make[4]: *** [../scripts/Makefile.build:554: drivers/net] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:554: drivers] Error 2 +make[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-1/Makefile:2003: .] Error 2 +make[1]: *** [/home/nipa/net-next/wt-1/Makefile:248: __sub-make] Error 2 +make: *** [Makefile:248: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.Fxsrgvsbha 2025-06-26 11:04:51.273272780 -0700 +++ /tmp/tmp.d2KZr9Jodj 2025-06-26 11:04:51.279272753 -0700 @@ -0,0 +1,8 @@ + 12 ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c + 2 ../drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h + 2 ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c + 2 ../drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.h + 15 ../drivers/net/ethernet/mellanox/mlx5/core/en.h + 2 ../drivers/net/ethernet/mellanox/mlx5/core/en_main.c + 20 ../drivers/net/ethernet/mellanox/mlx5/core/health.c + 21 ../drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h