automatic DPDK test reports
 help / color / mirror / Atom feed
* compilation|FAILURE| pw(139093) sid(31675) job(PER_PATCH_BUILD11599)dpdk-testpmd: call get/set link settings interface
@ 2024-04-04  8:06 sys_stv
  0 siblings, 0 replies; only message in thread
From: sys_stv @ 2024-04-04  8:06 UTC (permalink / raw)
  To: test-report, mpazdan

[-- Attachment #1: Type: text/plain, Size: 664466 bytes --]


Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/139093

_Compilation issues_

Submitter: Marek Pazdan <mpazdan@arista.com>
Date: 2024-04-03 22:53:32
Reply_mail: <20240403225333.16260-1-mpazdan@arista.com>

DPDK git baseline: Repo:dpdk-next-net, CommitID: e2e546ab5bf5e024986ccb5310ab43982f3bb40c


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 |
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
| OpenAnolis8.8-64  | fail       |              |            |            |           |          |            |
| FreeBSD14-64      | fail       | fail         |            | fail       | fail      |          |            |
| RHEL92-64         | fail       | fail         |            | fail       | fail      |          |            |
| SUSE15-64         | fail       | fail         |            |            |           |          |            |
| CBL-Mariner2.0-64 | fail       |              |            |            |           |          |            |
| UB2204-32         | fail       |              |            |            |           |          |            |
| RHEL89-64         | fail       |              |            |            |           |          |            |
| UB2204-64         | fail       | fail         |            |            |           | fail     | fail       |
| CentOS79-64       | fail       |              |            |            |           |          |            |
| RHEL92-64Rt       | fail       |              |            |            |           |          |            |
| UB2310-64         | fail       |              |            |            |           |          |            |
| FC39-64           | fail       | fail         |            |            |           |          |            |
| UB2204-64Rt       | 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: OpenAnolis8.8-64
	Kernel Version: 5.10.134-13.an8.x86_64
	GCC Version: gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.3)
	Clang Version: 13.0.1 (Anolis 13.0.1-2.0.2.module+an8.7.0+10996+1588f068)
	x86_64-native-linuxapp-gcc

OS: FreeBSD14-64
	Kernel Version: 14.0-RELEASE
	GCC Version: gcc (FreeBSD Ports Collection) 12.2.0
	Clang Version: 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
	x86_64-native-bsdapp-gcc
	x86_64-native-bsdapp-clang
	x86_64-native-bsdapp-gcc+shared
	x86_64-native-bsdapp-gcc+debug

OS: RHEL92-64
	Kernel Version: 5.14.0-284.11.1.el9_2.x86_64
	GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
	Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9)
	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-150500.53-default
	GCC Version: gcc (SUSE Linux) 7.5.0
	Clang Version: 15.0.7
	x86_64-native-linuxapp-clang
	x86_64-native-linuxapp-gcc

OS: CBL-Mariner2.0-64
	Kernel Version: 5.15.55.1_2e9a4f9+
	GCC Version: gcc (GCC) 11.2.0
	Clang Version: NA
	x86_64-native-linuxapp-gcc

OS: UB2204-32
	Kernel Version: 5.15.0-58-generic
	GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
	Clang Version: NA
	i686-native-linuxapp-gcc

OS: RHEL89-64
	Kernel Version: 4.18.0-513.5.1.el8_9.x86_64
	GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)
	Clang Version: 16.0.6 (Red Hat 16.0.6-2.module+el8.9.0+19521+190d7aba)
	x86_64-native-linuxapp-gcc

OS: UB2204-64
	Kernel Version: 5.15.0-58-generic
	GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
	Clang Version: 14.0.0-1ubuntu1.1
	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.81.1.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: RHEL92-64Rt
	Kernel Version: 5.14.0-284.11.1.rt14.296.el9_2.x86_64
	GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
	Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9)
	x86_64-native-linuxapp-gcc

OS: UB2310-64
	Kernel Version: 6.5.0-9-generic
	GCC Version: gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
	Clang Version: NA
	x86_64-native-linuxapp-gcc

OS: FC39-64
	Kernel Version: 6.5.6-300.fc39.x86_64
	GCC Version: gcc (GCC) 13.2.1 20230918 (Red Hat 13.2.1-3)
	Clang Version: 17.0.6 (Fedora 17.0.6-1.fc39)
	x86_64-native-linuxapp-gcc
	x86_64-native-linuxapp-clang

OS: UB2204-64Rt
	Kernel Version: 5.17.5-051705-generic
	GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
	Clang Version: 14.0.0-1ubuntu1.1
	x86_64-native-linuxapp-gcc



*Build Failed #1:
OS: OpenAnolis8.8-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:8: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:8: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:8: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_10baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:8: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:8: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_100baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:8: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:8: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:8: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:8: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:8: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:8: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:8: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:8: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:8: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:8: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:8: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:8: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:8: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:8: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:8: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:8: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:8: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:8: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:8: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:8: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:8: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:8: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:8: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:8: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:8: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:8: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:8: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:8: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:8: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:8: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:8: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:8: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:8: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:8: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:8: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:8: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:8: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:8: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:8: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:8: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:8: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:8: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:8: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:8: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:8: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:8: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:8: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:8: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:8: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:8: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:8: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:8: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:8: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:21: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
   if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c:200:22: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:21: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:21: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_NONE’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_INTR_MODE_NONE
../app/test-pmd/cmdline_settings.c:221:21: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_BASER’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_ETH_FEC_BASER
../app/test-pmd/cmdline_settings.c:225:21: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 dump_supported(const struct rte_link_settings *link_settings)
                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:27: error: dereferencing pointer to incomplete type ‘const struct rte_link_settings’
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:240:7: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_TP_BIT))
       ^~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:243:7: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_AUI_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:246:7: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_BNC_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:249:7: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_MII_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:252:7: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
       RTE_LINK_MODE_FIBRE_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~
       RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c:255:7: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_Backplane_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:8: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:8: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:7: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_TP:
       ^~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:7: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_AUI:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:7: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_BNC:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:7: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_MII:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:7: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_FIBRE:
       ^~~~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:343:7: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_DA:
       ^~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:7: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_NONE:
       ^~~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:349:7: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_STOPPED’?
  case RTE_PORT_OTHER:
       ^~~~~~~~~~~~~~
       RTE_PORT_STOPPED
../app/test-pmd/cmdline_settings.c:360:44: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function); did you mean ‘RTE_VECT_SIMD_DISABLED’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                                            ^~~~~~~~~~~~~~~~~~~
                                            RTE_VECT_SIMD_DISABLED
../app/test-pmd/cmdline_settings.c:365:46: error: ‘RTE_TP_MDI’ undeclared (first use in this function); did you mean ‘RTE_PTR_ADD’?
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                                              ^~~~~~~~~~
                                              RTE_PTR_ADD
../app/test-pmd/cmdline_settings.c:368:10: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function); did you mean ‘RTE_PTR_DIFF’?
       == RTE_TP_MDI_X) {
          ^~~~~~~~~~~~
          RTE_PTR_DIFF
../app/test-pmd/cmdline_settings.c:383:11: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
        == RTE_TP_MDI_AUTO)
           ^~~~~~~~~~~~~~~
           RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:30: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’; did you mean ‘RTE_ETH_LINK_UP’? [-Werror=implicit-function-declaration]
  const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
                              ^~~~~~~~~~~~~~~~
                              RTE_ETH_LINK_UP
../app/test-pmd/cmdline_settings.c:407:30: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:5: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
     __RTE_LINK_MODE_MASK_NBITS,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
     RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:491:41: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function); did you mean ‘RTE_NET_ENA’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                                         ^~~~~~~~~~~~~~~~~~
                                         RTE_NET_ENA
