|WARNING| pw158322 [PATCH v2 3/5] bpf: add a test for BPF ELF load

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Oct 31 17:44:52 CET 2025


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

_coding style issues_


WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __packed over __attribute__((packed))
#188: FILE: app/test/bpf/test_bpf_load.c:16:
+} __attribute__((packed));

WARNING:AVOID_EXTERNS: externs should be avoided in .c files
#196: FILE: app/test/bpf/test_bpf_load.c:24:
+extern void dummy_func1(const void *p, uint32_t *v32, uint64_t *v64);

WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __section("func") over __attribute__((section("func")))
#206: FILE: app/test/bpf/test_bpf_load.c:34:
+__attribute__((section("func"), used))

WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __used over __attribute__((used))
#206: FILE: app/test/bpf/test_bpf_load.c:34:
+__attribute__((section("func"), used))

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


More information about the test-report mailing list