From: sys_stv@intel.com
To: test-report@dpdk.org, skori@marvell.com
Subject: [dpdk-test-report] |FAILURE| pw(117114) sid(24904) job(PER_PATCH_BUILD4437)[v2, 3/3] net/cnxk: support congestion management ops
Date: 29 Sep 2022 03:42:13 -0700 [thread overview]
Message-ID: <ad1984$kion2t@fmsmga004-auth.fm.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 541764 bytes --]
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/117114
_Compilation issues_
Submitter: Sunil Kumar Kori <skori@marvell.com>
Date: 2022-09-29 09:54:54
Reply_mail: <20220929095455.2173071-3-skori@marvell.com>
DPDK git baseline: Repo:dpdk-next-net, CommitID: dfd8817031158d026f5f2147ab6b563f340569d1
Meson Build Summary: 24 Builds Done, 0 Successful, 24 Failures, 0 Blocked
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte |
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
| FC36-64 | fail | fail | | | | | |
| FreeBSD13-64 | fail | fail | | fail | fail | | |
| RHEL86-64 | fail | fail | | fail | fail | | |
| SUSE15-64 | fail | fail | | | | | |
| RHEL90-64 | fail | | | | | | |
| UB2004-64 | fail | fail | | | | fail | |
| UB2204-32 | fail | | | | | | |
| UB2204-64 | fail | fail | | | | fail | fail |
| CentOS79-64 | fail | | | | | | |
| RHEL86-64Rt | fail | fail | | | | | |
+--------------+------------+--------------+------------+------------+-----------+----------+------------+
Comments:
Because of DPDK bug (https://bugs.dpdk.org/show_bug.cgi?id=928),
All the dpdk-next-* branch add `Ddisable_drivers=event/cnxk` option when build with ICC complier.
Test environment and configuration as below:
OS: FC36-64
Kernel Version: 5.17.7-300.fc36.x86_64
GCC Version: gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1)
Clang Version: 14.0.0 (Fedora 14.0.0-1.fc36)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
OS: FreeBSD13-64
Kernel Version: 13.1-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 10.3.0
Clang Version: 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: RHEL86-64
Kernel Version: 4.18.0-372.9.1.el8.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13)
Clang Version: 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc+shared
x86_64-native-linuxapp-gcc+debug
OS: SUSE15-64
Kernel Version: 5.14.21-150400.22-default
GCC Version: gcc (SUSE Linux) 7.5.0
Clang Version: 11.0.1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
OS: RHEL90-64
Kernel Version: 5.14.0-70.13.1.el9_0.x86_64
GCC Version: gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Clang Version: 13.0.1 (Red Hat 13.0.1-1.el9)
x86_64-native-linuxapp-gcc
OS: UB2004-64
Kernel Version: 5.8.0-48-generic
GCC Version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
Clang Version: 10.0.0-4ubuntu1
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-doc
OS: UB2204-32
Kernel Version: 5.15.0-25-generic
GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang Version: NA
i686-native-linuxapp-gcc
OS: UB2204-64
Kernel Version: 5.15.0-25-generic
GCC Version: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang Version: 14.0.0-1ubuntu1
x86_64-native-linuxapp-gcc+16byte
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-doc
OS: CentOS79-64
Kernel Version: 3.10.0-1160.el7.x86_64
GCC Version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Clang Version: 3.4.2 (tags/RELEASE_34/dot2-final)
x86_64-native-linuxapp-gcc
OS: RHEL86-64Rt
Kernel Version: 4.18.0-372.9.1.rt7.166.el8.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13)
Clang Version: 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
*Build Failed #1:
OS: FC36-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1267/3596] Generating symbol file drivers/librte_common_cnxk.so.23.0.p/librte_common_cnxk.so.23.0.symbols
[1268/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1269/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1270/3596] Generating drivers/rte_net_bnxt.pmd.c with a custom command
[1271/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1272/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1273/3596] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1274/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’; have ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ with type ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:32: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:60: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:23: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:24: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:63: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:17: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:17: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:17: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:28: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:36: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1275/3596] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #2:
OS: FC36-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1265/3596] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1266/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1267/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1268/3596] Generating rte_common_sfc_efx.sym_chk with a custom command (wrapped by meson to capture output)
[1269/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1270/3596] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1271/3596] Generating rte_net_bnxt.pmd.c with a custom command
[1272/3596] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
[1273/3596] Generating rte_common_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped
*Build Failed #3:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
gcc -Iapp/dpdk-testpmd.p -Iapp -I../app -Iapp/test-pmd -I../app/test-pmd -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/reorder -I../lib/reorder -Ilib/bitratestats -I../lib/bitratestats -Ilib/bpf -I../lib/bpf -Ilib/gro -I../lib/gro -Ilib/gso -I../lib/gso -Ilib/latencystats -I../lib/latencystats -Ilib/pdump -I../lib/pdump -Ilib/pcapng -I../lib/pcapng -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/hash -I../lib/hash -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Ilib/security -I../lib/security -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/common/iavf -I../drivers/common/iavf -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -c ../app/test-pmd/cmdline_cman.c
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_obj_str':
../app/test-pmd/cmdline_cman.c:42:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE' undeclared (first use in this function)
42 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:42:10: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_cman.c:44:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL' undeclared (first use in this function)
44 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_mode_str':
../app/test-pmd/cmdline_cman.c:61:11: error: 'RTE_CMAN_RED' undeclared (first use in this function); did you mean 'RTE_COLOR_RED'?
61 | *mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_COLOR_RED
../app/test-pmd/cmdline_cman.c: At top level:
../app/test-pmd/cmdline_cman.c:70:16: error: 'struct rte_eth_cman_config' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
70 | struct rte_eth_cman_config *cfg)
| ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_params_str':
../app/test-pmd/cmdline_cman.c:73:27: error: storage size of 'info' isn't known
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:79:9: error: implicit declaration of function 'rte_eth_cman_config_init' [-Werror=implicit-function-declaration]
79 | ret = rte_eth_cman_config_init(port_id, cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:79:9: error: nested extern declaration of 'rte_eth_cman_config_init' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:158:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
158 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:159:8: error: implicit declaration of function 'rte_eth_cman_info_get'; did you mean 'rte_eth_dev_info_get'? [-Werror=implicit-function-declaration]
159 | ret = rte_eth_cman_info_get(port_id, &info);
| ^~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_info_get
../app/test-pmd/cmdline_cman.c:159:8: error: nested extern declaration of 'rte_eth_cman_info_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:175:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
175 | cfg->obj = obj;
| ^~
../app/test-pmd/cmdline_cman.c:176:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
176 | cfg->mode = mode;
| ^~
../app/test-pmd/cmdline_cman.c:177:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
177 | cfg->mode_param.red.min_th = min_th;
| ^~
../app/test-pmd/cmdline_cman.c:178:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
178 | cfg->mode_param.red.max_th = max_th;
| ^~
../app/test-pmd/cmdline_cman.c:179:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
179 | cfg->mode_param.red.maxp_inv = maxp_inv;
| ^~
../app/test-pmd/cmdline_cman.c:73:27: error: unused variable 'info' [-Werror=unused-variable]
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_capa_parsed':
../app/test-pmd/cmdline_cman.c:222:27: error: storage size of 'info' isn't known
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:225:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
225 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:222:27: error: unused variable 'info' [-Werror=unused-variable]
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:284:29: error: storage size of 'cfg' isn't known
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:287:25: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
287 | memset(&cfg, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:288:8: error: implicit declaration of function 'rte_eth_cman_config_get'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
288 | ret = rte_eth_cman_config_get(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:288:8: error: nested extern declaration of 'rte_eth_cman_config_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:284:29: error: unused variable 'cfg' [-Werror=unused-variable]
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_set_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:361:29: error: storage size of 'cfg' isn't known
361 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:371:2: error: implicit declaration of function 'rte_eth_cman_config_set'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
371 | rte_eth_cman_config_set(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:371:2: error: nested extern declaration of 'rte_eth_cman_config_set' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:361:29: error: unused variable 'cfg' [-Werror=unused-variable]
361 | struct rte_eth_cman_config cfg;
| ^~~
cc1: all warnings being treated as errors
[1729/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_mtr.c.o
[1730/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_tm.c.o
[1731/2052] Linking target app/dpdk-test-pipeline
[1732/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[1733/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[1734/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[1735/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[1736/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[1737/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped
*Build Failed #4:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
clang -Iapp/dpdk-testpmd.p -Iapp -I../app -Iapp/test-pmd -I../app/test-pmd -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/reorder -I../lib/reorder -Ilib/bitratestats -I../lib/bitratestats -Ilib/bpf -I../lib/bpf -Ilib/gro -I../lib/gro -Ilib/gso -I../lib/gso -Ilib/latencystats -I../lib/latencystats -Ilib/pdump -I../lib/pdump -Ilib/pcapng -I../lib/pcapng -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/hash -I../lib/hash -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Ilib/security -I../lib/security -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/common/iavf -I../drivers/common/iavf -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -c ../app/test-pmd/cmdline_cman.c
../app/test-pmd/cmdline_cman.c:42:10: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
*obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../app/test-pmd/cmdline_cman.c:44:10: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
*obj = RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../app/test-pmd/cmdline_cman.c:61:11: error: use of undeclared identifier 'RTE_CMAN_RED'; did you mean 'RTE_COLOR_RED'?
*mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_COLOR_RED
../lib/meter/rte_meter.h:39:2: note: 'RTE_COLOR_RED' declared here
RTE_COLOR_RED, /**< Red */
^
../app/test-pmd/cmdline_cman.c:70:16: error: declaration of 'struct rte_eth_cman_config' will not be visible outside of this function [-Werror,-Wvisibility]
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:73:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:73:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:79:9: error: implicit declaration of function 'rte_eth_cman_config_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = rte_eth_cman_config_init(port_id, cfg);
^
../app/test-pmd/cmdline_cman.c:158:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:73:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:159:8: error: implicit declaration of function 'rte_eth_cman_info_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = rte_eth_cman_info_get(port_id, &info);
^
../app/test-pmd/cmdline_cman.c:159:8: note: did you mean 'rte_eth_dev_info_get'?
../lib/ethdev/rte_ethdev.h:3114:5: note: 'rte_eth_dev_info_get' declared here
int rte_eth_dev_info_get(uint16_t port_id, struct rte_eth_dev_info *dev_info);
^
../app/test-pmd/cmdline_cman.c:175:5: error: incomplete definition of type 'struct rte_eth_cman_config'
cfg->obj = obj;
~~~^
../app/test-pmd/cmdline_cman.c:70:16: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:176:5: error: incomplete definition of type 'struct rte_eth_cman_config'
cfg->mode = mode;
~~~^
../app/test-pmd/cmdline_cman.c:70:16: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:177:5: error: incomplete definition of type 'struct rte_eth_cman_config'
cfg->mode_param.red.min_th = min_th;
~~~^
../app/test-pmd/cmdline_cman.c:70:16: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:178:5: error: incomplete definition of type 'struct rte_eth_cman_config'
cfg->mode_param.red.max_th = max_th;
~~~^
../app/test-pmd/cmdline_cman.c:70:16: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:179:5: error: incomplete definition of type 'struct rte_eth_cman_config'
cfg->mode_param.red.maxp_inv = maxp_inv;
~~~^
../app/test-pmd/cmdline_cman.c:70:16: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config *cfg)
^
../app/test-pmd/cmdline_cman.c:222:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:222:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:225:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:222:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../app/test-pmd/cmdline_cman.c:226:8: error: implicit declaration of function 'rte_eth_cman_info_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = rte_eth_cman_info_get(port_id, &info);
^
../app/test-pmd/cmdline_cman.c:284:29: error: variable has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cfg;
^
../app/test-pmd/cmdline_cman.c:284:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cfg;
^
../app/test-pmd/cmdline_cman.c:287:18: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(&cfg, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:284:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cfg;
^
../app/test-pmd/cmdline_cman.c:288:8: error: implicit declaration of function 'rte_eth_cman_config_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ret = rte_eth_cman_config_get(port_id, &cfg);
^
../app/test-pmd/cmdline_cman.c:288:8: note: did you mean 'rte_eth_dev_conf_get'?
../lib/ethdev/rte_ethdev.h:3132:5: note: 'rte_eth_dev_conf_get' declared here
int rte_eth_dev_conf_get(uint16_t port_id, struct rte_eth_conf *dev_conf);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1724/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_rxonly.c.o
[1725/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_shared_rxq_fwd.c.o
[1726/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[1727/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_parameters.c.o
[1728/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o
[1729/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[1730/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[1731/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[1732/2035] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
ninja: build stopped
*Build Failed #5:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc+shared
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
gcc -Iapp/dpdk-testpmd.p -Iapp -I../app -Iapp/test-pmd -I../app/test-pmd -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/reorder -I../lib/reorder -Ilib/bitratestats -I../lib/bitratestats -Ilib/bpf -I../lib/bpf -Ilib/gro -I../lib/gro -Ilib/gso -I../lib/gso -Ilib/latencystats -I../lib/latencystats -Ilib/pdump -I../lib/pdump -Ilib/pcapng -I../lib/pcapng -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/hash -I../lib/hash -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Ilib/security -I../lib/security -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/common/iavf -I../drivers/common/iavf -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -c ../app/test-pmd/cmdline_cman.c
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_obj_str':
../app/test-pmd/cmdline_cman.c:42:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE' undeclared (first use in this function)
42 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:42:10: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_cman.c:44:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL' undeclared (first use in this function)
44 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_mode_str':
../app/test-pmd/cmdline_cman.c:61:11: error: 'RTE_CMAN_RED' undeclared (first use in this function); did you mean 'RTE_COLOR_RED'?
61 | *mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_COLOR_RED
../app/test-pmd/cmdline_cman.c: At top level:
../app/test-pmd/cmdline_cman.c:70:16: error: 'struct rte_eth_cman_config' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
70 | struct rte_eth_cman_config *cfg)
| ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_params_str':
../app/test-pmd/cmdline_cman.c:73:27: error: storage size of 'info' isn't known
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:79:9: error: implicit declaration of function 'rte_eth_cman_config_init' [-Werror=implicit-function-declaration]
79 | ret = rte_eth_cman_config_init(port_id, cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:79:9: error: nested extern declaration of 'rte_eth_cman_config_init' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:158:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
158 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:159:8: error: implicit declaration of function 'rte_eth_cman_info_get'; did you mean 'rte_eth_dev_info_get'? [-Werror=implicit-function-declaration]
159 | ret = rte_eth_cman_info_get(port_id, &info);
| ^~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_info_get
../app/test-pmd/cmdline_cman.c:159:8: error: nested extern declaration of 'rte_eth_cman_info_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:175:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
175 | cfg->obj = obj;
| ^~
../app/test-pmd/cmdline_cman.c:176:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
176 | cfg->mode = mode;
| ^~
../app/test-pmd/cmdline_cman.c:177:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
177 | cfg->mode_param.red.min_th = min_th;
| ^~
../app/test-pmd/cmdline_cman.c:178:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
178 | cfg->mode_param.red.max_th = max_th;
| ^~
../app/test-pmd/cmdline_cman.c:179:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
179 | cfg->mode_param.red.maxp_inv = maxp_inv;
| ^~
../app/test-pmd/cmdline_cman.c:73:27: error: unused variable 'info' [-Werror=unused-variable]
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_capa_parsed':
../app/test-pmd/cmdline_cman.c:222:27: error: storage size of 'info' isn't known
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:225:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
225 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:222:27: error: unused variable 'info' [-Werror=unused-variable]
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:284:29: error: storage size of 'cfg' isn't known
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:287:25: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
287 | memset(&cfg, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:288:8: error: implicit declaration of function 'rte_eth_cman_config_get'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
288 | ret = rte_eth_cman_config_get(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:288:8: error: nested extern declaration of 'rte_eth_cman_config_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:284:29: error: unused variable 'cfg' [-Werror=unused-variable]
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_set_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:361:29: error: storage size of 'cfg' isn't known
361 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:371:2: error: implicit declaration of function 'rte_eth_cman_config_set'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
371 | rte_eth_cman_config_set(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:371:2: error: nested extern declaration of 'rte_eth_cman_config_set' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:361:29: error: unused variable 'cfg' [-Werror=unused-variable]
361 | struct rte_eth_cman_config cfg;
| ^~~
cc1: all warnings being treated as errors
[1763/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_tm.c.o
[1764/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[1765/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[1766/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[1767/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_iofwd.c.o
[1768/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[1769/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[1770/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[1771/1956] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped
*Build Failed #6:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-gcc+debug
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
gcc -Iapp/dpdk-testpmd.p -Iapp -I../app -Iapp/test-pmd -I../app/test-pmd -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/reorder -I../lib/reorder -Ilib/bitratestats -I../lib/bitratestats -Ilib/bpf -I../lib/bpf -Ilib/gro -I../lib/gro -Ilib/gso -I../lib/gso -Ilib/latencystats -I../lib/latencystats -Ilib/pdump -I../lib/pdump -Ilib/pcapng -I../lib/pcapng -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/bsd -Ilib/pci -I../lib/pci -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/hash -I../lib/hash -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Ilib/security -I../lib/security -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/common/iavf -I../drivers/common/iavf -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -D__BSD_VISIBLE -march=native -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -c ../app/test-pmd/cmdline_cman.c
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_obj_str':
../app/test-pmd/cmdline_cman.c:42:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE' undeclared (first use in this function)
42 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:42:10: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_cman.c:44:10: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL' undeclared (first use in this function)
44 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_mode_str':
../app/test-pmd/cmdline_cman.c:61:11: error: 'RTE_CMAN_RED' undeclared (first use in this function); did you mean 'RTE_COLOR_RED'?
61 | *mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_COLOR_RED
../app/test-pmd/cmdline_cman.c: At top level:
../app/test-pmd/cmdline_cman.c:70:16: error: 'struct rte_eth_cman_config' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
70 | struct rte_eth_cman_config *cfg)
| ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function 'parse_cman_params_str':
../app/test-pmd/cmdline_cman.c:73:27: error: storage size of 'info' isn't known
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:79:9: error: implicit declaration of function 'rte_eth_cman_config_init' [-Werror=implicit-function-declaration]
79 | ret = rte_eth_cman_config_init(port_id, cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:79:9: error: nested extern declaration of 'rte_eth_cman_config_init' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:158:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
158 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:159:8: error: implicit declaration of function 'rte_eth_cman_info_get'; did you mean 'rte_eth_dev_info_get'? [-Werror=implicit-function-declaration]
159 | ret = rte_eth_cman_info_get(port_id, &info);
| ^~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_info_get
../app/test-pmd/cmdline_cman.c:159:8: error: nested extern declaration of 'rte_eth_cman_info_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:175:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
175 | cfg->obj = obj;
| ^~
../app/test-pmd/cmdline_cman.c:176:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
176 | cfg->mode = mode;
| ^~
../app/test-pmd/cmdline_cman.c:177:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
177 | cfg->mode_param.red.min_th = min_th;
| ^~
../app/test-pmd/cmdline_cman.c:178:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
178 | cfg->mode_param.red.max_th = max_th;
| ^~
../app/test-pmd/cmdline_cman.c:179:5: error: invalid use of undefined type 'struct rte_eth_cman_config'
179 | cfg->mode_param.red.maxp_inv = maxp_inv;
| ^~
../app/test-pmd/cmdline_cman.c:73:27: error: unused variable 'info' [-Werror=unused-variable]
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_capa_parsed':
../app/test-pmd/cmdline_cman.c:222:27: error: storage size of 'info' isn't known
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:225:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
225 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:222:27: error: unused variable 'info' [-Werror=unused-variable]
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_show_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:284:29: error: storage size of 'cfg' isn't known
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:287:25: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
287 | memset(&cfg, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:288:8: error: implicit declaration of function 'rte_eth_cman_config_get'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
288 | ret = rte_eth_cman_config_get(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:288:8: error: nested extern declaration of 'rte_eth_cman_config_get' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:284:29: error: unused variable 'cfg' [-Werror=unused-variable]
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c: In function 'cmd_set_port_cman_cfg_parsed':
../app/test-pmd/cmdline_cman.c:361:29: error: storage size of 'cfg' isn't known
361 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:371:2: error: implicit declaration of function 'rte_eth_cman_config_set'; did you mean 'rte_eth_dev_conf_get'? [-Werror=implicit-function-declaration]
371 | rte_eth_cman_config_set(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:371:2: error: nested extern declaration of 'rte_eth_cman_config_set' [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:361:29: error: unused variable 'cfg' [-Werror=unused-variable]
361 | struct rte_eth_cman_config cfg;
| ^~~
cc1: all warnings being treated as errors
[1723/2052] Linking target app/dpdk-test-fib
[1724/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_mtr.c.o
[1725/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_5tswap.c.o
[1726/2052] Linking target app/dpdk-test-gpudev
[1727/2052] Linking target app/dpdk-test-eventdev
[1728/2052] Linking target app/dpdk-test-flow-perf
[1729/2052] Linking target app/dpdk-test-pipeline
[1730/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[1731/2052] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
ninja: build stopped
*Build Failed #7:
OS: RHEL86-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3542] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1270/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~
rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’; did you mean ‘dev_configure’?
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’; did you mean ‘dev_configure’?
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1271/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1272/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1273/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_info’
info->modes_supported = RTE_CMAN_RED;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
info->modes_supported = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memset(config, 0, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_config’
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
config->mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type ‘const struct rte_eth_cman_config’
if (!(config->obj & info.objs_supported)) {
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^~~~~~
cc1: all warnings being treated as errors
[1274/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1275/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1276/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1277/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #8:
OS: RHEL86-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1269/3542] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1270/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1271/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1272/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1273/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1274/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1275/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1276/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1277/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #9:
OS: RHEL86-64
Target: x86_64-native-linuxapp-gcc+shared
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1287/3399] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1288/3399] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~
rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’; did you mean ‘dev_configure’?
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’; did you mean ‘dev_configure’?
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1289/3399] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1290/3399] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1291/3399] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1292/3399] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_info’
info->modes_supported = RTE_CMAN_RED;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
info->modes_supported = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memset(config, 0, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_config’
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
config->mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type ‘const struct rte_eth_cman_config’
if (!(config->obj & info.objs_supported)) {
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^~~~~~
cc1: all warnings being treated as errors
[1293/3399] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1294/3399] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1295/3399] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #10:
OS: RHEL86-64
Target: x86_64-native-linuxapp-gcc+debug
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1267/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1268/3542] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_sse.c.o
[1269/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~
rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’; did you mean ‘dev_configure’?
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’; did you mean ‘dev_configure’?
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1270/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1271/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_info’
info->modes_supported = RTE_CMAN_RED;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
info->modes_supported = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memset(config, 0, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_config’
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
config->mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type ‘const struct rte_eth_cman_config’
if (!(config->obj & info.objs_supported)) {
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^~~~~~
cc1: all warnings being treated as errors
[1272/3542] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1273/3542] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1274/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1275/3542] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #11:
OS: SUSE15-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1272/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1273/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1274/3620] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1275/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1276/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1277/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1278/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1279/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1280/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #12:
OS: SUSE15-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1265/3618] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1266/3618] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~
rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’; did you mean ‘dev_configure’?
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’; did you mean ‘dev_configure’?
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1267/3618] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1268/3618] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3618] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_info’
info->modes_supported = RTE_CMAN_RED;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
info->modes_supported = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_CMAN_OBJ_RX_QUEUE
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memset(config, 0, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_config’
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
config->mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type ‘const struct rte_eth_cman_config’
if (!(config->obj & info.objs_supported)) {
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^~~~~~
cc1: all warnings being treated as errors
[1270/3618] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1271/3618] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
[1272/3618] Generating drivers/rte_common_sfc_efx.sym_chk with a custom command (wrapped by meson to capture output)
[1273/3618] Generating drivers/rte_common_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped
*Build Failed #13:
OS: RHEL90-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1262/3513] Linking static target drivers/libtmp_rte_net_bnxt.a
[1263/3513] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_args.c.o
[1264/3513] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1265/3513] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1266/3513] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1267/3513] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1268/3513] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’; have ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ with type ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:32: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:60: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:23: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:24: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:63: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:17: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:17: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:17: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:28: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:36: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1269/3513] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1270/3513] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #14:
OS: UB2004-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1266/3620] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1267/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_flow.c.o
[1268/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1269/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1270/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1271/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1272/3620] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1273/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1274/3620] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #15:
OS: UB2004-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1267/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1268/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_alb.c.o
[1270/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_args.c.o
[1271/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1272/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:14: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:49: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:3: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:10: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:3: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:10: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:3: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:23: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:23: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:17: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:17: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1273/3631] Generating rte_net_bnxt.pmd.c with a custom command
[1274/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1275/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #16:
OS: UB2204-32
Target: i686-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
gcc -Iapp/dpdk-testpmd.p -Iapp -I../app -Iapp/test-pmd -I../app/test-pmd -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline -Idrivers/crypto/scheduler -I../drivers/crypto/scheduler -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/reorder -I../lib/reorder -Ilib/bitratestats -I../lib/bitratestats -Ilib/bpf -I../lib/bpf -Ilib/gro -I../lib/gro -Ilib/gso -I../lib/gso -Ilib/latencystats -I../lib/latencystats -Ilib/pdump -I../lib/pdump -Ilib/pcapng -I../lib/pcapng -Idrivers/net/bnxt -I../drivers/net/bnxt -Idrivers/net/bnxt/tf_ulp -I../drivers/net/bnxt/tf_ulp -Idrivers/net/bnxt/tf_ulp/generic_templates -I../drivers/net/bnxt/tf_ulp/generic_templates -Idrivers/net/bnxt/tf_core -I../drivers/net/bnxt/tf_core -Idrivers/net/bnxt/hcapi/cfa -I../drivers/net/bnxt/hcapi/cfa -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/hash -I../lib/hash -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Ilib/security -I../lib/security -Idrivers/bus/dpaa -I../drivers/bus/dpaa -I../drivers/bus/dpaa/include -I../drivers/bus/dpaa/base/qbman -Idrivers/common/dpaax -I../drivers/common/dpaax -I../drivers/common/dpaax/caamflib -Ilib/eventdev -I../lib/eventdev -Ilib/timer -I../lib/timer -Idrivers/mempool/dpaa -I../drivers/mempool/dpaa -Idrivers/net/dpaa -I../drivers/net/dpaa -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/common/iavf -I../drivers/common/iavf -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -Wno-pointer-to-int-cast -D_GNU_SOURCE -m32 -march=native -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o -c ../app/test-pmd/cmdline_cman.c
../app/test-pmd/cmdline_cman.c: In function ‘parse_cman_obj_str’:
../app/test-pmd/cmdline_cman.c:42:24: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
42 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:42:24: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_cman.c:44:24: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
44 | *obj = RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function ‘parse_cman_mode_str’:
../app/test-pmd/cmdline_cman.c:61:25: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_COLOR_RED’?
61 | *mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_COLOR_RED
../app/test-pmd/cmdline_cman.c: At top level:
../app/test-pmd/cmdline_cman.c:70:30: error: ‘struct rte_eth_cman_config’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
70 | struct rte_eth_cman_config *cfg)
| ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c: In function ‘parse_cman_params_str’:
../app/test-pmd/cmdline_cman.c:73:34: error: storage size of ‘info’ isn’t known
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:79:23: error: implicit declaration of function ‘rte_eth_cman_config_init’ [-Werror=implicit-function-declaration]
79 | ret = rte_eth_cman_config_init(port_id, cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_cman.c:79:23: error: nested extern declaration of ‘rte_eth_cman_config_init’ [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:158:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
158 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:159:15: error: implicit declaration of function ‘rte_eth_cman_info_get’; did you mean ‘rte_eth_dev_info_get’? [-Werror=implicit-function-declaration]
159 | ret = rte_eth_cman_info_get(port_id, &info);
| ^~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_info_get
../app/test-pmd/cmdline_cman.c:159:15: error: nested extern declaration of ‘rte_eth_cman_info_get’ [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:175:12: error: invalid use of undefined type ‘struct rte_eth_cman_config’
175 | cfg->obj = obj;
| ^~
../app/test-pmd/cmdline_cman.c:176:12: error: invalid use of undefined type ‘struct rte_eth_cman_config’
176 | cfg->mode = mode;
| ^~
../app/test-pmd/cmdline_cman.c:177:12: error: invalid use of undefined type ‘struct rte_eth_cman_config’
177 | cfg->mode_param.red.min_th = min_th;
| ^~
../app/test-pmd/cmdline_cman.c:178:12: error: invalid use of undefined type ‘struct rte_eth_cman_config’
178 | cfg->mode_param.red.max_th = max_th;
| ^~
../app/test-pmd/cmdline_cman.c:179:12: error: invalid use of undefined type ‘struct rte_eth_cman_config’
179 | cfg->mode_param.red.maxp_inv = maxp_inv;
| ^~
../app/test-pmd/cmdline_cman.c:73:34: error: unused variable ‘info’ [-Werror=unused-variable]
73 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function ‘cmd_show_port_cman_capa_parsed’:
../app/test-pmd/cmdline_cman.c:222:34: error: storage size of ‘info’ isn’t known
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c:225:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
225 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:222:34: error: unused variable ‘info’ [-Werror=unused-variable]
222 | struct rte_eth_cman_info info;
| ^~~~
../app/test-pmd/cmdline_cman.c: In function ‘cmd_show_port_cman_cfg_parsed’:
../app/test-pmd/cmdline_cman.c:284:36: error: storage size of ‘cfg’ isn’t known
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:287:32: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
287 | memset(&cfg, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../app/test-pmd/cmdline_cman.c:288:15: error: implicit declaration of function ‘rte_eth_cman_config_get’; did you mean ‘rte_eth_dev_conf_get’? [-Werror=implicit-function-declaration]
288 | ret = rte_eth_cman_config_get(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:288:15: error: nested extern declaration of ‘rte_eth_cman_config_get’ [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:284:36: error: unused variable ‘cfg’ [-Werror=unused-variable]
284 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c: In function ‘cmd_set_port_cman_cfg_parsed’:
../app/test-pmd/cmdline_cman.c:361:36: error: storage size of ‘cfg’ isn’t known
361 | struct rte_eth_cman_config cfg;
| ^~~
../app/test-pmd/cmdline_cman.c:371:9: error: implicit declaration of function ‘rte_eth_cman_config_set’; did you mean ‘rte_eth_dev_conf_get’? [-Werror=implicit-function-declaration]
371 | rte_eth_cman_config_set(port_id, &cfg);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rte_eth_dev_conf_get
../app/test-pmd/cmdline_cman.c:371:9: error: nested extern declaration of ‘rte_eth_cman_config_set’ [-Werror=nested-externs]
../app/test-pmd/cmdline_cman.c:361:36: error: unused variable ‘cfg’ [-Werror=unused-variable]
361 | struct rte_eth_cman_config cfg;
| ^~~
cc1: all warnings being treated as errors
[2064/2440] Compiling C object app/dpdk-testpmd.p/test-pmd_5tswap.c.o
[2065/2440] Linking target app/dpdk-test-gpudev
[2066/2440] Compiling C object app/dpdk-test-pipeline.p/test-pipeline_main.c.o
[2067/2440] Linking target app/dpdk-test-eventdev
[2068/2440] Linking target app/dpdk-test-fib
[2069/2440] Compiling C object app/dpdk-test-pipeline.p/test-pipeline_pipeline_lpm_ipv6.c.o
[2070/2440] Compiling C object app/dpdk-test-pipeline.p/test-pipeline_pipeline_hash.c.o
[2071/2440] Linking target app/dpdk-test-flow-perf
[2072/2440] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
ninja: build stopped
*Build Failed #17:
OS: UB2004-64
Target: x86_64-native-linuxapp-doc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1265/3396] Linking static target drivers/libtmp_rte_net_bnxt.a
[1266/3396] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1267/3396] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1268/3396] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3396] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1270/3396] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:14: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:49: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:3: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:10: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:3: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:12: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:10: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:32: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:3: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:23: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:23: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:17: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:17: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1271/3396] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1272/3396] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1273/3396] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #18:
OS: UB2204-64
Target: x86_64-native-linuxapp-gcc+16byte
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1267/3631] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1268/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1269/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1270/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1271/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1272/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1273/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -DRTE_LIBRTE_I40E_16BYTE_RX_DESC -DRTE_LIBRTE_ICE_16BYTE_RX_DESC -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’; have ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ with type ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:32: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:60: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:23: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:24: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:63: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:17: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:17: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:17: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:28: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:36: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1274/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1275/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #19:
OS: UB2204-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1266/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1267/3631] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1268/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1270/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1271/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1272/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’; have ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ with type ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:32: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:60: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:23: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:24: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:63: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:17: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:17: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:17: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:28: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:36: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1273/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1274/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #20:
OS: UB2204-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1268/3631] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1269/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1270/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1271/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1272/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1273/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1274/3631] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1275/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1276/3631] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #21:
OS: UB2204-64
Target: x86_64-native-linuxapp-doc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1266/3461] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1267/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~
| rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
1681 | .cman_info_get = cnxk_nix_cman_info_get,
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:26: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
1682 | .cman_config_init = cnxk_nix_cman_config_init,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:29: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: error: excess elements in struct initializer [-Werror]
1683 | .cman_config_set = cnxk_nix_cman_config_set,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:10: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: error: excess elements in struct initializer [-Werror]
1684 | .cman_config_get = cnxk_nix_cman_config_get,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:28: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1268/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1269/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1270/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1271/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’; have ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
11 | cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ with type ‘int(struct rte_eth_dev *, struct rte_eth_cman_info *)’
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
15 | info->modes_supported = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
15 | info->modes_supported = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:33: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:13: error: invalid use of undefined type ‘struct rte_eth_cman_info’
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:32: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:60: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
16 | info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
26 | memset(config, 0, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:23: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function)
28 | config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
29 | config->mode = RTE_CMAN_RED;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:24: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
29 | config->mode = RTE_CMAN_RED;
| ^~~~~~~~~~~~
| RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
30 | config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:15: error: invalid use of undefined type ‘struct rte_eth_cman_config’
31 | config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: storage size of ‘info’ isn’t known
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
41 | memset(&info, 0, sizeof(struct rte_eth_cman_info));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
44 | if (!(config->obj & info.objs_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:21: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
49 | if (!(config->mode & info.modes_supported)) {
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
54 | if (config->obj_param.rx_queue >= dev->nb_rxq) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:63: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:17: note: in expansion of macro ‘plt_err’
55 | plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
59 | if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
61 | config->mode_param.red.min_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:17: note: in expansion of macro ‘plt_err’
60 | plt_err("Invalid RED minimum threshold. min_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:19: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
65 | if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
| ^~
In file included from ../lib/eal/include/rte_dev.h:25,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:31: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
67 | config->mode_param.red.max_th);
| ^~
../lib/eal/include/rte_log.h:342:46: note: in definition of macro ‘RTE_LOG’
342 | RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
| ^~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:17: note: in expansion of macro ‘plt_err’
66 | plt_err("Invalid RED maximum threshold. max_th = %u",
| ^~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:34: error: unused variable ‘info’ [-Werror=unused-variable]
39 | struct rte_eth_cman_info info;
| ^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
91 | cq = &dev->cqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:30: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
92 | rq = &dev->rqs[config->obj_param.rx_queue];
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:28: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:36: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function)
93 | is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
94 | min_th = config->mode_param.red.min_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:24: error: invalid use of undefined type ‘const struct rte_eth_cman_config’
95 | max_th = config->mode_param.red.max_th;
| ^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
129 | memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
| ^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:47: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
138 | memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
| ^~~~~~
cc1: all warnings being treated as errors
[1272/3461] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:36: error: field ‘cman_cfg’ has incomplete type
421 | struct rte_eth_cman_config cman_cfg;
| ^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
656 | int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1273/3461] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1274/3461] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #22:
OS: CentOS79-64
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field 'cman_cfg' has incomplete type
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: 'struct rte_eth_cman_info' declared inside parameter list [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1681:2: error: unknown field 'cman_info_get' specified in initializer
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:2: error: initialization from incompatible pointer type [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1681:2: error: (near initialization for 'cnxk_eth_dev_ops.rx_queue_avail_thresh_set') [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1682:2: error: unknown field 'cman_config_init' specified in initializer
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:2: error: initialization from incompatible pointer type [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1682:2: error: (near initialization for 'cnxk_eth_dev_ops.rx_queue_avail_thresh_query') [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1683:2: error: unknown field 'cman_config_set' specified in initializer
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:2: error: excess elements in struct initializer [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1683:2: error: (near initialization for 'cnxk_eth_dev_ops') [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1684:2: error: unknown field 'cman_config_get' specified in initializer
.cman_config_get = cnxk_nix_cman_config_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:2: error: excess elements in struct initializer [-Werror]
../drivers/net/cnxk/cnxk_ethdev.c:1684:2: error: (near initialization for 'cnxk_eth_dev_ops') [-Werror]
cc1: all warnings being treated as errors
[1265/3578] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field 'cman_cfg' has incomplete type
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: 'struct rte_eth_cman_info' declared inside parameter list [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
cc1: all warnings being treated as errors
[1266/3578] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field 'cman_cfg' has incomplete type
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: 'struct rte_eth_cman_info' declared inside parameter list [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
cc1: all warnings being treated as errors
[1267/3578] Compiling C object drivers/libtmp_rte_net_bnxt.a.p/net_bnxt_bnxt_rxtx_vec_avx2.c.o
[1268/3578] Generating drivers/rte_net_bnx2x.sym_chk with a custom command (wrapped by meson to capture output)
[1269/3578] Compiling C object drivers/net/igc/base/libigc_base.a.p/igc_base.c.o
[1270/3578] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field 'cman_cfg' has incomplete type
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: 'struct rte_eth_cman_info' declared inside parameter list [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: 'struct rte_eth_cman_info' declared inside parameter list [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:0:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of 'cnxk_nix_cman_info_get' was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function 'cnxk_nix_cman_info_get':
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: 'RTE_CMAN_RED' undeclared (first use in this function)
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: dereferencing pointer to incomplete type
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE' undeclared (first use in this function)
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL' undeclared (first use in this function)
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function 'cnxk_nix_cman_config_init':
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE' undeclared (first use in this function)
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: dereferencing pointer to incomplete type
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: 'RTE_CMAN_RED' undeclared (first use in this function)
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: dereferencing pointer to incomplete type
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: dereferencing pointer to incomplete type
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function 'nix_cman_config_validate':
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of 'info' isn't known
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type
if (!(config->obj & info.objs_supported)) {
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:49:14: error: dereferencing pointer to incomplete type
if (!(config->mode & info.modes_supported)) {
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:54:12: error: dereferencing pointer to incomplete type
if (config->obj_param.rx_queue >= dev->nb_rxq) {
^
In file included from ../lib/eal/include/rte_dev.h:25:0,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:49: error: dereferencing pointer to incomplete type
plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
^
../lib/eal/include/rte_log.h:342:32: note: in definition of macro 'RTE_LOG'
RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:55:3: note: in expansion of macro 'plt_err'
plt_err("Invalid queue ID. Queue = %u", config->obj_param.rx_queue);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:59:12: error: dereferencing pointer to incomplete type
if (config->mode_param.red.min_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
^
In file included from ../lib/eal/include/rte_dev.h:25:0,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:61:10: error: dereferencing pointer to incomplete type
config->mode_param.red.min_th);
^
../lib/eal/include/rte_log.h:342:32: note: in definition of macro 'RTE_LOG'
RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:60:3: note: in expansion of macro 'plt_err'
plt_err("Invalid RED minimum threshold. min_th = %u",
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:65:12: error: dereferencing pointer to incomplete type
if (config->mode_param.red.max_th > CNXK_NIX_CMAN_RED_MAX_THRESH) {
^
In file included from ../lib/eal/include/rte_dev.h:25:0,
from ../lib/eal/include/dev_driver.h:13,
from ../lib/ethdev/ethdev_driver.h:22,
from ../drivers/net/cnxk/cnxk_ethdev.h:10,
from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev_cman.c:67:10: error: dereferencing pointer to incomplete type
config->mode_param.red.max_th);
^
../lib/eal/include/rte_log.h:342:32: note: in definition of macro 'RTE_LOG'
RTE_LOGTYPE_ ## t, # t ": " __VA_ARGS__)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:66:3: note: in expansion of macro 'plt_err'
plt_err("Invalid RED maximum threshold. max_th = %u",
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable 'info' [-Werror=unused-variable]
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function 'cnxk_nix_cman_config_set':
../drivers/net/cnxk/cnxk_ethdev_cman.c:91:23: error: dereferencing pointer to incomplete type
cq = &dev->cqs[config->obj_param.rx_queue];
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:92:23: error: dereferencing pointer to incomplete type
rq = &dev->rqs[config->obj_param.rx_queue];
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:21: error: dereferencing pointer to incomplete type
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL' undeclared (first use in this function)
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:94:17: error: dereferencing pointer to incomplete type
min_th = config->mode_param.red.min_th;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:95:17: error: dereferencing pointer to incomplete type
max_th = config->mode_param.red.max_th;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function 'cnxk_nix_cman_config_get':
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of 'sizeof' to incomplete type 'struct rte_eth_cman_config'
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^
cc1: all warnings being treated as errors
[1271/3578] Compiling C object drivers/net/qede/base/libqede_base.a.p/ecore_cxt.c.o
[1272/3578] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1273/3578] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #23:
OS: RHEL86-64Rt
Target: x86_64-native-linuxapp-gcc
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1271/3580] Linking static target drivers/libtmp_rte_net_bnxt.a
[1272/3580] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_api.c.o
[1273/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_info_get’; did you mean ‘rxq_info_get’?
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~
rxq_info_get
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t, uint8_t)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int, unsigned char)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_info *)’ [-Werror=incompatible-pointer-types]
.cman_info_get = cnxk_nix_cman_info_get,
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1681:19: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_set’)
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_init’
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: error: initialization of ‘int (*)(struct rte_eth_dev *, uint16_t *, uint8_t *)’ {aka ‘int (*)(struct rte_eth_dev *, short unsigned int *, unsigned char *)’} from incompatible pointer type ‘int (*)(struct rte_eth_dev *, struct rte_eth_cman_config *)’ [-Werror=incompatible-pointer-types]
.cman_config_init = cnxk_nix_cman_config_init,
^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1682:22: note: (near initialization for ‘cnxk_eth_dev_ops.rx_queue_avail_thresh_query’)
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_set’; did you mean ‘dev_configure’?
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: error: excess elements in struct initializer [-Werror]
.cman_config_set = cnxk_nix_cman_config_set,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1683:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: ‘struct eth_dev_ops’ has no member named ‘cman_config_get’; did you mean ‘dev_configure’?
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~
dev_configure
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: error: excess elements in struct initializer [-Werror]
.cman_config_get = cnxk_nix_cman_config_get,
^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.c:1684:21: note: (near initialization for ‘cnxk_eth_dev_ops’)
cc1: all warnings being treated as errors
[1274/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1275/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1276/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1277/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
gcc -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field ‘cman_cfg’ has incomplete type
struct rte_eth_cman_config cman_cfg;
^~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: ‘struct rte_eth_cman_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for ‘cnxk_nix_cman_info_get’
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^~~~~~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration of ‘cnxk_nix_cman_info_get’ was here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_info_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_info’
info->modes_supported = RTE_CMAN_RED;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
info->modes_supported = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_init’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memset(config, 0, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: dereferencing pointer to incomplete type ‘struct rte_eth_cman_config’
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE’ undeclared (first use in this function); did you mean ‘RTE_ETH_VMDQ_DCB_NUM_QUEUES’?
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_VMDQ_DCB_NUM_QUEUES
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: ‘RTE_CMAN_RED’ undeclared (first use in this function); did you mean ‘RTE_TM_CMAN_WRED’?
config->mode = RTE_CMAN_RED;
^~~~~~~~~~~~
RTE_TM_CMAN_WRED
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘nix_cman_config_validate’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: storage size of ‘info’ isn’t known
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:26: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_info’
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: dereferencing pointer to incomplete type ‘const struct rte_eth_cman_config’
if (!(config->obj & info.objs_supported)) {
^~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: unused variable ‘info’ [-Werror=unused-variable]
struct rte_eth_cman_info info;
^~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_set’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:93:29: error: ‘RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL’ undeclared (first use in this function); did you mean ‘RTE_ETH_MAX_OWNER_NAME_LEN’?
is_mempool = config->obj & RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL ? true : false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RTE_ETH_MAX_OWNER_NAME_LEN
../drivers/net/cnxk/cnxk_ethdev_cman.c:129:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(&dev->cman_cfg, config, sizeof(struct rte_eth_cman_config));
^~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c: In function ‘cnxk_nix_cman_config_get’:
../drivers/net/cnxk/cnxk_ethdev_cman.c:138:40: error: invalid application of ‘sizeof’ to incomplete type ‘struct rte_eth_cman_config’
memcpy(config, &dev->cman_cfg, sizeof(struct rte_eth_cman_config));
^~~~~~
cc1: all warnings being treated as errors
[1278/3580] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1279/3580] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
*Build Failed #24:
OS: RHEL86-64Rt
Target: x86_64-native-linuxapp-clang
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_devargs.c.o -c ../drivers/net/cnxk/cnxk_ethdev_devargs.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_devargs.c:8:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1273/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_mtr.c.o -c ../drivers/net/cnxk/cnxk_ethdev_mtr.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_mtr.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1274/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev.c.o -c ../drivers/net/cnxk/cnxk_ethdev.c
In file included from ../drivers/net/cnxk/cnxk_ethdev.c:4:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev.c:1681:3: error: field designator 'cman_info_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_info_get = cnxk_nix_cman_info_get,
^
../drivers/net/cnxk/cnxk_ethdev.c:1682:3: error: field designator 'cman_config_init' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_init = cnxk_nix_cman_config_init,
^
../drivers/net/cnxk/cnxk_ethdev.c:1683:3: error: field designator 'cman_config_set' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_set = cnxk_nix_cman_config_set,
^
../drivers/net/cnxk/cnxk_ethdev.c:1684:3: error: field designator 'cman_config_get' does not refer to any field in type 'struct eth_dev_ops'
.cman_config_get = cnxk_nix_cman_config_get,
^
6 errors generated.
[1275/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_ops.c.o -c ../drivers/net/cnxk/cnxk_ethdev_ops.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_ops.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1276/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_sec.c.o -c ../drivers/net/cnxk/cnxk_ethdev_sec.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_sec.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1277/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_ethdev_cman.c.o -c ../drivers/net/cnxk/cnxk_ethdev_cman.c
In file included from ../drivers/net/cnxk/cnxk_ethdev_cman.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:1: error: conflicting types for 'cnxk_nix_cman_info_get'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev.h:656:5: note: previous declaration is here
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->modes_supported = RTE_CMAN_RED;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:15:26: error: use of undeclared identifier 'RTE_CMAN_RED'
info->modes_supported = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:6: error: incomplete definition of type 'struct rte_eth_cman_info'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
~~~~^
../drivers/net/cnxk/cnxk_ethdev_cman.c:11:56: note: forward declaration of 'struct rte_eth_cman_info'
cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info)
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:25: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:16:53: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL'
info->objs_supported = RTE_ETH_CMAN_OBJ_RX_QUEUE | RTE_ETH_CMAN_OBJ_RX_QUEUE_MEMPOOL;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:26:20: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_config'
memset(config, 0, sizeof(struct rte_eth_cman_config));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:28:16: error: use of undeclared identifier 'RTE_ETH_CMAN_OBJ_RX_QUEUE'
config->obj = RTE_ETH_CMAN_OBJ_RX_QUEUE;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode = RTE_CMAN_RED;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:29:17: error: use of undeclared identifier 'RTE_CMAN_RED'
config->mode = RTE_CMAN_RED;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:30:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.min_th = CNXK_NIX_CMAN_RED_MIN_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:31:8: error: incomplete definition of type 'struct rte_eth_cman_config'
config->mode_param.red.max_th = CNXK_NIX_CMAN_RED_MAX_THRESH;
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:27: error: variable has incomplete type 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:41:19: error: invalid application of 'sizeof' to an incomplete type 'struct rte_eth_cman_info'
memset(&info, 0, sizeof(struct rte_eth_cman_info));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/cnxk/cnxk_ethdev_cman.c:39:9: note: forward declaration of 'struct rte_eth_cman_info'
struct rte_eth_cman_info info;
^
../drivers/net/cnxk/cnxk_ethdev_cman.c:44:14: error: incomplete definition of type 'struct rte_eth_cman_config'
if (!(config->obj & info.objs_supported)) {
~~~~~~^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1278/3580] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_8023ad.c.o
[1279/3580] Compiling C object drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
FAILED: drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o
clang -Idrivers/libtmp_rte_net_cnxk.a.p -Idrivers -I../drivers -Idrivers/net/cnxk -I../drivers/net/cnxk -Ilib/ethdev -I../lib/ethdev -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/cryptodev -I../lib/cryptodev -Ilib/rcu -I../lib/rcu -Ilib/eventdev -I../lib/eventdev -Ilib/hash -I../lib/hash -Ilib/timer -I../lib/timer -Ilib/security -I../lib/security -Idrivers/common/cnxk -I../drivers/common/cnxk -Idrivers/mempool/cnxk -I../drivers/mempool/cnxk -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -flax-vector-conversions -Wno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.cnxk -MD -MQ drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -MF drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o.d -o drivers/libtmp_rte_net_cnxk.a.p/net_cnxk_cnxk_link.c.o -c ../drivers/net/cnxk/cnxk_link.c
In file included from ../drivers/net/cnxk/cnxk_link.c:5:
../drivers/net/cnxk/cnxk_ethdev.h:421:29: error: field has incomplete type 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:421:9: note: forward declaration of 'struct rte_eth_cman_config'
struct rte_eth_cman_config cman_cfg;
^
../drivers/net/cnxk/cnxk_ethdev.h:656:60: error: declaration of 'struct rte_eth_cman_info' will not be visible outside of this function [-Werror,-Wvisibility]
int cnxk_nix_cman_info_get(struct rte_eth_dev *dev, struct rte_eth_cman_info *info);
^
2 errors generated.
[1280/3580] Generating rte_net_bnxt.pmd.c with a custom command
[1281/3580] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
ninja: build stopped
DPDK STV team
reply other threads:[~2022-10-03 12:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ad1984$kion2t@fmsmga004-auth.fm.intel.com' \
--to=sys_stv@intel.com \
--cc=skori@marvell.com \
--cc=test-report@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).