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[5]: *** Waiting for unfinished jobs.... 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 ../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1113:32: expected struct task_struct *p1 ../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/base/firmware_loader/main.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../drivers/nvme/target/core.c:1556:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1556:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1556:30: got restricted __le32 [usertype] ../drivers/nvme/target/core.c:1565:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1565:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1565:30: got restricted __le32 [usertype] ../drivers/target/target_core_configfs.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" ../arch/x86/boot/version.c:18:12: warning: symbol 'kernel_version' was not declared. Should it be static? ../drivers/base/firmware_loader/main.c:229:9: warning: context imbalance in 'free_fw_priv' - wrong count at exit ../drivers/base/firmware_loader/main.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred ../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) ../kernel/sys.c:1113:32: expected struct task_struct *p1 ../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent ../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block ../drivers/nvme/target/core.c:1556:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1556:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1556:30: got restricted __le32 [usertype] ../drivers/nvme/target/core.c:1565:30: warning: incorrect type in assignment (different base types) ../drivers/nvme/target/core.c:1565:30: expected unsigned int [usertype] result ../drivers/nvme/target/core.c:1565:30: got restricted __le32 [usertype] ../drivers/target/target_core_configfs.c: note: in included file (through ../include/linux/sched/signal.h, ../include/linux/rcuwait.h, ../include/linux/percpu-rwsem.h, ../include/linux/fs.h, ../include/linux/compat.h, ...): ../include/linux/cred.h:175:41: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:175:41: expected struct cred const *old ../include/linux/cred.h:175:41: got struct cred const [noderef] __rcu *cred ../include/linux/cred.h:183:51: warning: incorrect type in initializer (different address spaces) ../include/linux/cred.h:183:51: expected struct cred const *override_cred ../include/linux/cred.h:183:51: got struct cred const [noderef] __rcu *cred 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.... ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c: note: in included file (through ../drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu.h, ../drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.h): ../drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:414:49: error: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB" 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.Tj0mmY9DtU 2025-02-07 02:02:49.070387411 -0800 +++ /tmp/tmp.JZ46KwY41r 2025-02-07 02:03:17.056057883 -0800 @@ -1,4 +0,0 @@ -../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) -../kernel/sys.c:1113:32: expected struct task_struct *p1 -../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent -../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block @@ -12,0 +9,4 @@ +../kernel/sys.c:1113:32: warning: incorrect type in argument 1 (different address spaces) +../kernel/sys.c:1113:32: expected struct task_struct *p1 +../kernel/sys.c:1113:32: got struct task_struct [noderef] __rcu *real_parent +../kernel/sys.c:1860:33: warning: context imbalance in 'getrusage' - different lock contexts for basic block @@ -25,0 +26,66 @@ +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.... @@ -27,0 +94,5 @@ +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.HLf0mnX74S 2025-02-07 02:03:17.063057800 -0800 +++ /tmp/tmp.rtbEyO6R34 2025-02-07 02:03:17.066057765 -0800 @@ -0,0 +1 @@ + 4 ../arch/x86/include/../../../drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -1,0 +3 @@ + 5 ../drivers/fwctl/bnxt/bnxt.c