<div dir="ltr">Hello, devs!<div>I hope you all are doing well!</div><div><br></div><div>I am currently working on a new patch version for "[PATCH v2] lib/net: add MPLS insert and strip functionality". However, I am facing an error when running the devtools/test-meson-build.sh script. The error is related to unused functions in rte_mpls.h that is causing warnings to be treated as errors, leading to the build failure. Following is the error snippet:</div><div><br></div><div><div><b>[50/3060] Compiling C object lib/librte_net.a.p/net_rte_net.c.o<br>FAILED: lib/librte_net.a.p/net_rte_net.c.o<br>gcc -Ilib/librte_net.a.p -Ilib -I../../lib -Ilib/net -I../../lib/net -I. -I../.. -Iconfig -I../../config -Ilib/eal/include -I../../lib/eal/include -Ilib/eal/linux/include -I../../lib/eal/linux/include -Ilib/eal/x86/include -I../../lib/eal/x86/include -Ilib/eal/common -I../../lib/eal/common -Ilib/eal -I../../lib/eal -Ilib/kvargs -I../../lib/kvargs -Ilib/metrics -I../../lib/metrics -Ilib/telemetry -I../../lib/telemetry -Ilib/mbuf -I../../lib/mbuf -Ilib/mempool -I../../lib/mempool -Ilib/ring -I../../lib/ring -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DCC_X86_64_SSE42_PCLMULQDQ_SUPPORT -DRTE_LOG_DEFAULT_LOGTYPE=<a href="http://lib.net">lib.net</a> -MD -MQ lib/librte_net.a.p/net_rte_net.c.o -MF lib/librte_net.a.p/net_rte_net.c.o.d -o lib/librte_net.a.p/net_rte_net.c.o -c ../../lib/net/rte_net.c<br>In file included from ../../lib/net/rte_net.c:16:0:<br>../../lib/net/rte_mpls.h:61:1: error: ‘rte_mpls_push_over_l2’ defined but not used [-Werror=unused-function]<br> rte_mpls_push_over_l2(struct rte_mbuf **m, const struct rte_mpls_hdr *mp)<br> ^<br>cc1: all warnings being treated as errors<br>[99/3060] Compiling C object lib/librte_vhost.a.p/vhost_virtio_net.c.o<br>ninja: build stopped: subcommand failed.</b><br></div><div><b><br></b></div><div>The same warning leads to the failure of the following checks:</div><div><b><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">ci/github-robot: build</span><br></b></div><div><b><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">ci/iol-x86_64-unit-testing</span><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><br></span></b></div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><b>ci/iol-x86_64-compile-testing</b></span><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">and warning in the following check:</span></div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><b>ci/iol-testing</b></span></div></div><div><br></div><div>Although I have added test cases under app/ in a new file called test_mpls.c and adjusted its setting in meson.build, the problem is still occurring.</div><div>As per my understanding, I need to use these new functions in lib/net/rte_net to remove this warning, but I believe that the tests in the app/ directory should be sufficient. Could you please suggest a workaround to remove this warning?</div><div><br></div><div>I would greatly appreciate any guidance or assistance you can provide.</div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><br></span></div></div>