bb2a9973c0
Clang has different prototype for __builtin___clear_cache().
It requires 'char *' parameters while gcc requires 'void *'.
Clang version 8.0 was used.
Warning messages during build:
../lib/librte_bpf/bpf_jit_arm64.c:1438:26: warning: incompatible pointer
types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type
'char *' [-Wincompatible-pointer-types]
__builtin___clear_cache(ctx.ins, ctx.ins + ctx.idx);
^~~~~~~
../lib/librte_bpf/bpf_jit_arm64.c:1438:35: warning: incompatible pointer
types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type
'char *' [-Wincompatible-pointer-types]
__builtin___clear_cache(ctx.ins, ctx.ins + ctx.idx);
^~~~~~~~~~~~~~~~~
Fixes:
|
||
---|---|---|
.. | ||
bpf_def.h | ||
bpf_exec.c | ||
bpf_impl.h | ||
bpf_jit_arm64.c | ||
bpf_jit_x86.c | ||
bpf_load_elf.c | ||
bpf_load.c | ||
bpf_pkt.c | ||
bpf_validate.c | ||
bpf.c | ||
Makefile | ||
meson.build | ||
rte_bpf_ethdev.h | ||
rte_bpf_version.map | ||
rte_bpf.h |