../app/test-pmd/cmdline_settings.c:493:8: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:8: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2531/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_macfwd.c.o
[2532/2914] Linking target app/dpdk-test-pipeline
[2533/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[2534/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2535/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_macswap.c.o
[2536/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_parameters.c.o
[2537/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2538/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2539/2914] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #2:
OS: FreeBSD14-64
Target: x86_64-native-bsdapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function 'dump_link_caps':
../app/test-pmd/cmdline_settings.c:50:22: error: 'RTE_LINK_MODE_10baseT_Half_BIT' undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: 'RTE_LINK_MODE_10baseT_Full_BIT' undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: 'RTE_LINK_MODE_100baseT_Half_BIT' undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: 'RTE_LINK_MODE_100baseT_Full_BIT' undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: 'RTE_LINK_MODE_100baseT1_Full_BIT' undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: 'RTE_LINK_MODE_1000baseT_Half_BIT' undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: 'RTE_LINK_MODE_1000baseT_Full_BIT' undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: 'RTE_LINK_MODE_1000baseT1_Full_BIT' undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: 'RTE_LINK_MODE_1000baseKX_Full_BIT' undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: 'RTE_LINK_MODE_2500baseX_Full_BIT' undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: 'RTE_LINK_MODE_10000baseT_Full_BIT' undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: 'RTE_LINK_MODE_10000baseKX4_Full_BIT' undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: 'RTE_LINK_MODE_10000baseKR_Full_BIT' undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: 'RTE_LINK_MODE_10000baseR_FEC_BIT' undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: 'RTE_LINK_MODE_20000baseMLD2_Full_BIT' undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: 'RTE_LINK_MODE_20000baseKR2_Full_BIT' undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: 'RTE_LINK_MODE_40000baseKR4_Full_BIT' undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: 'RTE_LINK_MODE_40000baseCR4_Full_BIT' undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: 'RTE_LINK_MODE_40000baseSR4_Full_BIT' undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: 'RTE_LINK_MODE_40000baseLR4_Full_BIT' undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: 'RTE_LINK_MODE_56000baseKR4_Full_BIT' undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: 'RTE_LINK_MODE_56000baseCR4_Full_BIT' undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: 'RTE_LINK_MODE_56000baseSR4_Full_BIT' undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: 'RTE_LINK_MODE_56000baseLR4_Full_BIT' undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: 'RTE_LINK_MODE_25000baseCR_Full_BIT' undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: 'RTE_LINK_MODE_25000baseKR_Full_BIT' undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: 'RTE_LINK_MODE_25000baseSR_Full_BIT' undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: 'RTE_LINK_MODE_50000baseCR2_Full_BIT' undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: 'RTE_LINK_MODE_50000baseKR2_Full_BIT' undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: 'RTE_LINK_MODE_100000baseKR4_Full_BIT' undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: 'RTE_LINK_MODE_100000baseSR4_Full_BIT' undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: 'RTE_LINK_MODE_100000baseCR4_Full_BIT' undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: 'RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT' undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: 'RTE_LINK_MODE_50000baseSR2_Full_BIT' undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: 'RTE_LINK_MODE_1000baseX_Full_BIT' undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: 'RTE_LINK_MODE_10000baseCR_Full_BIT' undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: 'RTE_LINK_MODE_10000baseSR_Full_BIT' undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: 'RTE_LINK_MODE_10000baseLR_Full_BIT' undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: 'RTE_LINK_MODE_10000baseLRM_Full_BIT' undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: 'RTE_LINK_MODE_10000baseER_Full_BIT' undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: 'RTE_LINK_MODE_2500baseT_Full_BIT' undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: 'RTE_LINK_MODE_5000baseT_Full_BIT' undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: 'RTE_LINK_MODE_50000baseKR_Full_BIT' undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: 'RTE_LINK_MODE_50000baseSR_Full_BIT' undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: 'RTE_LINK_MODE_50000baseCR_Full_BIT' undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: 'RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT' undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: 'RTE_LINK_MODE_50000baseDR_Full_BIT' undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: 'RTE_LINK_MODE_100000baseKR2_Full_BIT' undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: 'RTE_LINK_MODE_100000baseSR2_Full_BIT' undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: 'RTE_LINK_MODE_100000baseCR2_Full_BIT' undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: 'RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT' undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: 'RTE_LINK_MODE_100000baseDR2_Full_BIT' undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: 'RTE_LINK_MODE_200000baseKR4_Full_BIT' undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: 'RTE_LINK_MODE_200000baseSR4_Full_BIT' undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: 'RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT' undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: 'RTE_LINK_MODE_200000baseDR4_Full_BIT' undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: 'RTE_LINK_MODE_200000baseCR4_Full_BIT' undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: 'RTE_LINK_MODE_Pause_BIT' undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: 'RTE_LINK_MODE_Asym_Pause_BIT' undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: 'RTE_LINK_MODE_Autoneg_BIT' undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: 'RTE_LINK_MODE_FEC_NONE_BIT' undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: 'RTE_LINK_MODE_FEC_BASER_BIT' undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: 'RTE_LINK_MODE_FEC_RS_BIT' undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: 'struct rte_link_settings' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'dump_supported':
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type 'const struct rte_link_settings'
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: 'RTE_LINK_MODE_TP_BIT' undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type 'const struct rte_link_settings'
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: 'RTE_LINK_MODE_AUI_BIT' undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type 'const struct rte_link_settings'
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: 'RTE_LINK_MODE_BNC_BIT' undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type 'const struct rte_link_settings'
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: 'RTE_LINK_MODE_MII_BIT' undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type 'const struct rte_link_settings'
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: 'RTE_LINK_MODE_FIBRE_BIT' undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type 'const struct rte_link_settings'
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: 'RTE_LINK_MODE_Backplane_BIT' undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type 'const struct rte_link_settings'
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_show_parsed':
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of 'link_settings' isn't known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function 'rte_eth_dev_get_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of 'rte_eth_dev_get_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: 'RTE_PORT_TP' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: 'RTE_PORT_AUI' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: 'RTE_PORT_BNC' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: 'RTE_PORT_MII' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: 'RTE_PORT_FIBRE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:343:14: error: 'RTE_PORT_DA' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: 'RTE_PORT_NONE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:349:14: error: 'RTE_PORT_OTHER' undeclared (first use in this function); did you mean 'RTE_PORT_STOPPED'?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_STOPPED
../app/test-pmd/cmdline_settings.c:360:58: error: 'RTE_AUTONEG_DISABLE' undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: 'RTE_TP_MDI' undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: 'RTE_TP_MDI_X' undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: 'RTE_TP_MDI_AUTO' undeclared (first use in this function); did you mean 'RTE_ETH_FEC_AUTO'?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'parse_hex_u32_bitmap':
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function 'RTE_DIV_ROUND_UP' [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of 'RTE_DIV_ROUND_UP' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_set_advertising_parsed':
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of 'link_settings' isn't known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: '__RTE_LINK_MODE_MASK_NBITS' undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: 'RTE_AUTONEG_ENABLE' undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function 'rte_eth_dev_set_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of 'rte_eth_dev_set_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1607/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_recycle_mbufs.c.o
[1608/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_rxonly.c.o
[1609/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_shared_rxq_fwd.c.o
[1610/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[1611/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[1612/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[1613/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[1614/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[1615/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
ninja: build stopped




*Build Failed #3:
OS: FreeBSD14-64
Target: x86_64-native-bsdapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c:50:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Half_BIT'
                { 0, RTE_LINK_MODE_10baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:52:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Full_BIT'
                { 1, RTE_LINK_MODE_10baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:54:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Half_BIT'
                { 0, RTE_LINK_MODE_100baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:56:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Full_BIT'
                { 1, RTE_LINK_MODE_100baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:58:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:60:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Half_BIT'
                { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:62:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Full_BIT'
                { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:64:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:66:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseKX_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:68:8: error: use of undeclared identifier 'RTE_LINK_MODE_2500baseX_Full_BIT'
                { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:70:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseT_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:72:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKX4_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:74:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKR_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:76:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseR_FEC_BIT'
                { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:78:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseMLD2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:80:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseKR2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:82:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseKR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:84:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseCR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:86:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseSR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1616/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[1617/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[1618/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[1619/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_iofwd.c.o
[1620/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[1621/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_macfwd.c.o
[1622/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_macswap.c.o
[1623/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[1624/1953] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #4:
OS: FreeBSD14-64
Target: x86_64-native-bsdapp-gcc+shared
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function 'dump_link_caps':
../app/test-pmd/cmdline_settings.c:50:22: error: 'RTE_LINK_MODE_10baseT_Half_BIT' undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: 'RTE_LINK_MODE_10baseT_Full_BIT' undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: 'RTE_LINK_MODE_100baseT_Half_BIT' undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: 'RTE_LINK_MODE_100baseT_Full_BIT' undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: 'RTE_LINK_MODE_100baseT1_Full_BIT' undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: 'RTE_LINK_MODE_1000baseT_Half_BIT' undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: 'RTE_LINK_MODE_1000baseT_Full_BIT' undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: 'RTE_LINK_MODE_1000baseT1_Full_BIT' undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: 'RTE_LINK_MODE_1000baseKX_Full_BIT' undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: 'RTE_LINK_MODE_2500baseX_Full_BIT' undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: 'RTE_LINK_MODE_10000baseT_Full_BIT' undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: 'RTE_LINK_MODE_10000baseKX4_Full_BIT' undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: 'RTE_LINK_MODE_10000baseKR_Full_BIT' undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: 'RTE_LINK_MODE_10000baseR_FEC_BIT' undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: 'RTE_LINK_MODE_20000baseMLD2_Full_BIT' undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: 'RTE_LINK_MODE_20000baseKR2_Full_BIT' undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: 'RTE_LINK_MODE_40000baseKR4_Full_BIT' undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: 'RTE_LINK_MODE_40000baseCR4_Full_BIT' undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: 'RTE_LINK_MODE_40000baseSR4_Full_BIT' undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: 'RTE_LINK_MODE_40000baseLR4_Full_BIT' undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: 'RTE_LINK_MODE_56000baseKR4_Full_BIT' undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: 'RTE_LINK_MODE_56000baseCR4_Full_BIT' undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: 'RTE_LINK_MODE_56000baseSR4_Full_BIT' undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: 'RTE_LINK_MODE_56000baseLR4_Full_BIT' undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: 'RTE_LINK_MODE_25000baseCR_Full_BIT' undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: 'RTE_LINK_MODE_25000baseKR_Full_BIT' undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: 'RTE_LINK_MODE_25000baseSR_Full_BIT' undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: 'RTE_LINK_MODE_50000baseCR2_Full_BIT' undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: 'RTE_LINK_MODE_50000baseKR2_Full_BIT' undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: 'RTE_LINK_MODE_100000baseKR4_Full_BIT' undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: 'RTE_LINK_MODE_100000baseSR4_Full_BIT' undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: 'RTE_LINK_MODE_100000baseCR4_Full_BIT' undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: 'RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT' undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: 'RTE_LINK_MODE_50000baseSR2_Full_BIT' undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: 'RTE_LINK_MODE_1000baseX_Full_BIT' undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: 'RTE_LINK_MODE_10000baseCR_Full_BIT' undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: 'RTE_LINK_MODE_10000baseSR_Full_BIT' undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: 'RTE_LINK_MODE_10000baseLR_Full_BIT' undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: 'RTE_LINK_MODE_10000baseLRM_Full_BIT' undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: 'RTE_LINK_MODE_10000baseER_Full_BIT' undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: 'RTE_LINK_MODE_2500baseT_Full_BIT' undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: 'RTE_LINK_MODE_5000baseT_Full_BIT' undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: 'RTE_LINK_MODE_50000baseKR_Full_BIT' undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: 'RTE_LINK_MODE_50000baseSR_Full_BIT' undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: 'RTE_LINK_MODE_50000baseCR_Full_BIT' undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: 'RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT' undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: 'RTE_LINK_MODE_50000baseDR_Full_BIT' undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: 'RTE_LINK_MODE_100000baseKR2_Full_BIT' undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: 'RTE_LINK_MODE_100000baseSR2_Full_BIT' undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: 'RTE_LINK_MODE_100000baseCR2_Full_BIT' undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: 'RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT' undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: 'RTE_LINK_MODE_100000baseDR2_Full_BIT' undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: 'RTE_LINK_MODE_200000baseKR4_Full_BIT' undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: 'RTE_LINK_MODE_200000baseSR4_Full_BIT' undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: 'RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT' undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: 'RTE_LINK_MODE_200000baseDR4_Full_BIT' undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: 'RTE_LINK_MODE_200000baseCR4_Full_BIT' undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: 'RTE_LINK_MODE_Pause_BIT' undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: 'RTE_LINK_MODE_Asym_Pause_BIT' undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: 'RTE_LINK_MODE_Autoneg_BIT' undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: 'RTE_LINK_MODE_FEC_NONE_BIT' undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: 'RTE_LINK_MODE_FEC_BASER_BIT' undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: 'RTE_LINK_MODE_FEC_RS_BIT' undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: 'struct rte_link_settings' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'dump_supported':
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type 'const struct rte_link_settings'
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: 'RTE_LINK_MODE_TP_BIT' undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type 'const struct rte_link_settings'
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: 'RTE_LINK_MODE_AUI_BIT' undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type 'const struct rte_link_settings'
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: 'RTE_LINK_MODE_BNC_BIT' undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type 'const struct rte_link_settings'
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: 'RTE_LINK_MODE_MII_BIT' undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type 'const struct rte_link_settings'
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: 'RTE_LINK_MODE_FIBRE_BIT' undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type 'const struct rte_link_settings'
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: 'RTE_LINK_MODE_Backplane_BIT' undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type 'const struct rte_link_settings'
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_show_parsed':
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of 'link_settings' isn't known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function 'rte_eth_dev_get_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of 'rte_eth_dev_get_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: 'RTE_PORT_TP' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: 'RTE_PORT_AUI' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: 'RTE_PORT_BNC' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: 'RTE_PORT_MII' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: 'RTE_PORT_FIBRE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:343:14: error: 'RTE_PORT_DA' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: 'RTE_PORT_NONE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:349:14: error: 'RTE_PORT_OTHER' undeclared (first use in this function); did you mean 'RTE_PORT_STOPPED'?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_STOPPED
../app/test-pmd/cmdline_settings.c:360:58: error: 'RTE_AUTONEG_DISABLE' undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: 'RTE_TP_MDI' undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: 'RTE_TP_MDI_X' undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: 'RTE_TP_MDI_AUTO' undeclared (first use in this function); did you mean 'RTE_ETH_FEC_AUTO'?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'parse_hex_u32_bitmap':
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function 'RTE_DIV_ROUND_UP' [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of 'RTE_DIV_ROUND_UP' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_set_advertising_parsed':
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of 'link_settings' isn't known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: '__RTE_LINK_MODE_MASK_NBITS' undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: 'RTE_AUTONEG_ENABLE' undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function 'rte_eth_dev_set_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of 'rte_eth_dev_set_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1648/1833] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ixgbe_ixgbe_testpmd.c.o
[1649/1833] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[1650/1833] Compiling C object app/dpdk-test-security-perf.p/test-security-perf_test_security_perf.c.o
[1651/1833] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[1652/1833] Compiling C object app/dpdk-test-security-perf.p/test_test_security_proto.c.o
[1653/1833] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[1654/1833] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[1655/1833] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
[1656/1833] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #5:
OS: FreeBSD14-64
Target: x86_64-native-bsdapp-gcc+debug
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -Idrivers/net/bonding -I../drivers/net/bonding -Ilib/sched -I../lib/sched -Ilib/ip_frag -I../lib/ip_frag -Idrivers/net/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function 'dump_link_caps':
../app/test-pmd/cmdline_settings.c:50:22: error: 'RTE_LINK_MODE_10baseT_Half_BIT' undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: 'RTE_LINK_MODE_10baseT_Full_BIT' undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: 'RTE_LINK_MODE_100baseT_Half_BIT' undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: 'RTE_LINK_MODE_100baseT_Full_BIT' undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: 'RTE_LINK_MODE_100baseT1_Full_BIT' undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: 'RTE_LINK_MODE_1000baseT_Half_BIT' undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: 'RTE_LINK_MODE_1000baseT_Full_BIT' undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: 'RTE_LINK_MODE_1000baseT1_Full_BIT' undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: 'RTE_LINK_MODE_1000baseKX_Full_BIT' undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: 'RTE_LINK_MODE_2500baseX_Full_BIT' undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: 'RTE_LINK_MODE_10000baseT_Full_BIT' undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: 'RTE_LINK_MODE_10000baseKX4_Full_BIT' undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: 'RTE_LINK_MODE_10000baseKR_Full_BIT' undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: 'RTE_LINK_MODE_10000baseR_FEC_BIT' undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: 'RTE_LINK_MODE_20000baseMLD2_Full_BIT' undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: 'RTE_LINK_MODE_20000baseKR2_Full_BIT' undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: 'RTE_LINK_MODE_40000baseKR4_Full_BIT' undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: 'RTE_LINK_MODE_40000baseCR4_Full_BIT' undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: 'RTE_LINK_MODE_40000baseSR4_Full_BIT' undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: 'RTE_LINK_MODE_40000baseLR4_Full_BIT' undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: 'RTE_LINK_MODE_56000baseKR4_Full_BIT' undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: 'RTE_LINK_MODE_56000baseCR4_Full_BIT' undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: 'RTE_LINK_MODE_56000baseSR4_Full_BIT' undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: 'RTE_LINK_MODE_56000baseLR4_Full_BIT' undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: 'RTE_LINK_MODE_25000baseCR_Full_BIT' undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: 'RTE_LINK_MODE_25000baseKR_Full_BIT' undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: 'RTE_LINK_MODE_25000baseSR_Full_BIT' undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: 'RTE_LINK_MODE_50000baseCR2_Full_BIT' undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: 'RTE_LINK_MODE_50000baseKR2_Full_BIT' undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: 'RTE_LINK_MODE_100000baseKR4_Full_BIT' undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: 'RTE_LINK_MODE_100000baseSR4_Full_BIT' undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: 'RTE_LINK_MODE_100000baseCR4_Full_BIT' undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: 'RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT' undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: 'RTE_LINK_MODE_50000baseSR2_Full_BIT' undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: 'RTE_LINK_MODE_1000baseX_Full_BIT' undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: 'RTE_LINK_MODE_10000baseCR_Full_BIT' undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: 'RTE_LINK_MODE_10000baseSR_Full_BIT' undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: 'RTE_LINK_MODE_10000baseLR_Full_BIT' undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: 'RTE_LINK_MODE_10000baseLRM_Full_BIT' undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: 'RTE_LINK_MODE_10000baseER_Full_BIT' undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: 'RTE_LINK_MODE_2500baseT_Full_BIT' undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: 'RTE_LINK_MODE_5000baseT_Full_BIT' undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: 'RTE_LINK_MODE_50000baseKR_Full_BIT' undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: 'RTE_LINK_MODE_50000baseSR_Full_BIT' undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: 'RTE_LINK_MODE_50000baseCR_Full_BIT' undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: 'RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT' undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: 'RTE_LINK_MODE_50000baseDR_Full_BIT' undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: 'RTE_LINK_MODE_100000baseKR2_Full_BIT' undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: 'RTE_LINK_MODE_100000baseSR2_Full_BIT' undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: 'RTE_LINK_MODE_100000baseCR2_Full_BIT' undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: 'RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT' undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: 'RTE_LINK_MODE_100000baseDR2_Full_BIT' undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: 'RTE_LINK_MODE_200000baseKR4_Full_BIT' undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: 'RTE_LINK_MODE_200000baseSR4_Full_BIT' undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: 'RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT' undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: 'RTE_LINK_MODE_200000baseDR4_Full_BIT' undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: 'RTE_LINK_MODE_200000baseCR4_Full_BIT' undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: 'RTE_LINK_MODE_Pause_BIT' undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: 'RTE_LINK_MODE_Asym_Pause_BIT' undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: 'RTE_LINK_MODE_Autoneg_BIT' undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: 'RTE_LINK_MODE_FEC_NONE_BIT' undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: 'RTE_LINK_MODE_FEC_BASER_BIT' undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: 'RTE_LINK_MODE_FEC_RS_BIT' undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: 'struct rte_link_settings' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'dump_supported':
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type 'const struct rte_link_settings'
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: 'RTE_LINK_MODE_TP_BIT' undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type 'const struct rte_link_settings'
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: 'RTE_LINK_MODE_AUI_BIT' undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type 'const struct rte_link_settings'
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: 'RTE_LINK_MODE_BNC_BIT' undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type 'const struct rte_link_settings'
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: 'RTE_LINK_MODE_MII_BIT' undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type 'const struct rte_link_settings'
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: 'RTE_LINK_MODE_FIBRE_BIT' undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type 'const struct rte_link_settings'
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: 'RTE_LINK_MODE_Backplane_BIT' undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type 'const struct rte_link_settings'
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_show_parsed':
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of 'link_settings' isn't known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function 'rte_eth_dev_get_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of 'rte_eth_dev_get_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: 'RTE_PORT_TP' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: 'RTE_PORT_AUI' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: 'RTE_PORT_BNC' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: 'RTE_PORT_MII' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: 'RTE_PORT_FIBRE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:343:14: error: 'RTE_PORT_DA' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: 'RTE_PORT_NONE' undeclared (first use in this function); did you mean 'RTE_PORT_ALL'?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:349:14: error: 'RTE_PORT_OTHER' undeclared (first use in this function); did you mean 'RTE_PORT_STOPPED'?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_STOPPED
../app/test-pmd/cmdline_settings.c:360:58: error: 'RTE_AUTONEG_DISABLE' undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: 'RTE_TP_MDI' undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: 'RTE_TP_MDI_X' undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: 'RTE_TP_MDI_AUTO' undeclared (first use in this function); did you mean 'RTE_ETH_FEC_AUTO'?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function 'parse_hex_u32_bitmap':
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function 'RTE_DIV_ROUND_UP' [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of 'RTE_DIV_ROUND_UP' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function 'cmd_link_settings_set_advertising_parsed':
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of 'link_settings' isn't known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: '__RTE_LINK_MODE_MASK_NBITS' undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: 'RTE_AUTONEG_ENABLE' undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function 'rte_eth_dev_set_link_settings'; did you mean 'rte_eth_dev_set_link_down'? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of 'rte_eth_dev_set_link_settings' [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable 'link_settings' [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1617/1936] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[1618/1936] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[1619/1936] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ixgbe_ixgbe_testpmd.c.o
[1620/1936] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[1621/1936] Compiling C object app/dpdk-test-security-perf.p/test-security-perf_test_security_perf.c.o
[1622/1936] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[1623/1936] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
[1624/1936] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[1625/1936] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #6:
OS: RHEL92-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2546/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2547/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_bonding_bonding_testpmd.c.o
[2548/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2549/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[2550/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2551/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[2552/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[2553/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[2554/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #7:
OS: RHEL92-64
Target: x86_64-native-linuxapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c:50:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Half_BIT'
                { 0, RTE_LINK_MODE_10baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:52:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Full_BIT'
                { 1, RTE_LINK_MODE_10baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:54:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Half_BIT'
                { 0, RTE_LINK_MODE_100baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:56:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Full_BIT'
                { 1, RTE_LINK_MODE_100baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:58:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:60:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Half_BIT'
                { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:62:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Full_BIT'
                { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:64:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:66:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseKX_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:68:8: error: use of undeclared identifier 'RTE_LINK_MODE_2500baseX_Full_BIT'
                { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:70:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseT_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:72:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKX4_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:74:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKR_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:76:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseR_FEC_BIT'
                { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:78:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseMLD2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:80:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseKR2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:82:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseKR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:84:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseCR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:86:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseSR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2492/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[2493/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_iofwd.c.o
[2494/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[2495/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[2496/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2497/2879] Linking target app/dpdk-test-pipeline
[2498/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[2499/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2500/2879] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #8:
OS: RHEL92-64
Target: x86_64-native-linuxapp-gcc+shared
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2577/2769] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[2578/2769] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[2579/2769] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[2580/2769] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2581/2769] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[2582/2769] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ixgbe_ixgbe_testpmd.c.o
[2583/2769] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[2584/2769] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[2585/2769] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
ninja: build stopped




*Build Failed #9:
OS: RHEL92-64
Target: x86_64-native-linuxapp-gcc+debug
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2592/2964] Compiling C object app/dpdk-testpmd.p/.._drivers_net_bonding_bonding_testpmd.c.o
[2593/2964] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2594/2964] Compiling C object app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o
[2595/2964] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2596/2964] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[2597/2964] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[2598/2964] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2599/2964] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[2600/2964] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #10:
OS: SUSE15-64
Target: x86_64-native-linuxapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c:50:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Half_BIT'
                { 0, RTE_LINK_MODE_10baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:52:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Full_BIT'
                { 1, RTE_LINK_MODE_10baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:54:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Half_BIT'
                { 0, RTE_LINK_MODE_100baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:56:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Full_BIT'
                { 1, RTE_LINK_MODE_100baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:58:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:60:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Half_BIT'
                { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:62:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Full_BIT'
                { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:64:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:66:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseKX_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:68:8: error: use of undeclared identifier 'RTE_LINK_MODE_2500baseX_Full_BIT'
                { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:70:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseT_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:72:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKX4_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:74:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKR_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:76:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseR_FEC_BIT'
                { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:78:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseMLD2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:80:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseKR2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:82:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseKR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:84:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseCR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:86:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseSR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2546/2935] Compiling C object app/dpdk-test-pipeline.p/test-pipeline_runtime.c.o
[2547/2935] Linking target app/dpdk-test-mldev
[2548/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[2549/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[2550/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[2551/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2552/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[2553/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2554/2935] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #11:
OS: SUSE15-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:8: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:8: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:8: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10baseT_Half_BIT’?
   { 1, RTE_LINK_MODE_10baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10baseT_Half_BIT
../app/test-pmd/cmdline_settings.c:54:8: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10baseT_Half_BIT’?
   { 0, RTE_LINK_MODE_100baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10baseT_Half_BIT
../app/test-pmd/cmdline_settings.c:56:8: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10baseT_Full_BIT’?
   { 1, RTE_LINK_MODE_100baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:58:8: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100baseT_Full_BIT’?
   { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:60:8: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100baseT_Half_BIT’?
   { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100baseT_Half_BIT
../app/test-pmd/cmdline_settings.c:62:8: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100baseT_Full_BIT’?
   { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:64:8: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseT_Full_BIT’?
   { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:66:8: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseT1_Full_BIT’?
   { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseT1_Full_BIT
../app/test-pmd/cmdline_settings.c:68:8: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseKX_Full_BIT’?
   { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseKX_Full_BIT
../app/test-pmd/cmdline_settings.c:70:8: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseT_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:72:8: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseKX_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseKX_Full_BIT
../app/test-pmd/cmdline_settings.c:74:8: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseKX4_Full_BIT
../app/test-pmd/cmdline_settings.c:76:8: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:78:8: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:80:8: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:82:8: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’?
   { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_20000baseKR2_Full_BIT
../app/test-pmd/cmdline_settings.c:84:8: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_40000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:86:8: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’?
   { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_40000baseCR4_Full_BIT
../app/test-pmd/cmdline_settings.c:88:8: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’?
   { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_40000baseSR4_Full_BIT
../app/test-pmd/cmdline_settings.c:90:8: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_40000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:92:8: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_56000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:94:8: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’?
   { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_56000baseCR4_Full_BIT
../app/test-pmd/cmdline_settings.c:96:8: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’?
   { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_56000baseSR4_Full_BIT
../app/test-pmd/cmdline_settings.c:98:8: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’?
   { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_56000baseCR4_Full_BIT
../app/test-pmd/cmdline_settings.c:100:8: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_25000baseCR_Full_BIT’?
   { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_25000baseCR_Full_BIT
../app/test-pmd/cmdline_settings.c:102:8: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_25000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_25000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:104:8: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_56000baseCR4_Full_BIT
../app/test-pmd/cmdline_settings.c:106:8: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseCR2_Full_BIT
../app/test-pmd/cmdline_settings.c:108:8: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_40000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:110:8: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:112:8: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseSR4_Full_BIT
../app/test-pmd/cmdline_settings.c:114:8: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseCR4_Full_BIT
../app/test-pmd/cmdline_settings.c:116:8: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseKR2_Full_BIT
../app/test-pmd/cmdline_settings.c:118:8: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseKX_Full_BIT’?
   { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseKX_Full_BIT
../app/test-pmd/cmdline_settings.c:120:8: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:122:8: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseCR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseCR_Full_BIT
../app/test-pmd/cmdline_settings.c:124:8: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseSR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseSR_Full_BIT
../app/test-pmd/cmdline_settings.c:126:8: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseLR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseLR_Full_BIT
../app/test-pmd/cmdline_settings.c:128:8: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10000baseLR_Full_BIT’?
   { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_10000baseLR_Full_BIT
../app/test-pmd/cmdline_settings.c:130:8: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_2500baseX_Full_BIT’?
   { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_2500baseX_Full_BIT
../app/test-pmd/cmdline_settings.c:132:8: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_1000baseT_Full_BIT’?
   { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_1000baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:134:8: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseKR2_Full_BIT
../app/test-pmd/cmdline_settings.c:136:8: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseKR_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseKR_Full_BIT
../app/test-pmd/cmdline_settings.c:138:8: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseSR_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseSR_Full_BIT
../app/test-pmd/cmdline_settings.c:140:8: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT
../app/test-pmd/cmdline_settings.c:142:8: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseCR_Full_BIT’?
   { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseCR_Full_BIT
../app/test-pmd/cmdline_settings.c:144:8: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:146:8: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseKR2_Full_BIT
../app/test-pmd/cmdline_settings.c:148:8: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseSR2_Full_BIT
../app/test-pmd/cmdline_settings.c:150:8: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT
../app/test-pmd/cmdline_settings.c:152:8: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’?
   { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseCR2_Full_BIT
../app/test-pmd/cmdline_settings.c:154:8: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:156:8: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’?
   { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_200000baseKR4_Full_BIT
../app/test-pmd/cmdline_settings.c:158:8: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’?
   { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT
../app/test-pmd/cmdline_settings.c:160:8: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’?
   { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_200000baseSR4_Full_BIT
../app/test-pmd/cmdline_settings.c:162:8: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’?
   { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        RTE_LINK_MODE_200000baseDR4_Full_BIT
../app/test-pmd/cmdline_settings.c:198:21: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_10baseT_Full_BIT’?
   if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     RTE_LINK_MODE_10baseT_Full_BIT
../app/test-pmd/cmdline_settings.c:198:21: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:200:22: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_Pause_BIT’?
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      RTE_LINK_MODE_Pause_BIT
../app/test-pmd/cmdline_settings.c:200:22: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:204:22: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:211:21: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_Pause_BIT’?
   if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_LINK_MODE_Pause_BIT
../app/test-pmd/cmdline_settings.c:211:21: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:217:21: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_Autoneg_BIT’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_LINK_MODE_Autoneg_BIT
../app/test-pmd/cmdline_settings.c:217:21: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:221:21: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_FEC_NONE_BIT’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_LINK_MODE_FEC_NONE_BIT
../app/test-pmd/cmdline_settings.c:221:21: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:225:21: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_FEC_BASER_BIT’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_LINK_MODE_FEC_BASER_BIT
../app/test-pmd/cmdline_settings.c:225:21: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 dump_supported(const struct rte_link_settings *link_settings)
                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:27: error: dereferencing pointer to incomplete type ‘const struct rte_link_settings’
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:239:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:239:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:240:7: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_TP_BIT))
       ^~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:239:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:240:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_TP_BIT))
       ^~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:242:27: error: request for member ‘link_modes’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:242:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:243:7: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_TP_BIT’?
       RTE_LINK_MODE_AUI_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_LINK_MODE_TP_BIT
../app/test-pmd/cmdline_settings.c:242:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:243:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_AUI_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:245:27: error: request for member ‘link_modes’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:245:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:246:7: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_AUI_BIT’?
       RTE_LINK_MODE_BNC_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_LINK_MODE_AUI_BIT
../app/test-pmd/cmdline_settings.c:245:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:246:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_BNC_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:248:27: error: request for member ‘link_modes’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:248:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:249:7: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_AUI_BIT’?
       RTE_LINK_MODE_MII_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_LINK_MODE_AUI_BIT
../app/test-pmd/cmdline_settings.c:248:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:249:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_MII_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:251:27: error: request for member ‘link_modes’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:251:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:252:7: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_MII_BIT’?
       RTE_LINK_MODE_FIBRE_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~
       RTE_LINK_MODE_MII_BIT
../app/test-pmd/cmdline_settings.c:251:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:252:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_FIBRE_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:254:27: error: request for member ‘link_modes’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:254:39: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (get_bit(link_settings->link_modes.supported,
                                       ^
                                       ->
../app/test-pmd/cmdline_settings.c:255:7: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function); did you mean ‘RTE_LINK_MODE_BNC_BIT’?
       RTE_LINK_MODE_Backplane_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
       RTE_LINK_MODE_BNC_BIT
../app/test-pmd/cmdline_settings.c:254:14: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  if (get_bit(link_settings->link_modes.supported,
              ^~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:255:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror=int-conversion]
       RTE_LINK_MODE_Backplane_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t {aka unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^~~~~~~
../app/test-pmd/cmdline_settings.c:260:23: error: request for member ‘link_modes’ in something not a structure or union
          link_settings->link_modes.supported, 0);
                       ^~
../app/test-pmd/cmdline_settings.c:260:35: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
          link_settings->link_modes.supported, 0);
                                   ^
                                   ->
../app/test-pmd/cmdline_settings.c:260:10: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
          link_settings->link_modes.supported, 0);
          ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:275:9: error: passing argument 1 of ‘memset’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-array-qualifiers]
  memset(&link_settings, 0x00, sizeof(link_settings));
         ^
In file included from ../lib/eal/include/rte_uuid.h:19:0,
                 from ../lib/eal/include/rte_eal.h:20,
                 from ../lib/eal/include/rte_lcore.h:18,
                 from ../lib/eal/include/generic/rte_spinlock.h:20,
                 from ../lib/eal/x86/include/rte_spinlock.h:12,
                 from ../lib/eal/include/generic/rte_power_intrinsics.h:10,
                 from ../lib/eal/x86/include/rte_power_intrinsics.h:14,
                 from ../lib/ethdev/rte_ethdev.h:173,
                 from ../app/test-pmd/cmdline_settings.c:7:
/usr/include/string.h:61:14: note: expected ‘void *’ but argument is of type ‘const struct <anonymous> (*)[1]’
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
              ^~~~~~
../app/test-pmd/cmdline_settings.c:275:31: error: passing argument 3 of ‘memset’ makes integer from pointer without a cast [-Werror=int-conversion]
  memset(&link_settings, 0x00, sizeof(link_settings));
                               ^~~~~~
In file included from ../lib/eal/include/rte_uuid.h:19:0,
                 from ../lib/eal/include/rte_eal.h:20,
                 from ../lib/eal/include/rte_lcore.h:18,
                 from ../lib/eal/include/generic/rte_spinlock.h:20,
                 from ../lib/eal/x86/include/rte_spinlock.h:12,
                 from ../lib/eal/include/generic/rte_power_intrinsics.h:10,
                 from ../lib/eal/x86/include/rte_power_intrinsics.h:14,
                 from ../lib/ethdev/rte_ethdev.h:173,
                 from ../app/test-pmd/cmdline_settings.c:7:
/usr/include/string.h:61:14: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘const struct <anonymous> *’
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
              ^~~~~~
../app/test-pmd/cmdline_settings.c:276:8: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:8: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:287:17: error: passing argument 1 of ‘dump_supported’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  dump_supported(&link_settings);
                 ^
../app/test-pmd/cmdline_settings.c:236:1: note: expected ‘const struct rte_link_settings *’ but argument is of type ‘const struct <anonymous> (*)[1]’
 dump_supported(const struct rte_link_settings *link_settings)
 ^~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:289:17: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    link_settings.link_modes.advertising, 0);
                 ^
                 ->
../app/test-pmd/cmdline_settings.c:289:28: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    link_settings.link_modes.advertising, 0);
                            ^
                            ->
../app/test-pmd/cmdline_settings.c:289:4: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    link_settings.link_modes.advertising, 0);
    ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^~~~~~~~~~~~~~
In file included from ../lib/log/rte_log.h:26:0,
                 from ../lib/eal/include/rte_debug.h:17,
                 from ../lib/eal/include/rte_bitops.h:20,
                 from ../lib/ethdev/rte_cman.h:12,
                 from ../lib/ethdev/rte_ethdev.h:163,
                 from ../app/test-pmd/cmdline_settings.c:7:
../app/test-pmd/cmdline_settings.c:292:52: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                    ^
../lib/eal/include/rte_common.h:719:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
../app/test-pmd/cmdline_settings.c:292:63: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                               ^
../lib/eal/include/rte_common.h:719:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
../app/test-pmd/cmdline_settings.c:292:52: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                    ^
../lib/eal/include/rte_common.h:719:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
../app/test-pmd/cmdline_settings.c:292:63: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                               ^
../lib/eal/include/rte_common.h:719:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
../lib/eal/include/rte_common.h:719:32: error: invalid operands to binary / (have ‘const struct <anonymous> *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                     ~          ^
../app/test-pmd/cmdline_settings.c:292:31: note: in expansion of macro ‘RTE_DIM’
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                               ^~~~~~~
../app/test-pmd/cmdline_settings.c:292:29: error: comparison between pointer and integer [-Werror]
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                             ^
../app/test-pmd/cmdline_settings.c:293:20: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
                    ^
                    ->
../app/test-pmd/cmdline_settings.c:293:31: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
                               ^
                               ->
../app/test-pmd/cmdline_settings.c:293:52: error: invalid operands to binary != (have ‘const struct <anonymous>’ and ‘int’)
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~
../app/test-pmd/cmdline_settings.c:302:18: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
     link_settings.link_modes.lp_advertising, 0);
                  ^
                  ->
../app/test-pmd/cmdline_settings.c:302:29: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
     link_settings.link_modes.lp_advertising, 0);
                             ^
                             ->
../app/test-pmd/cmdline_settings.c:302:5: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror=incompatible-pointer-types]
     link_settings.link_modes.lp_advertising, 0);
     ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t * {aka const unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:306:19: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (link_settings.base.link.link_speed == 0
                   ^
                   ->
../app/test-pmd/cmdline_settings.c:306:24: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (link_settings.base.link.link_speed == 0
                        ^
                        ->
../app/test-pmd/cmdline_settings.c:306:29: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (link_settings.base.link.link_speed == 0
                             ^
                             ->
../app/test-pmd/cmdline_settings.c:307:22: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                      ^
                      ->
../app/test-pmd/cmdline_settings.c:307:27: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                           ^
                           ->
../app/test-pmd/cmdline_settings.c:307:32: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                                ^
                                ->
../app/test-pmd/cmdline_settings.c:307:44: error: comparison between pointer and integer [-Werror]
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                                            ^~
../app/test-pmd/cmdline_settings.c:308:22: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                      ^
                      ->
../app/test-pmd/cmdline_settings.c:308:27: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                           ^
                           ->
../app/test-pmd/cmdline_settings.c:308:32: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                                ^
                                ->
../app/test-pmd/cmdline_settings.c:308:44: error: comparison between pointer and integer [-Werror]
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                                            ^~
../app/test-pmd/cmdline_settings.c:311:44: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                            ^
                                            ->
../app/test-pmd/cmdline_settings.c:311:49: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                                 ^
                                                 ->
../app/test-pmd/cmdline_settings.c:311:54: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                                      ^
                                                      ->
../app/test-pmd/cmdline_settings.c:311:21: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                    ~^         ~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:314:23: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  switch (link_settings.base.link.link_duplex) {
                       ^
                       ->
../app/test-pmd/cmdline_settings.c:314:28: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  switch (link_settings.base.link.link_duplex) {
                            ^
                            ->
../app/test-pmd/cmdline_settings.c:314:33: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  switch (link_settings.base.link.link_duplex) {
                                 ^
                                 ->
../app/test-pmd/cmdline_settings.c:314:10: error: switch quantity not an integer
  switch (link_settings.base.link.link_duplex) {
          ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:322:51: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                   ^
                                                   ->
../app/test-pmd/cmdline_settings.c:322:56: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                        ^
                                                        ->
../app/test-pmd/cmdline_settings.c:322:61: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                             ^
                                                             ->
../app/test-pmd/cmdline_settings.c:322:31: error: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                              ~^      ~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:327:23: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  switch (link_settings.base.port) {
                       ^
                       ->
../app/test-pmd/cmdline_settings.c:327:28: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  switch (link_settings.base.port) {
                            ^
                            ->
../app/test-pmd/cmdline_settings.c:327:10: error: switch quantity not an integer
  switch (link_settings.base.port) {
          ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:328:7: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_TP:
       ^~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:7: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_AUI:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:7: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_AUI’?
  case RTE_PORT_BNC:
       ^~~~~~~~~~~~
       RTE_PORT_AUI
../app/test-pmd/cmdline_settings.c:337:7: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_AUI’?
  case RTE_PORT_MII:
       ^~~~~~~~~~~~
       RTE_PORT_AUI
../app/test-pmd/cmdline_settings.c:340:7: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_MII’?
  case RTE_PORT_FIBRE:
       ^~~~~~~~~~~~~~
       RTE_PORT_MII
../app/test-pmd/cmdline_settings.c:343:7: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_TP’?
  case RTE_PORT_DA:
       ^~~~~~~~~~~
       RTE_PORT_TP
../app/test-pmd/cmdline_settings.c:346:7: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_BNC’?
  case RTE_PORT_NONE:
       ^~~~~~~~~~~~~
       RTE_PORT_BNC
../app/test-pmd/cmdline_settings.c:349:7: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_NONE’?
  case RTE_PORT_OTHER:
       ^~~~~~~~~~~~~~
       RTE_PORT_NONE
../app/test-pmd/cmdline_settings.c:353:51: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
                                                   ^
                                                   ->
../app/test-pmd/cmdline_settings.c:353:56: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
                                                        ^
                                                        ->
../app/test-pmd/cmdline_settings.c:353:31: error: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
                              ~^      ~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:357:53: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
                                                     ^
                                                     ->
../app/test-pmd/cmdline_settings.c:357:58: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
                                                          ^
                                                          ->
../app/test-pmd/cmdline_settings.c:357:34: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
                                 ~^     ~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:360:17: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                 ^
                 ->
../app/test-pmd/cmdline_settings.c:360:22: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                      ^
                      ->
../app/test-pmd/cmdline_settings.c:360:27: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                           ^
                           ->
../app/test-pmd/cmdline_settings.c:360:44: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function); did you mean ‘RTE_VECT_SIMD_DISABLED’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                                            ^~~~~~~~~~~~~~~~~~~
                                            RTE_VECT_SIMD_DISABLED
../app/test-pmd/cmdline_settings.c:363:19: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (link_settings.base.port == RTE_PORT_TP) {
                   ^
                   ->
../app/test-pmd/cmdline_settings.c:363:24: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  if (link_settings.base.port == RTE_PORT_TP) {
                        ^
                        ->
../app/test-pmd/cmdline_settings.c:365:20: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                    ^
                    ->
../app/test-pmd/cmdline_settings.c:365:25: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                         ^
                         ->
../app/test-pmd/cmdline_settings.c:365:46: error: ‘RTE_TP_MDI’ undeclared (first use in this function); did you mean ‘RTE_PTR_ADD’?
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                                              ^~~~~~~~~~
                                              RTE_PTR_ADD
../app/test-pmd/cmdline_settings.c:367:27: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   } else if (link_settings.base.eth_tp_mdix_ctrl
                           ^
                           ->
../app/test-pmd/cmdline_settings.c:367:32: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
   } else if (link_settings.base.eth_tp_mdix_ctrl
                                ^
                                ->
../app/test-pmd/cmdline_settings.c:368:10: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function); did you mean ‘RTE_TP_MDI’?
       == RTE_TP_MDI_X) {
          ^~~~~~~~~~~~
          RTE_TP_MDI
../app/test-pmd/cmdline_settings.c:371:25: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    switch (link_settings.base.eth_tp_mdix) {
                         ^
                         ->
../app/test-pmd/cmdline_settings.c:371:30: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    switch (link_settings.base.eth_tp_mdix) {
                              ^
                              ->
../app/test-pmd/cmdline_settings.c:371:12: error: switch quantity not an integer
    switch (link_settings.base.eth_tp_mdix) {
            ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:382:21: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    if (link_settings.base.eth_tp_mdix_ctrl
                     ^
                     ->
../app/test-pmd/cmdline_settings.c:382:26: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
    if (link_settings.base.eth_tp_mdix_ctrl
                          ^
                          ->
../app/test-pmd/cmdline_settings.c:383:11: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_TP_MDI_X’?
        == RTE_TP_MDI_AUTO)
           ^~~~~~~~~~~~~~~
           RTE_TP_MDI_X
../app/test-pmd/cmdline_settings.c:272:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:30: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’; did you mean ‘_MM_ROUND_UP’? [-Werror=implicit-function-declaration]
  const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
                              ^~~~~~~~~~~~~~~~
                              _MM_ROUND_UP
../app/test-pmd/cmdline_settings.c:407:30: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:5: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
     __RTE_LINK_MODE_MASK_NBITS,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
     RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:485:18: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
     link_settings.link_modes.advertising)) {
                  ^
                  ->
../app/test-pmd/cmdline_settings.c:485:29: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
     link_settings.link_modes.advertising)) {
                             ^
                             ->
../app/test-pmd/cmdline_settings.c:484:5: error: passing argument 2 of ‘parse_hex_u32_bitmap’ makes integer from pointer without a cast [-Werror=int-conversion]
     __RTE_LINK_MODE_MASK_NBITS,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:404:12: note: expected ‘unsigned int’ but argument is of type ‘const struct <anonymous> *’
 static int parse_hex_u32_bitmap(const char *s,
            ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:485:5: error: passing argument 3 of ‘parse_hex_u32_bitmap’ from incompatible pointer type [-Werror=incompatible-pointer-types]
     link_settings.link_modes.advertising)) {
     ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:404:12: note: expected ‘uint32_t * {aka unsigned int *}’ but argument is of type ‘const struct <anonymous> *’
 static int parse_hex_u32_bitmap(const char *s,
            ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:15: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
               ^
               ->
../app/test-pmd/cmdline_settings.c:491:20: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                    ^
                    ->
../app/test-pmd/cmdline_settings.c:491:25: error: ‘(const struct <anonymous> *)&<erroneous-expression>’ is a pointer; did you mean to use ‘->’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                         ^
                         ->
../app/test-pmd/cmdline_settings.c:491:41: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function); did you mean ‘RTE_NET_ENA’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                                         ^~~~~~~~~~~~~~~~~~
                                         RTE_NET_ENA
../app/test-pmd/cmdline_settings.c:491:2: error: statement with no effect [-Werror=unused-value]
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:8: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:8: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2527/2933] Generating drivers/rte_crypto_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
[2528/2933] Linking target app/dpdk-dumpcap
[2529/2933] Linking target app/dpdk-proc-info
[2530/2933] Linking target app/dpdk-pdump
[2531/2933] Linking target app/dpdk-graph
[2532/2933] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2533/2933] Linking target app/dpdk-test-bbdev
[2534/2933] Linking target app/dpdk-test-acl
[2535/2933] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
ninja: build stopped




*Build Failed #12:
OS: CBL-Mariner2.0-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2540/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2541/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_parameters.c.o
[2542/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2543/2915] Compiling C object app/dpdk-testpmd.p/.._drivers_net_bonding_bonding_testpmd.c.o
[2544/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2545/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2546/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o
[2547/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[2548/2915] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #13:
OS: UB2204-32
Target: i686-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[1970/2326] Compiling C object app/dpdk-test.p/test_test_alarm.c.o
[1971/2326] Linking target app/dpdk-test-sad
[1972/2326] Compiling C object app/dpdk-test-security-perf.p/test-security-perf_test_security_perf.c.o
[1973/2326] Compiling C object app/dpdk-test-security-perf.p/test_test_security_proto.c.o
[1974/2326] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[1975/2326] Compiling C object app/dpdk-test.p/test_packet_burst_generator.c.o
[1976/2326] Compiling C object app/dpdk-test.p/test_test_acl.c.o
[1977/2326] Linking target app/dpdk-test-regex
[1978/2326] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #14:
OS: RHEL89-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:8: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:8: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:8: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_10baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:8: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:8: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_100baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:8: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:8: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:8: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:8: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:8: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:8: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:8: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:8: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:8: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:8: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:8: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:8: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:8: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:8: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:8: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:8: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:8: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:8: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:8: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:8: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:8: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:8: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:8: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:8: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:8: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:8: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:8: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:8: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:8: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:8: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:8: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:8: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:8: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:8: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:8: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:8: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:8: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:8: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:8: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:8: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:8: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:8: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:8: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:8: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:8: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:8: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:8: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:8: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:8: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:8: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:8: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:8: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:8: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:21: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
   if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~
                     RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c:200:22: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:21: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:21: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_NONE’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_INTR_MODE_NONE
../app/test-pmd/cmdline_settings.c:221:21: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_BASER’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_ETH_FEC_BASER
../app/test-pmd/cmdline_settings.c:225:21: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
   if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 dump_supported(const struct rte_link_settings *link_settings)
                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:27: error: dereferencing pointer to incomplete type ‘const struct rte_link_settings’
  if (get_bit(link_settings->link_modes.supported,
                           ^~
../app/test-pmd/cmdline_settings.c:240:7: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_TP_BIT))
       ^~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:243:7: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_AUI_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:246:7: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_BNC_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:249:7: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
       RTE_LINK_MODE_MII_BIT))
       ^~~~~~~~~~~~~~~~~~~~~
       RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:252:7: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function); did you mean ‘RTE_FDIR_MODE_PERFECT’?
       RTE_LINK_MODE_FIBRE_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~
       RTE_FDIR_MODE_PERFECT
../app/test-pmd/cmdline_settings.c:255:7: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_Backplane_BIT))
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:8: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:8: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:7: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_TP:
       ^~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:7: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_AUI:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:7: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_BNC:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:7: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_MII:
       ^~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:7: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_FIBRE:
       ^~~~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:343:7: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_DA:
       ^~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:7: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  case RTE_PORT_NONE:
       ^~~~~~~~~~~~~
       RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:349:7: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_STOPPED’?
  case RTE_PORT_OTHER:
       ^~~~~~~~~~~~~~
       RTE_PORT_STOPPED
../app/test-pmd/cmdline_settings.c:360:44: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function); did you mean ‘RTE_VECT_SIMD_DISABLED’?
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                                            ^~~~~~~~~~~~~~~~~~~
                                            RTE_VECT_SIMD_DISABLED
../app/test-pmd/cmdline_settings.c:365:46: error: ‘RTE_TP_MDI’ undeclared (first use in this function); did you mean ‘RTE_PTR_ADD’?
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                                              ^~~~~~~~~~
                                              RTE_PTR_ADD
../app/test-pmd/cmdline_settings.c:368:10: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function); did you mean ‘RTE_PTR_DIFF’?
       == RTE_TP_MDI_X) {
          ^~~~~~~~~~~~
          RTE_PTR_DIFF
../app/test-pmd/cmdline_settings.c:383:11: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
        == RTE_TP_MDI_AUTO)
           ^~~~~~~~~~~~~~~
           RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:30: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’; did you mean ‘RTE_ETH_LINK_UP’? [-Werror=implicit-function-declaration]
  const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
                              ^~~~~~~~~~~~~~~~
                              RTE_ETH_LINK_UP
../app/test-pmd/cmdline_settings.c:407:30: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:5: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function); did you mean ‘RTE_INTR_MODE_MSIX’?
     __RTE_LINK_MODE_MASK_NBITS,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
     RTE_INTR_MODE_MSIX
../app/test-pmd/cmdline_settings.c:491:41: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function); did you mean ‘RTE_NET_ENA’?
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                                         ^~~~~~~~~~~~~~~~~~
                                         RTE_NET_ENA
../app/test-pmd/cmdline_settings.c:493:8: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:8: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2532/2929] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2533/2929] Linking target app/dpdk-test-dma-perf
[2534/2929] Linking target app/dpdk-test-crypto-perf
[2535/2929] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2536/2929] Linking target app/dpdk-test-cmdline
[2537/2929] Linking target app/dpdk-test-compress-perf
[2538/2929] Linking target app/dpdk-test-eventdev
[2539/2929] Linking target app/dpdk-test-fib
[2540/2929] Linking target app/dpdk-test-flow-perf
ninja: build stopped




*Build Failed #15:
OS: UB2204-64
Target: x86_64-native-linuxapp-gcc+16byte
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2596/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_parameters.c.o
[2597/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2598/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_shared_rxq_fwd.c.o
[2599/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o
[2600/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2601/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[2602/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2603/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2604/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #16:
OS: UB2204-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2608/2965] Compiling C object app/dpdk-test-security-perf.p/test_test_security_proto.c.o
[2609/2965] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[2610/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[2611/2965] Compiling C object app/dpdk-test.p/test_test_bitratestats.c.o
[2612/2965] Compiling C object app/dpdk-test.p/test_test_argparse.c.o
[2613/2965] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[2614/2965] Compiling C object app/dpdk-test.p/test_commands.c.o
[2615/2965] Compiling C object app/dpdk-test.p/test_packet_burst_generator.c.o
[2616/2965] Linking target app/dpdk-test-regex
ninja: build stopped




*Build Failed #17:
OS: UB2204-64
Target: x86_64-native-linuxapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c:50:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Half_BIT'
                { 0, RTE_LINK_MODE_10baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:52:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Full_BIT'
                { 1, RTE_LINK_MODE_10baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:54:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Half_BIT'
                { 0, RTE_LINK_MODE_100baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:56:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Full_BIT'
                { 1, RTE_LINK_MODE_100baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:58:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:60:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Half_BIT'
                { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:62:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Full_BIT'
                { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:64:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT1_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:66:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseKX_Full_BIT'
                { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:68:8: error: use of undeclared identifier 'RTE_LINK_MODE_2500baseX_Full_BIT'
                { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:70:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseT_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:72:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKX4_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:74:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKR_Full_BIT'
                { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:76:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseR_FEC_BIT'
                { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:78:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseMLD2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:80:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseKR2_Full_BIT'
                { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:82:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseKR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:84:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseCR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
                     ^
../app/test-pmd/cmdline_settings.c:86:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseSR4_Full_BIT'
                { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2578/2965] Linking target app/dpdk-test-mldev
[2579/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2580/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[2581/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[2582/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[2583/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[2584/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2585/2965] Linking target app/dpdk-test-pipeline
[2586/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #18:
OS: UB2204-64
Target: x86_64-native-linuxapp-doc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -I/usr/include/libnl3 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2749/2936] Compiling C object app/dpdk-test.p/test_test_alarm.c.o
[2750/2936] Compiling C object app/dpdk-test-security-perf.p/test-security-perf_test_security_perf.c.o
[2751/2936] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[2752/2936] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
[2753/2936] Compiling C object app/dpdk-test-security-perf.p/test_test_security_proto.c.o
[2754/2936] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[2755/2936] Compiling C object app/dpdk-test.p/test_test_argparse.c.o
[2756/2936] Linking target app/dpdk-test-sad
[2757/2936] Compiling C object app/dpdk-test.p/test_virtual_pmd.c.o
ninja: build stopped




*Build Failed #19:
OS: CentOS79-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:8: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10baseT_Half_BIT,
        ^
../app/test-pmd/cmdline_settings.c:50:8: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:8: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_10baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:54:8: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT_Half_BIT,
        ^
../app/test-pmd/cmdline_settings.c:56:8: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_100baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:58:8: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:60:8: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
        ^
../app/test-pmd/cmdline_settings.c:62:8: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:64:8: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:66:8: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:68:8: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:70:8: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:72:8: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:74:8: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:76:8: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
        ^
../app/test-pmd/cmdline_settings.c:78:8: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:80:8: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:82:8: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:84:8: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:86:8: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:88:8: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:90:8: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:92:8: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:94:8: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:96:8: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:98:8: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:100:8: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:102:8: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:104:8: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:106:8: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:108:8: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:110:8: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:112:8: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:114:8: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:116:8: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:118:8: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:120:8: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:122:8: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:124:8: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:126:8: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:128:8: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:130:8: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:132:8: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:134:8: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:136:8: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:138:8: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:140:8: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:142:8: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:144:8: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:146:8: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:148:8: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:150:8: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:152:8: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:154:8: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:156:8: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:158:8: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:160:8: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:162:8: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
   { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
        ^
../app/test-pmd/cmdline_settings.c:198:21: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
                     ^
../app/test-pmd/cmdline_settings.c:198:3: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
   if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
   ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:200:22: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
                      ^
../app/test-pmd/cmdline_settings.c:200:4: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
    ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:204:4: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
    if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
    ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:211:21: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
                     ^
../app/test-pmd/cmdline_settings.c:211:3: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
   if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
   ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:217:21: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
                     ^
../app/test-pmd/cmdline_settings.c:217:3: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
   if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
   ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:221:21: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
                     ^
../app/test-pmd/cmdline_settings.c:221:3: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
   if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
   ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:225:21: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
   if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
                     ^
../app/test-pmd/cmdline_settings.c:225:3: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
   if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
   ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list [-Werror]
 dump_supported(const struct rte_link_settings *link_settings)
                             ^
../app/test-pmd/cmdline_settings.c:236:29: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:239:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:239:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:240:7: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_TP_BIT))
       ^
../app/test-pmd/cmdline_settings.c:240:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:240:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_TP_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:242:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:242:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:242:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:243:7: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_AUI_BIT))
       ^
../app/test-pmd/cmdline_settings.c:243:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:243:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_AUI_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:245:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:245:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:245:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:246:7: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_BNC_BIT))
       ^
../app/test-pmd/cmdline_settings.c:246:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:246:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_BNC_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:248:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:248:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:248:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:249:7: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_MII_BIT))
       ^
../app/test-pmd/cmdline_settings.c:249:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:249:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_MII_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:251:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:251:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:251:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:252:7: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_FIBRE_BIT))
       ^
../app/test-pmd/cmdline_settings.c:252:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:252:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_FIBRE_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:254:27: error: dereferencing pointer to incomplete type
  if (get_bit(link_settings->link_modes.supported,
                           ^
../app/test-pmd/cmdline_settings.c:254:27: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:254:39: error: request for member ‘supported’ in something not a structure or union
  if (get_bit(link_settings->link_modes.supported,
                                       ^
../app/test-pmd/cmdline_settings.c:255:7: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
       RTE_LINK_MODE_Backplane_BIT))
       ^
../app/test-pmd/cmdline_settings.c:255:7: error: passing argument 1 of ‘get_bit’ from incompatible pointer type [-Werror]
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:255:7: error: passing argument 2 of ‘get_bit’ makes integer from pointer without a cast [-Werror]
       RTE_LINK_MODE_Backplane_BIT))
       ^
In file included from ../app/test-pmd/cmdline_settings.c:12:0:
../app/test-pmd/testpmd.h:1190:5: note: expected ‘uint32_t’ but argument is of type ‘const struct <anonymous> *’
 int get_bit(const uint32_t *ptr, uint32_t pos);
     ^
../app/test-pmd/cmdline_settings.c:260:23: error: dereferencing pointer to incomplete type
          link_settings->link_modes.supported, 0);
                       ^
../app/test-pmd/cmdline_settings.c:260:23: error: request for member ‘link_modes’ in something not a structure or union
../app/test-pmd/cmdline_settings.c:260:35: error: request for member ‘supported’ in something not a structure or union
          link_settings->link_modes.supported, 0);
                                   ^
../app/test-pmd/cmdline_settings.c:260:10: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror]
          link_settings->link_modes.supported, 0);
          ^
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^
../app/test-pmd/cmdline_settings.c:275:2: error: passing argument 3 of ‘memset’ makes integer from pointer without a cast [-Werror]
  memset(&link_settings, 0x00, sizeof(link_settings));
  ^
In file included from ../lib/eal/include/rte_uuid.h:19:0,
                 from ../lib/eal/include/rte_eal.h:20,
                 from ../lib/eal/include/rte_lcore.h:18,
                 from ../lib/eal/include/generic/rte_spinlock.h:20,
                 from ../lib/eal/x86/include/rte_spinlock.h:12,
                 from ../lib/eal/include/generic/rte_power_intrinsics.h:10,
                 from ../lib/eal/x86/include/rte_power_intrinsics.h:14,
                 from ../lib/ethdev/rte_ethdev.h:173,
                 from ../app/test-pmd/cmdline_settings.c:7:
/usr/include/string.h:62:14: note: expected ‘size_t’ but argument is of type ‘const struct <anonymous> *’
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
              ^
../app/test-pmd/cmdline_settings.c:276:2: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’ [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
  ^
../app/test-pmd/cmdline_settings.c:276:2: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:287:2: error: passing argument 1 of ‘dump_supported’ from incompatible pointer type [-Werror]
  dump_supported(&link_settings);
  ^
../app/test-pmd/cmdline_settings.c:236:1: note: expected ‘const struct rte_link_settings *’ but argument is of type ‘const struct <anonymous> (*)[1]’
 dump_supported(const struct rte_link_settings *link_settings)
 ^
../app/test-pmd/cmdline_settings.c:289:17: error: request for member ‘link_modes’ in something not a structure or union
    link_settings.link_modes.advertising, 0);
                 ^
../app/test-pmd/cmdline_settings.c:289:28: error: request for member ‘advertising’ in something not a structure or union
    link_settings.link_modes.advertising, 0);
                            ^
../app/test-pmd/cmdline_settings.c:289:4: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror]
    link_settings.link_modes.advertising, 0);
    ^
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^
In file included from ../lib/log/rte_log.h:26:0,
                 from ../lib/eal/include/rte_debug.h:17,
                 from ../lib/eal/include/rte_bitops.h:20,
                 from ../lib/ethdev/rte_cman.h:12,
                 from ../lib/ethdev/rte_ethdev.h:163,
                 from ../app/test-pmd/cmdline_settings.c:7:
../app/test-pmd/cmdline_settings.c:292:52: error: request for member ‘link_modes’ in something not a structure or union
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                    ^
../lib/eal/include/rte_common.h:719:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
../app/test-pmd/cmdline_settings.c:292:63: error: request for member ‘lp_advertising’ in something not a structure or union
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                               ^
../lib/eal/include/rte_common.h:719:29: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                             ^
../app/test-pmd/cmdline_settings.c:292:52: error: request for member ‘link_modes’ in something not a structure or union
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                    ^
../lib/eal/include/rte_common.h:719:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
../app/test-pmd/cmdline_settings.c:292:63: error: request for member ‘lp_advertising’ in something not a structure or union
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                                                               ^
../lib/eal/include/rte_common.h:719:43: note: in definition of macro ‘RTE_DIM’
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                           ^
../lib/eal/include/rte_common.h:719:32: error: invalid operands to binary / (have ‘const struct <anonymous> *’ and ‘long unsigned int’)
 #define RTE_DIM(a) (sizeof (a) / sizeof ((a)[0]))
                                ^
../app/test-pmd/cmdline_settings.c:292:31: note: in expansion of macro ‘RTE_DIM’
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                               ^
../app/test-pmd/cmdline_settings.c:292:29: error: comparison between pointer and integer [-Werror]
  for (uint32_t idx = 0; idx < RTE_DIM(link_settings.link_modes.lp_advertising); idx++) {
                             ^
../app/test-pmd/cmdline_settings.c:293:20: error: request for member ‘link_modes’ in something not a structure or union
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
                    ^
../app/test-pmd/cmdline_settings.c:293:31: error: request for member ‘lp_advertising’ in something not a structure or union
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
                               ^
../app/test-pmd/cmdline_settings.c:293:52: error: invalid operands to binary != (have ‘const struct <anonymous>’ and ‘int’)
   if (link_settings.link_modes.lp_advertising[idx] != 0) {
                                                    ^
../app/test-pmd/cmdline_settings.c:302:18: error: request for member ‘link_modes’ in something not a structure or union
     link_settings.link_modes.lp_advertising, 0);
                  ^
../app/test-pmd/cmdline_settings.c:302:29: error: request for member ‘lp_advertising’ in something not a structure or union
     link_settings.link_modes.lp_advertising, 0);
                             ^
../app/test-pmd/cmdline_settings.c:302:5: error: passing argument 3 of ‘dump_link_caps’ from incompatible pointer type [-Werror]
     link_settings.link_modes.lp_advertising, 0);
     ^
../app/test-pmd/cmdline_settings.c:42:13: note: expected ‘const uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 static void dump_link_caps(const char *prefix, const char *an_prefix,
             ^
../app/test-pmd/cmdline_settings.c:306:19: error: request for member ‘base’ in something not a structure or union
  if (link_settings.base.link.link_speed == 0
                   ^
../app/test-pmd/cmdline_settings.c:306:24: error: request for member ‘link’ in something not a structure or union
  if (link_settings.base.link.link_speed == 0
                        ^
../app/test-pmd/cmdline_settings.c:306:29: error: request for member ‘link_speed’ in something not a structure or union
  if (link_settings.base.link.link_speed == 0
                             ^
../app/test-pmd/cmdline_settings.c:307:22: error: request for member ‘base’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                      ^
../app/test-pmd/cmdline_settings.c:307:27: error: request for member ‘link’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                           ^
../app/test-pmd/cmdline_settings.c:307:32: error: request for member ‘link_speed’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                                ^
../app/test-pmd/cmdline_settings.c:307:44: error: comparison between pointer and integer [-Werror]
      || link_settings.base.link.link_speed == (uint16_t)(-1)
                                            ^
../app/test-pmd/cmdline_settings.c:308:22: error: request for member ‘base’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                      ^
../app/test-pmd/cmdline_settings.c:308:27: error: request for member ‘link’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                           ^
../app/test-pmd/cmdline_settings.c:308:32: error: request for member ‘link_speed’ in something not a structure or union
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                                ^
../app/test-pmd/cmdline_settings.c:308:44: error: comparison between pointer and integer [-Werror]
      || link_settings.base.link.link_speed == (uint32_t)(-1))
                                            ^
../app/test-pmd/cmdline_settings.c:311:44: error: request for member ‘base’ in something not a structure or union
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                            ^
../app/test-pmd/cmdline_settings.c:311:49: error: request for member ‘link’ in something not a structure or union
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                                 ^
../app/test-pmd/cmdline_settings.c:311:54: error: request for member ‘link_speed’ in something not a structure or union
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
                                                      ^
../app/test-pmd/cmdline_settings.c:311:3: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "%uMb/s\n", link_settings.base.link.link_speed);
   ^
../app/test-pmd/cmdline_settings.c:314:23: error: request for member ‘base’ in something not a structure or union
  switch (link_settings.base.link.link_duplex) {
                       ^
../app/test-pmd/cmdline_settings.c:314:28: error: request for member ‘link’ in something not a structure or union
  switch (link_settings.base.link.link_duplex) {
                            ^
../app/test-pmd/cmdline_settings.c:314:33: error: request for member ‘link_duplex’ in something not a structure or union
  switch (link_settings.base.link.link_duplex) {
                                 ^
../app/test-pmd/cmdline_settings.c:322:51: error: request for member ‘base’ in something not a structure or union
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                   ^
../app/test-pmd/cmdline_settings.c:322:56: error: request for member ‘link’ in something not a structure or union
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                        ^
../app/test-pmd/cmdline_settings.c:322:61: error: request for member ‘link_duplex’ in something not a structure or union
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
                                                             ^
../app/test-pmd/cmdline_settings.c:322:3: error: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.link.link_duplex);
   ^
../app/test-pmd/cmdline_settings.c:327:23: error: request for member ‘base’ in something not a structure or union
  switch (link_settings.base.port) {
                       ^
../app/test-pmd/cmdline_settings.c:327:28: error: request for member ‘port’ in something not a structure or union
  switch (link_settings.base.port) {
                            ^
../app/test-pmd/cmdline_settings.c:328:7: error: ‘RTE_PORT_TP’ undeclared (first use in this function)
  case RTE_PORT_TP:
       ^
../app/test-pmd/cmdline_settings.c:331:7: error: ‘RTE_PORT_AUI’ undeclared (first use in this function)
  case RTE_PORT_AUI:
       ^
../app/test-pmd/cmdline_settings.c:334:7: error: ‘RTE_PORT_BNC’ undeclared (first use in this function)
  case RTE_PORT_BNC:
       ^
../app/test-pmd/cmdline_settings.c:337:7: error: ‘RTE_PORT_MII’ undeclared (first use in this function)
  case RTE_PORT_MII:
       ^
../app/test-pmd/cmdline_settings.c:340:7: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function)
  case RTE_PORT_FIBRE:
       ^
../app/test-pmd/cmdline_settings.c:343:7: error: ‘RTE_PORT_DA’ undeclared (first use in this function)
  case RTE_PORT_DA:
       ^
../app/test-pmd/cmdline_settings.c:346:7: error: ‘RTE_PORT_NONE’ undeclared (first use in this function)
  case RTE_PORT_NONE:
       ^
../app/test-pmd/cmdline_settings.c:349:7: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function)
  case RTE_PORT_OTHER:
       ^
../app/test-pmd/cmdline_settings.c:353:51: error: request for member ‘base’ in something not a structure or union
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
                                                   ^
../app/test-pmd/cmdline_settings.c:353:56: error: request for member ‘port’ in something not a structure or union
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
                                                        ^
../app/test-pmd/cmdline_settings.c:353:3: error: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
   fprintf(stdout, "Unknown! (%i)\n", link_settings.base.port);
   ^
../app/test-pmd/cmdline_settings.c:357:53: error: request for member ‘base’ in something not a structure or union
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
                                                     ^
../app/test-pmd/cmdline_settings.c:357:58: error: request for member ‘phy_address’ in something not a structure or union
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
                                                          ^
../app/test-pmd/cmdline_settings.c:357:2: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘const struct <anonymous> *’ [-Werror=format=]
  fprintf(stdout, "       PHYAD: %d\n", link_settings.base.phy_address);
  ^
../app/test-pmd/cmdline_settings.c:360:17: error: request for member ‘base’ in something not a structure or union
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                 ^
../app/test-pmd/cmdline_settings.c:360:22: error: request for member ‘link’ in something not a structure or union
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                      ^
../app/test-pmd/cmdline_settings.c:360:27: error: request for member ‘link_autoneg’ in something not a structure or union
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                           ^
../app/test-pmd/cmdline_settings.c:360:44: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
   (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
                                            ^
../app/test-pmd/cmdline_settings.c:363:19: error: request for member ‘base’ in something not a structure or union
  if (link_settings.base.port == RTE_PORT_TP) {
                   ^
../app/test-pmd/cmdline_settings.c:363:24: error: request for member ‘port’ in something not a structure or union
  if (link_settings.base.port == RTE_PORT_TP) {
                        ^
../app/test-pmd/cmdline_settings.c:365:20: error: request for member ‘base’ in something not a structure or union
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                    ^
../app/test-pmd/cmdline_settings.c:365:25: error: request for member ‘eth_tp_mdix_ctrl’ in something not a structure or union
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                         ^
../app/test-pmd/cmdline_settings.c:365:46: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
   if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
                                              ^
../app/test-pmd/cmdline_settings.c:367:27: error: request for member ‘base’ in something not a structure or union
   } else if (link_settings.base.eth_tp_mdix_ctrl
                           ^
../app/test-pmd/cmdline_settings.c:367:32: error: request for member ‘eth_tp_mdix_ctrl’ in something not a structure or union
   } else if (link_settings.base.eth_tp_mdix_ctrl
                                ^
../app/test-pmd/cmdline_settings.c:368:10: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
       == RTE_TP_MDI_X) {
          ^
../app/test-pmd/cmdline_settings.c:371:25: error: request for member ‘base’ in something not a structure or union
    switch (link_settings.base.eth_tp_mdix) {
                         ^
../app/test-pmd/cmdline_settings.c:371:30: error: request for member ‘eth_tp_mdix’ in something not a structure or union
    switch (link_settings.base.eth_tp_mdix) {
                              ^
../app/test-pmd/cmdline_settings.c:382:21: error: request for member ‘base’ in something not a structure or union
    if (link_settings.base.eth_tp_mdix_ctrl
                     ^
../app/test-pmd/cmdline_settings.c:382:26: error: request for member ‘eth_tp_mdix_ctrl’ in something not a structure or union
    if (link_settings.base.eth_tp_mdix_ctrl
                          ^
../app/test-pmd/cmdline_settings.c:383:11: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function)
        == RTE_TP_MDI_AUTO)
           ^
../app/test-pmd/cmdline_settings.c:272:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:2: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
  ^
../app/test-pmd/cmdline_settings.c:407:2: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:27: error: storage size of ‘link_settings’ isn’t known
  struct rte_link_settings link_settings;
                           ^
../app/test-pmd/cmdline_settings.c:484:5: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
     __RTE_LINK_MODE_MASK_NBITS,
     ^
../app/test-pmd/cmdline_settings.c:485:18: error: request for member ‘link_modes’ in something not a structure or union
     link_settings.link_modes.advertising)) {
                  ^
../app/test-pmd/cmdline_settings.c:485:29: error: request for member ‘advertising’ in something not a structure or union
     link_settings.link_modes.advertising)) {
                             ^
../app/test-pmd/cmdline_settings.c:485:5: error: passing argument 2 of ‘parse_hex_u32_bitmap’ makes integer from pointer without a cast [-Werror]
     link_settings.link_modes.advertising)) {
     ^
../app/test-pmd/cmdline_settings.c:404:12: note: expected ‘unsigned int’ but argument is of type ‘const struct <anonymous> *’
 static int parse_hex_u32_bitmap(const char *s,
            ^
../app/test-pmd/cmdline_settings.c:485:5: error: passing argument 3 of ‘parse_hex_u32_bitmap’ from incompatible pointer type [-Werror]
     link_settings.link_modes.advertising)) {
     ^
../app/test-pmd/cmdline_settings.c:404:12: note: expected ‘uint32_t *’ but argument is of type ‘const struct <anonymous> *’
 static int parse_hex_u32_bitmap(const char *s,
            ^
../app/test-pmd/cmdline_settings.c:491:15: error: request for member ‘base’ in something not a structure or union
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
               ^
../app/test-pmd/cmdline_settings.c:491:20: error: request for member ‘link’ in something not a structure or union
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                    ^
../app/test-pmd/cmdline_settings.c:491:25: error: request for member ‘link_autoneg’ in something not a structure or union
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                         ^
../app/test-pmd/cmdline_settings.c:491:41: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
                                         ^
../app/test-pmd/cmdline_settings.c:491:2: error: statement with no effect [-Werror=unused-value]
  link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
  ^
../app/test-pmd/cmdline_settings.c:493:2: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’ [-Werror=implicit-function-declaration]
  ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
  ^
../app/test-pmd/cmdline_settings.c:493:2: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:27: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  struct rte_link_settings link_settings;
                           ^
cc1: all warnings being treated as errors
[2488/2907] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_cman.c.o
[2489/2907] Compiling C object app/dpdk-test-pipeline.p/test-pipeline_pipeline_hash.c.o
[2490/2907] Compiling C object app/dpdk-test-bbdev.p/test-bbdev_test_bbdev_perf.c.o
[2491/2907] Compiling C object app/dpdk-test-mldev.p/test-mldev_test_inference_common.c.o
[2492/2907] Generating examples/vdpa/commands_hdr with a custom command (wrapped by meson to capture output)
[2493/2907] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_tm.c.o
[2494/2907] Compiling C object app/dpdk-test-eventdev.p/test-eventdev_test_perf_common.c.o
[2495/2907] Compiling C object drivers/libtmp_rte_crypto_cnxk.a.p/crypto_cnxk_cn10k_cryptodev_ops.c.o
[2496/2907] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
ninja: build stopped




*Build Failed #20:
OS: RHEL92-64Rt
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2545/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_bpf_cmd.c.o
[2546/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_bonding_bonding_testpmd.c.o
[2547/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2548/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2549/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2550/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[2551/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2552/2918] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[2553/2918] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped




*Build Failed #21:
OS: UB2310-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2606/2965] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[2607/2965] Compiling C object app/dpdk-test.p/test_test_alarm.c.o
[2608/2965] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[2609/2965] Compiling C object app/dpdk-test-security-perf.p/test_test_security_proto.c.o
[2610/2965] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
[2611/2965] Compiling C object app/dpdk-test.p/test_test_bitratestats.c.o
[2612/2965] Compiling C object app/dpdk-test.p/test_packet_burst_generator.c.o
[2613/2965] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
[2614/2965] Compiling C object app/dpdk-test.p/test_test_bpf.c.o
ninja: build stopped




*Build Failed #22:
OS: FC39-64
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2754/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2755/3121] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[2756/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
[2757/3121] Compiling C object app/dpdk-test-security-perf.p/test-security-perf_test_security_perf.c.o
[2758/3121] Compiling C object app/dpdk-testpmd.p/.._drivers_net_mlx5_mlx5_testpmd.c.o
[2759/3121] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ixgbe_ixgbe_testpmd.c.o
[2760/3121] Compiling C object app/dpdk-test-regex.p/test-regex_main.c.o
[2761/3121] Compiling C object app/dpdk-test-sad.p/test-sad_main.c.o
[2762/3121] Compiling C object app/dpdk-test-security-perf.p/test_test_cryptodev_security_ipsec.c.o
ninja: build stopped




*Build Failed #23:
OS: FC39-64
Target: x86_64-native-linuxapp-clang
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -Idrivers/net/mlx5 -I../drivers/net/mlx5 -Idrivers/net/mlx5/linux -I../drivers/net/mlx5/linux -Idrivers/net/mlx5/hws -I../drivers/net/mlx5/hws -Idrivers/common/mlx5 -I../drivers/common/mlx5 -Idrivers/common/mlx5/linux -I../drivers/common/mlx5/linux -Idrivers/bus/auxiliary -I../drivers/bus/auxiliary -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c:50:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Half_BIT'
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:52:8: error: use of undeclared identifier 'RTE_LINK_MODE_10baseT_Full_BIT'
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:54:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Half_BIT'
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:56:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT_Full_BIT'
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:58:8: error: use of undeclared identifier 'RTE_LINK_MODE_100baseT1_Full_BIT'
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:60:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Half_BIT'
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:62:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT_Full_BIT'
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:64:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseT1_Full_BIT'
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:66:8: error: use of undeclared identifier 'RTE_LINK_MODE_1000baseKX_Full_BIT'
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:68:8: error: use of undeclared identifier 'RTE_LINK_MODE_2500baseX_Full_BIT'
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:70:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseT_Full_BIT'
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:72:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKX4_Full_BIT'
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:74:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseKR_Full_BIT'
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:76:8: error: use of undeclared identifier 'RTE_LINK_MODE_10000baseR_FEC_BIT'
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:78:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseMLD2_Full_BIT'
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:80:8: error: use of undeclared identifier 'RTE_LINK_MODE_20000baseKR2_Full_BIT'
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:82:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseKR4_Full_BIT'
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:84:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseCR4_Full_BIT'
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^
../app/test-pmd/cmdline_settings.c:86:8: error: use of undeclared identifier 'RTE_LINK_MODE_40000baseSR4_Full_BIT'
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2733/3121] Linking target app/dpdk-test-pipeline
[2734/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline.c.o
[2735/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_flowgen.c.o
[2736/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2737/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_csumonly.c.o
[2738/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_iofwd.c.o
[2739/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_icmpecho.c.o
[2740/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_ieee1588fwd.c.o
[2741/3121] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
ninja: build stopped




*Build Failed #24:
OS: UB2204-64Rt
Target: x86_64-native-linuxapp-gcc
FAILED: app/dpdk-testpmd.p/test-pmd_cmdline_settings.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/log -I../lib/log -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/security -I../lib/security -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 -Ilib/hash -I../lib/hash -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Idrivers/net/ixgbe -I../drivers/net/ixgbe -Idrivers/net/ixgbe/base -I../drivers/net/ixgbe/base -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 -Ilib/dmadev -I../lib/dmadev -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/iavf -I../drivers/net/iavf -Idrivers/common/iavf -I../drivers/common/iavf -Idrivers/net/ice -I../drivers/net/ice -Idrivers/net/ice/base -I../drivers/net/ice/base -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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 -march=native -mrtm -DALLOW_EXPERIMENTAL_API -Wno-deprecated-declarations -MD -MQ app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -MF app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o.d -o app/dpdk-testpmd.p/test-pmd_cmdline_settings.c.o -c ../app/test-pmd/cmdline_settings.c
../app/test-pmd/cmdline_settings.c: In function ‘dump_link_caps’:
../app/test-pmd/cmdline_settings.c:50:22: error: ‘RTE_LINK_MODE_10baseT_Half_BIT’ undeclared (first use in this function)
   50 |                 { 0, RTE_LINK_MODE_10baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:50:22: note: each undeclared identifier is reported only once for each function it appears in
../app/test-pmd/cmdline_settings.c:52:22: error: ‘RTE_LINK_MODE_10baseT_Full_BIT’ undeclared (first use in this function)
   52 |                 { 1, RTE_LINK_MODE_10baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:54:22: error: ‘RTE_LINK_MODE_100baseT_Half_BIT’ undeclared (first use in this function)
   54 |                 { 0, RTE_LINK_MODE_100baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:56:22: error: ‘RTE_LINK_MODE_100baseT_Full_BIT’ undeclared (first use in this function)
   56 |                 { 1, RTE_LINK_MODE_100baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:58:22: error: ‘RTE_LINK_MODE_100baseT1_Full_BIT’ undeclared (first use in this function)
   58 |                 { 0, RTE_LINK_MODE_100baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:60:22: error: ‘RTE_LINK_MODE_1000baseT_Half_BIT’ undeclared (first use in this function)
   60 |                 { 0, RTE_LINK_MODE_1000baseT_Half_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:62:22: error: ‘RTE_LINK_MODE_1000baseT_Full_BIT’ undeclared (first use in this function)
   62 |                 { 1, RTE_LINK_MODE_1000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:64:22: error: ‘RTE_LINK_MODE_1000baseT1_Full_BIT’ undeclared (first use in this function)
   64 |                 { 0, RTE_LINK_MODE_1000baseT1_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:66:22: error: ‘RTE_LINK_MODE_1000baseKX_Full_BIT’ undeclared (first use in this function)
   66 |                 { 0, RTE_LINK_MODE_1000baseKX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:68:22: error: ‘RTE_LINK_MODE_2500baseX_Full_BIT’ undeclared (first use in this function)
   68 |                 { 0, RTE_LINK_MODE_2500baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:70:22: error: ‘RTE_LINK_MODE_10000baseT_Full_BIT’ undeclared (first use in this function)
   70 |                 { 0, RTE_LINK_MODE_10000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:72:22: error: ‘RTE_LINK_MODE_10000baseKX4_Full_BIT’ undeclared (first use in this function)
   72 |                 { 0, RTE_LINK_MODE_10000baseKX4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:74:22: error: ‘RTE_LINK_MODE_10000baseKR_Full_BIT’ undeclared (first use in this function)
   74 |                 { 0, RTE_LINK_MODE_10000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:76:22: error: ‘RTE_LINK_MODE_10000baseR_FEC_BIT’ undeclared (first use in this function)
   76 |                 { 0, RTE_LINK_MODE_10000baseR_FEC_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:78:22: error: ‘RTE_LINK_MODE_20000baseMLD2_Full_BIT’ undeclared (first use in this function)
   78 |                 { 0, RTE_LINK_MODE_20000baseMLD2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:80:22: error: ‘RTE_LINK_MODE_20000baseKR2_Full_BIT’ undeclared (first use in this function)
   80 |                 { 0, RTE_LINK_MODE_20000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:82:22: error: ‘RTE_LINK_MODE_40000baseKR4_Full_BIT’ undeclared (first use in this function)
   82 |                 { 0, RTE_LINK_MODE_40000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:84:22: error: ‘RTE_LINK_MODE_40000baseCR4_Full_BIT’ undeclared (first use in this function)
   84 |                 { 0, RTE_LINK_MODE_40000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:86:22: error: ‘RTE_LINK_MODE_40000baseSR4_Full_BIT’ undeclared (first use in this function)
   86 |                 { 0, RTE_LINK_MODE_40000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:88:22: error: ‘RTE_LINK_MODE_40000baseLR4_Full_BIT’ undeclared (first use in this function)
   88 |                 { 0, RTE_LINK_MODE_40000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:90:22: error: ‘RTE_LINK_MODE_56000baseKR4_Full_BIT’ undeclared (first use in this function)
   90 |                 { 0, RTE_LINK_MODE_56000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:92:22: error: ‘RTE_LINK_MODE_56000baseCR4_Full_BIT’ undeclared (first use in this function)
   92 |                 { 0, RTE_LINK_MODE_56000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:94:22: error: ‘RTE_LINK_MODE_56000baseSR4_Full_BIT’ undeclared (first use in this function)
   94 |                 { 0, RTE_LINK_MODE_56000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:96:22: error: ‘RTE_LINK_MODE_56000baseLR4_Full_BIT’ undeclared (first use in this function)
   96 |                 { 0, RTE_LINK_MODE_56000baseLR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:98:22: error: ‘RTE_LINK_MODE_25000baseCR_Full_BIT’ undeclared (first use in this function)
   98 |                 { 0, RTE_LINK_MODE_25000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:100:22: error: ‘RTE_LINK_MODE_25000baseKR_Full_BIT’ undeclared (first use in this function)
  100 |                 { 0, RTE_LINK_MODE_25000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:102:22: error: ‘RTE_LINK_MODE_25000baseSR_Full_BIT’ undeclared (first use in this function)
  102 |                 { 0, RTE_LINK_MODE_25000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:104:22: error: ‘RTE_LINK_MODE_50000baseCR2_Full_BIT’ undeclared (first use in this function)
  104 |                 { 0, RTE_LINK_MODE_50000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:106:22: error: ‘RTE_LINK_MODE_50000baseKR2_Full_BIT’ undeclared (first use in this function)
  106 |                 { 0, RTE_LINK_MODE_50000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:108:22: error: ‘RTE_LINK_MODE_100000baseKR4_Full_BIT’ undeclared (first use in this function)
  108 |                 { 0, RTE_LINK_MODE_100000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:110:22: error: ‘RTE_LINK_MODE_100000baseSR4_Full_BIT’ undeclared (first use in this function)
  110 |                 { 0, RTE_LINK_MODE_100000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:112:22: error: ‘RTE_LINK_MODE_100000baseCR4_Full_BIT’ undeclared (first use in this function)
  112 |                 { 0, RTE_LINK_MODE_100000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:114:22: error: ‘RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT’ undeclared (first use in this function)
  114 |                 { 0, RTE_LINK_MODE_100000baseLR4_ER4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:116:22: error: ‘RTE_LINK_MODE_50000baseSR2_Full_BIT’ undeclared (first use in this function)
  116 |                 { 0, RTE_LINK_MODE_50000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:118:22: error: ‘RTE_LINK_MODE_1000baseX_Full_BIT’ undeclared (first use in this function)
  118 |                 { 0, RTE_LINK_MODE_1000baseX_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:120:22: error: ‘RTE_LINK_MODE_10000baseCR_Full_BIT’ undeclared (first use in this function)
  120 |                 { 0, RTE_LINK_MODE_10000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:122:22: error: ‘RTE_LINK_MODE_10000baseSR_Full_BIT’ undeclared (first use in this function)
  122 |                 { 0, RTE_LINK_MODE_10000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:124:22: error: ‘RTE_LINK_MODE_10000baseLR_Full_BIT’ undeclared (first use in this function)
  124 |                 { 0, RTE_LINK_MODE_10000baseLR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:126:22: error: ‘RTE_LINK_MODE_10000baseLRM_Full_BIT’ undeclared (first use in this function)
  126 |                 { 0, RTE_LINK_MODE_10000baseLRM_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:128:22: error: ‘RTE_LINK_MODE_10000baseER_Full_BIT’ undeclared (first use in this function)
  128 |                 { 0, RTE_LINK_MODE_10000baseER_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:130:22: error: ‘RTE_LINK_MODE_2500baseT_Full_BIT’ undeclared (first use in this function)
  130 |                 { 0, RTE_LINK_MODE_2500baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:132:22: error: ‘RTE_LINK_MODE_5000baseT_Full_BIT’ undeclared (first use in this function)
  132 |                 { 0, RTE_LINK_MODE_5000baseT_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:134:22: error: ‘RTE_LINK_MODE_50000baseKR_Full_BIT’ undeclared (first use in this function)
  134 |                 { 0, RTE_LINK_MODE_50000baseKR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:136:22: error: ‘RTE_LINK_MODE_50000baseSR_Full_BIT’ undeclared (first use in this function)
  136 |                 { 0, RTE_LINK_MODE_50000baseSR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:138:22: error: ‘RTE_LINK_MODE_50000baseCR_Full_BIT’ undeclared (first use in this function)
  138 |                 { 0, RTE_LINK_MODE_50000baseCR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:140:22: error: ‘RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT’ undeclared (first use in this function)
  140 |                 { 0, RTE_LINK_MODE_50000baseLR_ER_FR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:142:22: error: ‘RTE_LINK_MODE_50000baseDR_Full_BIT’ undeclared (first use in this function)
  142 |                 { 0, RTE_LINK_MODE_50000baseDR_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:144:22: error: ‘RTE_LINK_MODE_100000baseKR2_Full_BIT’ undeclared (first use in this function)
  144 |                 { 0, RTE_LINK_MODE_100000baseKR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:146:22: error: ‘RTE_LINK_MODE_100000baseSR2_Full_BIT’ undeclared (first use in this function)
  146 |                 { 0, RTE_LINK_MODE_100000baseSR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:148:22: error: ‘RTE_LINK_MODE_100000baseCR2_Full_BIT’ undeclared (first use in this function)
  148 |                 { 0, RTE_LINK_MODE_100000baseCR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:150:22: error: ‘RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT’ undeclared (first use in this function)
  150 |                 { 0, RTE_LINK_MODE_100000baseLR2_ER2_FR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:152:22: error: ‘RTE_LINK_MODE_100000baseDR2_Full_BIT’ undeclared (first use in this function)
  152 |                 { 0, RTE_LINK_MODE_100000baseDR2_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:154:22: error: ‘RTE_LINK_MODE_200000baseKR4_Full_BIT’ undeclared (first use in this function)
  154 |                 { 0, RTE_LINK_MODE_200000baseKR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:156:22: error: ‘RTE_LINK_MODE_200000baseSR4_Full_BIT’ undeclared (first use in this function)
  156 |                 { 0, RTE_LINK_MODE_200000baseSR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:158:22: error: ‘RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT’ undeclared (first use in this function)
  158 |                 { 0, RTE_LINK_MODE_200000baseLR4_ER4_FR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:160:22: error: ‘RTE_LINK_MODE_200000baseDR4_Full_BIT’ undeclared (first use in this function)
  160 |                 { 0, RTE_LINK_MODE_200000baseDR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:162:22: error: ‘RTE_LINK_MODE_200000baseCR4_Full_BIT’ undeclared (first use in this function)
  162 |                 { 0, RTE_LINK_MODE_200000baseCR4_Full_BIT,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:198:35: error: ‘RTE_LINK_MODE_Pause_BIT’ undeclared (first use in this function)
  198 |                 if (get_bit(mask, RTE_LINK_MODE_Pause_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:200:43: error: ‘RTE_LINK_MODE_Asym_Pause_BIT’ undeclared (first use in this function)
  200 |                         if (get_bit(mask, RTE_LINK_MODE_Asym_Pause_BIT))
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:211:35: error: ‘RTE_LINK_MODE_Autoneg_BIT’ undeclared (first use in this function)
  211 |                 if (get_bit(mask, RTE_LINK_MODE_Autoneg_BIT))
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:217:35: error: ‘RTE_LINK_MODE_FEC_NONE_BIT’ undeclared (first use in this function)
  217 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_NONE_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:221:35: error: ‘RTE_LINK_MODE_FEC_BASER_BIT’ undeclared (first use in this function)
  221 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_BASER_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:225:35: error: ‘RTE_LINK_MODE_FEC_RS_BIT’ undeclared (first use in this function)
  225 |                 if (get_bit(mask, RTE_LINK_MODE_FEC_RS_BIT)) {
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: At top level:
../app/test-pmd/cmdline_settings.c:236:29: error: ‘struct rte_link_settings’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
  236 | dump_supported(const struct rte_link_settings *link_settings)
      |                             ^~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘dump_supported’:
../app/test-pmd/cmdline_settings.c:239:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  239 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:240:21: error: ‘RTE_LINK_MODE_TP_BIT’ undeclared (first use in this function)
  240 |                     RTE_LINK_MODE_TP_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:242:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  242 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:243:21: error: ‘RTE_LINK_MODE_AUI_BIT’ undeclared (first use in this function)
  243 |                     RTE_LINK_MODE_AUI_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:245:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  245 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:246:21: error: ‘RTE_LINK_MODE_BNC_BIT’ undeclared (first use in this function)
  246 |                     RTE_LINK_MODE_BNC_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:248:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  248 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:249:21: error: ‘RTE_LINK_MODE_MII_BIT’ undeclared (first use in this function)
  249 |                     RTE_LINK_MODE_MII_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:251:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  251 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:252:21: error: ‘RTE_LINK_MODE_FIBRE_BIT’ undeclared (first use in this function)
  252 |                     RTE_LINK_MODE_FIBRE_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:254:34: error: invalid use of undefined type ‘const struct rte_link_settings’
  254 |         if (get_bit(link_settings->link_modes.supported,
      |                                  ^~
../app/test-pmd/cmdline_settings.c:255:21: error: ‘RTE_LINK_MODE_Backplane_BIT’ undeclared (first use in this function)
  255 |                     RTE_LINK_MODE_Backplane_BIT))
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:260:37: error: invalid use of undefined type ‘const struct rte_link_settings’
  260 |                        link_settings->link_modes.supported, 0);
      |                                     ^~
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_show_parsed’:
../app/test-pmd/cmdline_settings.c:272:34: error: storage size of ‘link_settings’ isn’t known
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:276:15: error: implicit declaration of function ‘rte_eth_dev_get_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  276 |         ret = rte_eth_dev_get_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:276:15: error: nested extern declaration of ‘rte_eth_dev_get_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:328:14: error: ‘RTE_PORT_TP’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  328 |         case RTE_PORT_TP:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:331:14: error: ‘RTE_PORT_AUI’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  331 |         case RTE_PORT_AUI:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:334:14: error: ‘RTE_PORT_BNC’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  334 |         case RTE_PORT_BNC:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:337:14: error: ‘RTE_PORT_MII’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  337 |         case RTE_PORT_MII:
      |              ^~~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:340:14: error: ‘RTE_PORT_FIBRE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  340 |         case RTE_PORT_FIBRE:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:343:14: error: ‘RTE_PORT_DA’ undeclared (first use in this function); did you mean ‘RTE_PORT_ALL’?
  343 |         case RTE_PORT_DA:
      |              ^~~~~~~~~~~
      |              RTE_PORT_ALL
../app/test-pmd/cmdline_settings.c:346:14: error: ‘RTE_PORT_NONE’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  346 |         case RTE_PORT_NONE:
      |              ^~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:349:14: error: ‘RTE_PORT_OTHER’ undeclared (first use in this function); did you mean ‘RTE_PORT_CLOSED’?
  349 |         case RTE_PORT_OTHER:
      |              ^~~~~~~~~~~~~~
      |              RTE_PORT_CLOSED
../app/test-pmd/cmdline_settings.c:360:58: error: ‘RTE_AUTONEG_DISABLE’ undeclared (first use in this function)
  360 |                 (link_settings.base.link.link_autoneg == RTE_AUTONEG_DISABLE) ?
      |                                                          ^~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:365:60: error: ‘RTE_TP_MDI’ undeclared (first use in this function)
  365 |                 if (link_settings.base.eth_tp_mdix_ctrl == RTE_TP_MDI) {
      |                                                            ^~~~~~~~~~
../app/test-pmd/cmdline_settings.c:368:31: error: ‘RTE_TP_MDI_X’ undeclared (first use in this function)
  368 |                            == RTE_TP_MDI_X) {
      |                               ^~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:383:32: error: ‘RTE_TP_MDI_AUTO’ undeclared (first use in this function); did you mean ‘RTE_ETH_FEC_AUTO’?
  383 |                             == RTE_TP_MDI_AUTO)
      |                                ^~~~~~~~~~~~~~~
      |                                RTE_ETH_FEC_AUTO
../app/test-pmd/cmdline_settings.c:272:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  272 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c: In function ‘parse_hex_u32_bitmap’:
../app/test-pmd/cmdline_settings.c:407:37: error: implicit declaration of function ‘RTE_DIV_ROUND_UP’ [-Werror=implicit-function-declaration]
  407 |         const unsigned int nwords = RTE_DIV_ROUND_UP(nbits, 32);
      |                                     ^~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:407:37: error: nested extern declaration of ‘RTE_DIV_ROUND_UP’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c: In function ‘cmd_link_settings_set_advertising_parsed’:
../app/test-pmd/cmdline_settings.c:480:34: error: storage size of ‘link_settings’ isn’t known
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:484:33: error: ‘__RTE_LINK_MODE_MASK_NBITS’ undeclared (first use in this function)
  484 |                                 __RTE_LINK_MODE_MASK_NBITS,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:491:48: error: ‘RTE_AUTONEG_ENABLE’ undeclared (first use in this function)
  491 |         link_settings.base.link.link_autoneg = RTE_AUTONEG_ENABLE;
      |                                                ^~~~~~~~~~~~~~~~~~
../app/test-pmd/cmdline_settings.c:493:15: error: implicit declaration of function ‘rte_eth_dev_set_link_settings’; did you mean ‘rte_eth_dev_set_link_down’? [-Werror=implicit-function-declaration]
  493 |         ret = rte_eth_dev_set_link_settings(res->port_id, &link_settings);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               rte_eth_dev_set_link_down
../app/test-pmd/cmdline_settings.c:493:15: error: nested extern declaration of ‘rte_eth_dev_set_link_settings’ [-Werror=nested-externs]
../app/test-pmd/cmdline_settings.c:480:34: error: unused variable ‘link_settings’ [-Werror=unused-variable]
  480 |         struct rte_link_settings link_settings;
      |                                  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
[2598/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_cmdline_flow.c.o
[2599/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_util.c.o
[2600/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_config.c.o
[2601/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_txonly.c.o
[2602/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_noisy_vnf.c.o
[2603/2969] Compiling C object app/dpdk-testpmd.p/.._drivers_net_i40e_i40e_testpmd.c.o
[2604/2969] Compiling C object app/dpdk-testpmd.p/.._drivers_net_iavf_iavf_testpmd.c.o
[2605/2969] Compiling C object app/dpdk-testpmd.p/.._drivers_net_ice_ice_testpmd.c.o
[2606/2969] Compiling C object app/dpdk-testpmd.p/test-pmd_testpmd.c.o
ninja: build stopped


DPDK STV team

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-17 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04  8:06 compilation|FAILURE| pw(139093) sid(31675) job(PER_PATCH_BUILD11599)dpdk-testpmd: call get/set link settings interface sys_stv

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).