|WARNING| pw158303 [PATCH 4/5] bpf: add test for rx and tx filtering

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Oct 30 18:38:15 CET 2025


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/158303

_coding style issues_


WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __section("filter") over __attribute__((section("filter")))
#140: FILE: app/test/bpf/test_bpf_filter.c:19:
+__attribute__((section("filter"), used))

WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __used over __attribute__((used))
#140: FILE: app/test/bpf/test_bpf_filter.c:19:
+__attribute__((section("filter"), used))

WARNING:STATIC_CONST_CHAR_ARRAY: const array should probably be static const
#314: FILE: app/test/test_bpf.c:3556:
+	const char null_dev[] = "net_null_bpf0";

WARNING:STATIC_CONST_CHAR_ARRAY: const array should probably be static const
#388: FILE: app/test/test_bpf.c:3630:
+	const char null_dev[] = "net_null_bpf0";

total: 0 errors, 4 warnings, 345 lines checked
Warning in app/test/bpf/test_bpf_filter.c:
Using compiler attribute directly


More information about the test-report mailing list