net/i40e: fix clang warning on non-x86
authorRuifeng Wang <ruifeng.wang@arm.com>
Fri, 30 Jul 2021 09:32:58 +0000 (17:32 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 10 Aug 2021 07:48:33 +0000 (09:48 +0200)
commit1a3f6cde64583bbafac1928b2502bfe047b11e6f
tree65edf4d32174bac5a0a4345f9145a6f11fa72375
parent72908beba944b57e3e1cbe0edf7728a192230d2b
net/i40e: fix clang warning on non-x86

Build on aarch64 with clang-10 has warning:
i40e_rxtx.c:3228:1:
warning: unused function 'get_avx_supported' [-Wunused-function]

The function is used in x86 specific path. Moved it into ifdef
to fix build on non-x86.

Fixes: c30751afc360 ("net/i40e: fix data path selection in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c