acl: fix build with some arm64 compiler
authorJerin Jacob <jerinj@marvell.com>
Tue, 11 Jun 2019 14:15:03 +0000 (19:45 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 11 Jun 2019 15:07:13 +0000 (00:07 +0900)
commit557c5cbde374172c7140bc6a7cef2cc81e5a29dc
tree70250bf03e11922616cf6e966c347af26ecaa924
parent474b4c1d7cce54d2217d648058ff55d40a92ebd0
acl: fix build with some arm64 compiler

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 using vdupq_n_s32.

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
  int32x4_t input;

Fixes: 34fa6c27c156 ("acl: add NEON optimization for ARMv8")
Cc: stable@dpdk.org
Suggested-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Aaron Conole <aconole@redhat.com>
lib/librte_acl/acl_run_neon.h