[dpdk-stable] [dpdk-dev] [PATCH] acl: fix build issue with some arm64 compiler

Aaron Conole aconole at redhat.com
Mon Jun 10 14:10:09 CEST 2019


<jerinj at marvell.com> writes:

> From: Jerin Jacob <jerinj at marvell.com>
>
> Some compilers reporting the following error, though the existing
> code doesn't have any uninitialized variable case.
> Just to make compiler happy, initialize the int32x4_t variable
> one shot in C language.
>
> ../lib/librte_acl/acl_run_neon.h: In function 'search_neon_4'
> ../lib/librte_acl/acl_run_neon.h:230:12: error: 'input' may be
> used uninitialized in this function [-Werror=maybe-uninitialized]
>   int32x4_t input;
>
> Fixes: 34fa6c27c156 ("acl: add NEON optimization for ARMv8")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jerin Jacob <jerinj at marvell.com>
> ---

This pattern is easy to understand, congruent with other usages in the
code base, has good patch statistics, and solves the issue.

Acked-by: Aaron Conole <aconole at redhat.com>

I prefer this solution to the others posted.  Thanks for looking into
it, Jerin!


More information about the stable mailing list