Skip to contentSkip to conversation

acl: build issue in Neon implementation with GCC 15 in Fedora Rawhide Aarch64

DPDK/other Bug 1678 [email protected] 1 participant 2 messages Mar 19, 2025 – Jun 4, 2025

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1678

Bug ID: 1678
Summary: acl: build issue in Neon implementation with GCC 15 in
Fedora Rawhide Aarch64
Product: DPDK
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: other
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

This was caught in OBS, and can be reproduced with a Fedora Rawhide aarch64 container.

bash-5.2# meson setup build-fedora-aarch64 -Ddisable_drivers=*/* -Denable_libs=acl -Ddeveloper_mode=disabled -Dmachine=default
...
bash-5.2# ninja -C build-fedora-aarch64 lib/librte_acl.a
ninja: Entering directory `build-fedora-aarch64'
[6/7] Compiling C object lib/librte_acl.a.p/acl_acl_run_neon.c.o In file included from ../lib/acl/acl_run_neon.h:7,

                 from ../lib/acl/acl_run_neon.c:5:
In function 'alloc_completion',
    inlined from 'acl_start_next_trie' at ../lib/acl/acl_run.h:140:24,
    inlined from 'search_neon_4.isra' at ../lib/acl/acl_run_neon.h:239:20:
../lib/acl/acl_run.h:93:25: warning: 'cmplt' may be used uninitialized
[-Wmaybe-uninitialized]
   93 |                 if (p[n].count == 0) {
      |                     ~~~~^~~~~~

../lib/acl/acl_run_neon.h: In function 'search_neon_4.isra':
../lib/acl/acl_run_neon.h:230:27: note: 'cmplt' declared here
230 | struct completion cmplt[4];
| ^~~~~
In function 'alloc_completion',

    inlined from 'acl_start_next_trie' at ../lib/acl/acl_run.h:140:24,
    inlined from 'search_neon_4.isra' at ../lib/acl/acl_run_neon.h:239:20:
../lib/acl/acl_run.h:93:25: warning: 'cmplt' may be used uninitialized
[-Wmaybe-uninitialized]
   93 |                 if (p[n].count == 0) {
      |                     ~~~~^~~~~~

../lib/acl/acl_run_neon.h: In function 'search_neon_4.isra':
../lib/acl/acl_run_neon.h:230:27: note: 'cmplt' declared here
230 | struct completion cmplt[4];
| ^~~~~
In function 'alloc_completion',

    inlined from 'acl_start_next_trie' at ../lib/acl/acl_run.h:140:24,
    inlined from 'search_neon_4.isra' at ../lib/acl/acl_run_neon.h:239:20:
../lib/acl/acl_run.h:93:25: warning: 'cmplt' may be used uninitialized
[-Wmaybe-uninitialized]
   93 |                 if (p[n].count == 0) {
      |                     ~~~~^~~~~~

../lib/acl/acl_run_neon.h: In function 'search_neon_4.isra':
../lib/acl/acl_run_neon.h:230:27: note: 'cmplt' declared here
230 | struct completion cmplt[4];
| ^~~~~
[7/7] Linking static target lib/librte_acl.a

A quick fix (needs review):

lib/acl/acl_run_neon.h +0 -0
index 63074f871d..ed7424e076 100644
@@ -234,10 +234,10 @@ search_neon_4(const struct rte_acl_ctx *ctx, const

uint8_t **data,
acl_set_flow(&flows, cmplt, RTE_DIM(cmplt), data, results,
total_packets, categories, ctx->trans_table);

- for (n = 0; n < 4; n++) {
+ for (n = 0; n < 4; n++)

                cmplt[n].count = 0;
+       for (n = 0; n < 4; n++)
                index_array[n] = acl_start_next_trie(&flows, parms, n, ctx);

- }

        /* Check for any matches. */
        acl_match_check_x4(0, ctx, parms, &flows, index_array);
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1678

David Marchand ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from David Marchand ([email protected]) --- Fixed in commit 6cde8a3dda49 ("acl: fix build with GCC 15 on aarch64").

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.