In file included from ../drivers/fwctl/bnxt/bnxt.c:12: ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1689:42: error: field ‘phy_qcfg_resp’ has incomplete type 1689 | struct hwrm_port_phy_qcfg_output phy_qcfg_resp; | ^~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1958:25: error: ‘FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE’ undeclared here (not in a function) 1958 | #define BNXT_CTX_RIGP1 FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1962:26: note: in expansion of macro ‘BNXT_CTX_RIGP1’ 1962 | #define BNXT_CTX_V2_MAX (BNXT_CTX_RIGP1 + 1) | ^~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1970:49: note: in expansion of macro ‘BNXT_CTX_V2_MAX’ 1970 | struct bnxt_ctx_mem_type ctx_arr[BNXT_CTX_V2_MAX]; | ^~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2399:46: error: ‘HW_HASH_KEY_SIZE’ undeclared here (not in a function) 2399 | u8 rss_hash_key[HW_HASH_KEY_SIZE]; | ^~~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2540:41: error: field ‘ver_resp’ has incomplete type 2540 | struct hwrm_ver_get_output ver_resp; | ^~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: ../drivers/fwctl/bnxt/bnxt.c:74:20: error: invalid use of undefined type ‘struct input’ 74 | switch (req->req_type) { | ^~ ../drivers/fwctl/bnxt/bnxt.c:75:14: error: ‘HWRM_VER_GET’ undeclared (first use in this function) 75 | case HWRM_VER_GET: | ^~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:75:14: note: each undeclared identifier is reported only once for each function it appears in In file included from ../include/linux/module.h:22, from ../include/linux/device/driver.h:21, from ../include/linux/device.h:32, from ../include/linux/fwctl.h:7, from ../drivers/fwctl/bnxt/bnxt.c:5: ../drivers/fwctl/bnxt/bnxt.c: At top level: ../drivers/fwctl/bnxt/bnxt.c:163:18: error: expected ‘,’ or ‘;’ before ‘BNXT’ 163 | MODULE_IMPORT_NS(BNXT); | ^~~~ ../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info | ^~~~ ../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) | ^~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:163:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ 163 | MODULE_IMPORT_NS(BNXT); | ^~~~~~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:164:18: error: expected ‘,’ or ‘;’ before ‘FWCTL’ 164 | MODULE_IMPORT_NS(FWCTL); | ^~~~~ ../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info | ^~~~ ../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) | ^~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:164:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ 164 | MODULE_IMPORT_NS(FWCTL); | ^~~~~~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: ../drivers/fwctl/bnxt/bnxt.c:80:1: error: control reaches end of non-void function [-Werror=return-type] 80 | } | ^ cc1: some warnings being treated as errors make[6]: *** [../scripts/Makefile.build:207: drivers/fwctl/bnxt/bnxt.o] Error 1 make[5]: *** [../scripts/Makefile.build:465: drivers/fwctl/bnxt] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/fwctl] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../drivers/fwctl/bnxt/bnxt.c:12: ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1689:42: error: field ‘phy_qcfg_resp’ has incomplete type 1689 | struct hwrm_port_phy_qcfg_output phy_qcfg_resp; | ^~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1958:25: error: ‘FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE’ undeclared here (not in a function) 1958 | #define BNXT_CTX_RIGP1 FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1962:26: note: in expansion of macro ‘BNXT_CTX_RIGP1’ 1962 | #define BNXT_CTX_V2_MAX (BNXT_CTX_RIGP1 + 1) | ^~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1970:49: note: in expansion of macro ‘BNXT_CTX_V2_MAX’ 1970 | struct bnxt_ctx_mem_type ctx_arr[BNXT_CTX_V2_MAX]; | ^~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2399:46: error: ‘HW_HASH_KEY_SIZE’ undeclared here (not in a function) 2399 | u8 rss_hash_key[HW_HASH_KEY_SIZE]; | ^~~~~~~~~~~~~~~~ ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2540:41: error: field ‘ver_resp’ has incomplete type 2540 | struct hwrm_ver_get_output ver_resp; | ^~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: ../drivers/fwctl/bnxt/bnxt.c:74:20: error: invalid use of undefined type ‘struct input’ 74 | switch (req->req_type) { | ^~ ../drivers/fwctl/bnxt/bnxt.c:75:14: error: ‘HWRM_VER_GET’ undeclared (first use in this function) 75 | case HWRM_VER_GET: | ^~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:75:14: note: each undeclared identifier is reported only once for each function it appears in In file included from ../include/linux/module.h:22, from ../include/linux/device/driver.h:21, from ../include/linux/device.h:32, from ../include/linux/fwctl.h:7, from ../drivers/fwctl/bnxt/bnxt.c:5: ../drivers/fwctl/bnxt/bnxt.c: At top level: ../drivers/fwctl/bnxt/bnxt.c:163:18: error: expected ‘,’ or ‘;’ before ‘BNXT’ 163 | MODULE_IMPORT_NS(BNXT); | ^~~~ ../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info | ^~~~ ../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) | ^~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:163:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ 163 | MODULE_IMPORT_NS(BNXT); | ^~~~~~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:164:18: error: expected ‘,’ or ‘;’ before ‘FWCTL’ 164 | MODULE_IMPORT_NS(FWCTL); | ^~~~~ ../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info | ^~~~ ../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) | ^~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c:164:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ 164 | MODULE_IMPORT_NS(FWCTL); | ^~~~~~~~~~~~~~~~ ../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: ../drivers/fwctl/bnxt/bnxt.c:80:1: error: control reaches end of non-void function [-Werror=return-type] 80 | } | ^ cc1: some warnings being treated as errors make[6]: *** [../scripts/Makefile.build:207: drivers/fwctl/bnxt/bnxt.o] Error 1 make[5]: *** [../scripts/Makefile.build:465: drivers/fwctl/bnxt] Error 2 make[4]: *** [../scripts/Makefile.build:465: drivers/fwctl] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.utWLJThhgC 2025-02-06 19:25:00.589312350 -0800 +++ /tmp/tmp.ZWdnHhj5uP 2025-02-06 19:25:51.567781225 -0800 @@ -0,0 +1,71 @@ +In file included from ../drivers/fwctl/bnxt/bnxt.c:12: +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1689:42: error: field ‘phy_qcfg_resp’ has incomplete type + 1689 | struct hwrm_port_phy_qcfg_output phy_qcfg_resp; + | ^~~~~~~~~~~~~ +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1958:25: error: ‘FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE’ undeclared here (not in a function) + 1958 | #define BNXT_CTX_RIGP1 FUNC_BACKING_STORE_QCAPS_V2_REQ_TYPE_RIGP1_TRACE + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1962:26: note: in expansion of macro ‘BNXT_CTX_RIGP1’ + 1962 | #define BNXT_CTX_V2_MAX (BNXT_CTX_RIGP1 + 1) + | ^~~~~~~~~~~~~~ +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:1970:49: note: in expansion of macro ‘BNXT_CTX_V2_MAX’ + 1970 | struct bnxt_ctx_mem_type ctx_arr[BNXT_CTX_V2_MAX]; + | ^~~~~~~~~~~~~~~ +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2399:46: error: ‘HW_HASH_KEY_SIZE’ undeclared here (not in a function) + 2399 | u8 rss_hash_key[HW_HASH_KEY_SIZE]; + | ^~~~~~~~~~~~~~~~ +../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h:2540:41: error: field ‘ver_resp’ has incomplete type + 2540 | struct hwrm_ver_get_output ver_resp; + | ^~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: +../drivers/fwctl/bnxt/bnxt.c:74:20: error: invalid use of undefined type ‘struct input’ + 74 | switch (req->req_type) { + | ^~ +../drivers/fwctl/bnxt/bnxt.c:75:14: error: ‘HWRM_VER_GET’ undeclared (first use in this function) + 75 | case HWRM_VER_GET: + | ^~~~~~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c:75:14: note: each undeclared identifier is reported only once for each function it appears in +In file included from ../include/linux/module.h:22, + from ../include/linux/device/driver.h:21, + from ../include/linux/device.h:32, + from ../include/linux/fwctl.h:7, + from ../drivers/fwctl/bnxt/bnxt.c:5: +../drivers/fwctl/bnxt/bnxt.c: At top level: +../drivers/fwctl/bnxt/bnxt.c:163:18: error: expected ‘,’ or ‘;’ before ‘BNXT’ + 163 | MODULE_IMPORT_NS(BNXT); + | ^~~~ +../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ + 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info + | ^~~~ +../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ + 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) + | ^~~~~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c:163:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ + 163 | MODULE_IMPORT_NS(BNXT); + | ^~~~~~~~~~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c:164:18: error: expected ‘,’ or ‘;’ before ‘FWCTL’ + 164 | MODULE_IMPORT_NS(FWCTL); + | ^~~~~ +../include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’ + 26 | = __MODULE_INFO_PREFIX __stringify(tag) "=" info + | ^~~~ +../include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’ + 299 | #define MODULE_IMPORT_NS(ns) MODULE_INFO(import_ns, ns) + | ^~~~~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c:164:1: note: in expansion of macro ‘MODULE_IMPORT_NS’ + 164 | MODULE_IMPORT_NS(FWCTL); + | ^~~~~~~~~~~~~~~~ +../drivers/fwctl/bnxt/bnxt.c: In function ‘bnxtctl_validate_rpc’: +../drivers/fwctl/bnxt/bnxt.c:80:1: error: control reaches end of non-void function [-Werror=return-type] + 80 | } + | ^ +cc1: some warnings being treated as errors +make[6]: *** [../scripts/Makefile.build:207: drivers/fwctl/bnxt/bnxt.o] Error 1 +make[5]: *** [../scripts/Makefile.build:465: drivers/fwctl/bnxt] Error 2 +make[4]: *** [../scripts/Makefile.build:465: drivers/fwctl] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:465: drivers] Error 2 +make[3]: *** Waiting for unfinished jobs.... +make[2]: *** [/home/nipa/net-next/wt-0/Makefile:1994: .] Error 2 +make[1]: *** [/home/nipa/net-next/wt-0/Makefile:251: __sub-make] Error 2 +make: *** [Makefile:251: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.dnwf2fQwBj 2025-02-06 19:25:51.578781110 -0800 +++ /tmp/tmp.738wC9fyVl 2025-02-06 19:25:51.588781006 -0800 @@ -0,0 +1,2 @@ + 4 ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h + 5 ../drivers/fwctl/bnxt/bnxt.c