numam-dpdk/lib/eal/x86
Eli Britstein 6de430b707 eal/x86: avoid cast-align warning in memcpy functions
Functions and macros in x86 rte_memcpy.h may cause cast-align warnings,
when using strict cast align flag with supporting gcc:
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
CFLAGS="-Wcast-align=strict" make V=1 -C examples/l2fwd clean static

For example:
In file included from main.c:24:
/dpdk/build/include/rte_memcpy.h: In function 'rte_mov16':
/dpdk/build/include/rte_memcpy.h:306:25: warning: cast increases
required alignment of target type [-Wcast-align]
  306 |  xmm0 = _mm_loadu_si128((const __m128i *)src);
      |                         ^

As the code assumes correct alignment, add first a (void *) or (const
void *) castings, to avoid the warnings.

Fixes: 9484092baa ("eal/x86: optimize memcpy for AVX512 platforms")
Cc: stable@dpdk.org

Signed-off-by: Eli Britstein <elibr@nvidia.com>
2021-10-25 17:28:12 +02:00
..
include eal/x86: avoid cast-align warning in memcpy functions 2021-10-25 17:28:12 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cpuflags.c eal/x86: sort CPU extended features definitions 2021-10-12 21:07:53 +02:00
rte_cpuid.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cycles.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_hypervisor.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_power_intrinsics.c eal: add power monitor for multiple events 2021-07-09 21:13:13 +02:00
rte_spinlock.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00