numam-dpdk/lib/librte_bpf
Ruifeng Wang bb2a9973c0 bpf/arm: fix clang build
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: f3e5167724 ("bpf/arm: add prologue and epilogue")
Cc: jerinj@marvell.com

Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2019-11-21 00:30:39 +01:00
..
bpf_def.h bpf: fix pseudo calls for program loaded from ELF 2019-06-05 18:34:56 +02:00
bpf_exec.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
bpf_impl.h bpf/arm: add build infrastructure 2019-10-12 14:20:21 +02:00
bpf_jit_arm64.c bpf/arm: fix clang build 2019-11-21 00:30:39 +01:00
bpf_jit_x86.c bpf: fix x86 JIT for immediate loads 2018-11-13 23:18:53 +01:00
bpf_load_elf.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
bpf_load.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
bpf_pkt.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
bpf_validate.c bpf: hide internal program argument type 2019-10-12 14:27:19 +02:00
bpf.c bpf/arm: add build infrastructure 2019-10-12 14:20:21 +02:00
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build bpf/arm: add build infrastructure 2019-10-12 14:20:21 +02:00
rte_bpf_ethdev.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_bpf_version.map bpf: introduce basic Rx/Tx filters 2018-05-12 00:36:34 +02:00
rte_bpf.h bpf: hide internal program argument type 2019-10-12 14:27:19 +02:00