[dpdk-test-report] |FAILURE| pw22461 [PATCH 02/28] bnxt: add code to support PF VF configuration
sys_stv at intel.com
sys_stv at intel.com
Tue Mar 28 10:01:00 CEST 2017
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/22461
_Compilation issues_
Submitter: Ajit Khaparde <ajit.khaparde at broadcom.com>
Date: Mon, 27 Mar 2017 22:48:37 -0500
DPDK git baseline: Repo:dpdk, Branch:master, CommitID:636e7392046fffd14aa2383aaab922850ac96155
Patch22461-22461 --> compile error
Build Summary: 18 Builds Done, 0 Successful, 18 Failures
Test environment and configuration as below:
OS: RHEL7.2_64
Kernel Version:3.10.0-514.10.2.el7.x86_64
CPU info:Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz
GCC Version:gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Clang Version:3.4.2
i686-native-linuxapp-gcc
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-gcc-shared
OS: FreeBSD10.3_64
Kernel Version:10.3-RELEASE
CPU info: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz (2194.97-MHz K8-class CPU)
GCC Version:gcc (FreeBSD Ports Collection) 4.8.5
Clang Version:3.4.1
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc
OS: FC24_64
Kernel Version:4.9.13-100.fc24.x86_64
CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
GCC Version:gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)
Clang Version:3.8.0
x86_64-native-linuxapp-gcc-debug
i686-native-linuxapp-gcc
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-gcc-shared
x86_64-native-linuxapp-clang
OS: UB1604_64
Kernel Version:4.4.0-64-generic
CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
GCC Version:gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Clang Version:3.8.0
i686-native-linuxapp-gcc
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-gcc-shared
x86_64-native-linuxapp-clang
OS: CentOS7_64
Kernel Version:3.10.0-514.10.2.el7.x86_64
CPU info:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
GCC Version:gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
Clang Version:3.4.2
i686-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc-shared
x86_64-native-linuxapp-gcc
Failed Build #1:
OS: RHEL7.2_64
Target: i686-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
Failed Build #2:
OS: RHEL7.2_64
Target: x86_64-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
Failed Build #3:
OS: RHEL7.2_64
Target: x86_64-native-linuxapp-gcc-shared
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
Failed Build #4:
OS: FreeBSD10.3_64
Target: x86_64-native-bsdapp-clang
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: declaration of 'struct hwrm_func_cfg_input' will not be visible outside of this function [-Werror,-Wvisibility]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rx_rings = fcfg->num_rx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_tx_rings = fcfg->num_tx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_vnics = fcfg->num_vnics;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: variable has incomplete type 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: note: forward declaration of 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU'
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU'
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #5:
OS: FreeBSD10.3_64
Target: x86_64-native-bsdapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: 'struct hwrm_func_cfg_input' declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'copy_func_cfg_to_qcaps':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'bnxt_hwrm_pf_func_cfg':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable 'req' has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for 'req') [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of 'req' isn't known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU' undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: 'HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: 'HWRM_FUNC_CFG' undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro 'rte_cpu_to_le_16'
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro 'HWRM_PREP'
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro 'HWRM_CHECK_RESULT'
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro 'rte_le_to_cpu_16'
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro 'HWRM_CHECK_RESULT'
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable 'req' [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: 'struct hwrm_func_cfg_input' declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'populate_vf_func_cfg_req':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU' undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: 'struct hwrm_func_cfg_input' declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'add_random_mac_if_needed':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: 'struct hwrm_func_cfg_input' declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'reserve_resources_from_vf':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of 'copy_func_cfg_to_qcaps' from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected 'struct hwrm_func_cfg_input *' but argument is of type 'struct hwrm_func_cfg_input *'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of 'copy_func_cfg_to_qcaps' from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected 'struct hwrm_func_cfg_input *' but argument is of type 'struct hwrm_func_cfg_input *'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function 'bnxt_hwrm_allocate_vfs':
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable 'req' has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for 'req') [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of 'req' isn't known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: 'HWRM_FUNC_CFG' undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro 'rte_cpu_to_le_16'
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro 'HWRM_PREP'
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: 'HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR' undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-bsdapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable 'req' [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #6:
OS: FC24_64
Target: x86_64-native-linuxapp-gcc-debug
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1592:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1624:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1654:18: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #7:
OS: FC24_64
Target: i686-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1592:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1624:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1654:18: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #8:
OS: FC24_64
Target: x86_64-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1592:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1624:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1654:18: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #9:
OS: FC24_64
Target: x86_64-native-linuxapp-gcc-shared
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1592:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1624:17: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1654:18: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
struct hwrm_func_cfg_input *cfg_req,
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^~~~~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^~~~~~~~~~~~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^~~
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^~~~~~~~~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^~
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^~~
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #10:
OS: FC24_64
Target: x86_64-native-linuxapp-clang
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: declaration of 'struct hwrm_func_cfg_input' will not be visible outside of this function [-Werror,-Wvisibility]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rx_rings = fcfg->num_rx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_tx_rings = fcfg->num_tx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_vnics = fcfg->num_vnics;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: variable has incomplete type 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: note: forward declaration of 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU'
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU'
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #11:
OS: UB1604_64
Target: i686-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #12:
OS: UB1604_64
Target: x86_64-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #13:
OS: UB1604_64
Target: x86_64-native-linuxapp-gcc-shared
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_input’
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:26: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: error: excess elements in struct initializer [-Werror]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:36: note: (near initialization for ‘req’)
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type ‘struct hwrm_func_cfg_output’
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #14:
OS: UB1604_64
Target: x86_64-native-linuxapp-clang
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: declaration of 'struct hwrm_func_cfg_input' will not be visible outside of this function [-Werror,-Wvisibility]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rx_rings = fcfg->num_rx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_tx_rings = fcfg->num_tx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_vnics = fcfg->num_vnics;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: variable has incomplete type 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: note: forward declaration of 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU'
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU'
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/home/patchWorkOrg/compilation/mk/internal/rte.compile-pre.mk:138: recipe for target 'bnxt_hwrm.o' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'bnxt' failed
/home/patchWorkOrg/compilation/mk/rte.subdir.mk:63: recipe for target 'net' failed
/home/patchWorkOrg/compilation/mk/rte.sdkbuild.mk:73: recipe for target 'drivers' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:124: recipe for target 'all' failed
/home/patchWorkOrg/compilation/mk/rte.sdkinstall.mk:85: recipe for target 'pre_install' failed
/home/patchWorkOrg/compilation/mk/rte.sdkroot.mk:103: recipe for target 'install' failed
Failed Build #15:
OS: CentOS7_64
Target: i686-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/i686-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
Failed Build #16:
OS: CentOS7_64
Target: x86_64-native-linuxapp-clang
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: error: declaration of 'struct hwrm_func_cfg_input' will not be visible outside of this function [-Werror,-Wvisibility]
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_rx_rings = fcfg->num_rx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_tx_rings = fcfg->num_tx_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_vnics = fcfg->num_vnics;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: incomplete definition of type 'struct hwrm_func_cfg_input'
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
~~~~^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:43: note: forward declaration of 'struct hwrm_func_cfg_input'
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: variable has incomplete type 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: note: forward declaration of 'struct hwrm_func_cfg_input'
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MTU'
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_MRU'
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: use of undeclared identifier 'HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS'
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-clang/include/rte_byteorder.h:102:30: note: expanded from macro 'rte_cpu_to_le_32'
#define rte_cpu_to_le_32(x) (x)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Failed Build #17:
OS: CentOS7_64
Target: x86_64-native-linuxapp-gcc-shared
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
Failed Build #18:
OS: CentOS7_64
Target: x86_64-native-linuxapp-gcc
PMDINFO bnxt_ethdev.o.pmd.c LD bnxt_ethdev.o/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
struct hwrm_func_qcaps_output *qcaps)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1525:15: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘copy_func_cfg_to_qcaps’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1527:30: error: dereferencing pointer to incomplete type
qcaps->max_rsscos_ctx = fcfg->num_rsscos_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1528:33: error: dereferencing pointer to incomplete type
memcpy(qcaps->mac_address, fcfg->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1530:27: error: dereferencing pointer to incomplete type
qcaps->max_l2_ctxs = fcfg->num_l2_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1531:28: error: dereferencing pointer to incomplete type
qcaps->max_rx_rings = fcfg->num_rx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1532:28: error: dereferencing pointer to incomplete type
qcaps->max_tx_rings = fcfg->num_tx_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1533:30: error: dereferencing pointer to incomplete type
qcaps->max_cmpl_rings = fcfg->num_cmpl_rings;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1534:28: error: dereferencing pointer to incomplete type
qcaps->max_stat_ctx = fcfg->num_stat_ctxs;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1537:25: error: dereferencing pointer to incomplete type
qcaps->max_vnics = fcfg->num_vnics;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1545:33: error: dereferencing pointer to incomplete type
qcaps->max_mcast_filters = fcfg->num_mcast_filters;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1547:32: error: dereferencing pointer to incomplete type
qcaps->max_hw_ring_grps = fcfg->num_hw_ring_grps;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_pf_func_cfg’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1556:33: note: each undeclared identifier is reported only once for each function it appears in
req.enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1557:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1558:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1559:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1560:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1561:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1562:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1563:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1564:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1565:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1568:4: error: ‘HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_FLAGS_STD_TX_RING_MODE_ENABLE);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1583:2: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:141:11: error: dereferencing pointer to incomplete type
if (resp->error_code) { \
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:142:30: error: dereferencing pointer to incomplete type
rc = rte_le_to_cpu_16(resp->error_code); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:109:30: note: in definition of macro ‘rte_le_to_cpu_16’
#define rte_le_to_cpu_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1586:2: note: in expansion of macro ‘HWRM_CHECK_RESULT’
HWRM_CHECK_RESULT;
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1552:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1593:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int num_vfs)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘populate_vf_func_cfg_req’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:5: error: dereferencing pointer to incomplete type
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1595:34: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MTU’ undeclared (first use in this function)
req->enables = rte_cpu_to_le_32(HWRM_FUNC_CFG_INPUT_ENABLES_MTU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1596:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_MRU’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_MRU |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1597:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RSSCOS_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1598:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_STAT_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1599:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_CMPL_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1600:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_TX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1601:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_RX_RINGS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1602:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_L2_CTXS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1603:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_VNICS |
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1604:4: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_NUM_HW_RING_GRPS);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1606:5: error: dereferencing pointer to incomplete type
req->mtu = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1608:5: error: dereferencing pointer to incomplete type
req->mru = rte_cpu_to_le_16(bp->eth_dev->data->mtu +
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1610:5: error: dereferencing pointer to incomplete type
req->num_rsscos_ctxs =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1612:5: error: dereferencing pointer to incomplete type
req->num_stat_ctxs = rte_cpu_to_le_16(bp->max_stat_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1613:5: error: dereferencing pointer to incomplete type
req->num_cmpl_rings =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1615:5: error: dereferencing pointer to incomplete type
req->num_tx_rings = rte_cpu_to_le_16(bp->max_tx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1616:5: error: dereferencing pointer to incomplete type
req->num_rx_rings = rte_cpu_to_le_16(bp->max_rx_rings / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1617:5: error: dereferencing pointer to incomplete type
req->num_l2_ctxs = rte_cpu_to_le_16(bp->max_l2_ctx / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1618:5: error: dereferencing pointer to incomplete type
req->num_vnics = rte_cpu_to_le_16(bp->max_vnics / (num_vfs + 1));
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1619:5: error: dereferencing pointer to incomplete type
req->num_hw_ring_grps =
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1625:10: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘add_random_mac_if_needed’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1643:11: error: dereferencing pointer to incomplete type
cfg_req->enables |= rte_cpu_to_le_32(
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1644:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1645:27: error: dereferencing pointer to incomplete type
eth_random_addr(cfg_req->dflt_mac_addr);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1647:18: error: dereferencing pointer to incomplete type
memcpy(cfg_req->dflt_mac_addr,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: At top level:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1655:11: error: ‘struct hwrm_func_cfg_input’ declared inside parameter list [-Werror]
int vf)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘reserve_resources_from_vf’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1668:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1672:3: error: passing argument 1 of ‘copy_func_cfg_to_qcaps’ from incompatible pointer type [-Werror]
copy_func_cfg_to_qcaps(cfg_req, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1524:13: note: expected ‘struct hwrm_func_cfg_input *’ but argument is of type ‘struct hwrm_func_cfg_input *’
static void copy_func_cfg_to_qcaps(struct hwrm_func_cfg_input *fcfg,
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_allocate_vfs’:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: variable ‘req’ has initializer but incomplete type
struct hwrm_func_cfg_input req = {0};
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: excess elements in struct initializer [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:9: error: (near initialization for ‘req’) [-Werror]
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: storage size of ‘req’ isn’t known
struct hwrm_func_cfg_input req = {0};
^
In file included from /home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:34:0:
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:128:34: error: ‘HWRM_FUNC_CFG’ undeclared (first use in this function)
req.req_type = rte_cpu_to_le_16(HWRM_##type); \
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:101:30: note: in definition of macro ‘rte_cpu_to_le_16’
#define rte_cpu_to_le_16(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1764:3: note: in expansion of macro ‘HWRM_PREP’
HWRM_PREP(req, FUNC_CFG, -1, resp);
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1770:5: error: ‘HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR’ undeclared (first use in this function)
HWRM_FUNC_CFG_INPUT_ENABLES_DFLT_MAC_ADDR);
^
/home/patchWorkOrg/compilation/x86_64-native-linuxapp-gcc/include/rte_byteorder.h:102:30: note: in definition of macro ‘rte_cpu_to_le_32’
#define rte_cpu_to_le_32(x) (x)
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1772:17: error: dereferencing pointer to incomplete type
if (rc || resp->error_code) {
^
/home/patchWorkOrg/compilation/drivers/net/bnxt/bnxt_hwrm.c:1729:29: error: unused variable ‘req’ [-Werror=unused-variable]
struct hwrm_func_cfg_input req = {0};
^
cc1: all warnings being treated as errors
DPDK STV team
More information about the test-report
mailing list