examples/vhost_blk: fix build with gcc 10
[dpdk.git] / lib / librte_bpf / bpf_jit_arm64.c
index 8882fee..a5a5d46 100644 (file)
@@ -1435,7 +1435,7 @@ bpf_jit_arm64(struct rte_bpf *bpf)
        }
 
        /* Flush the icache */
-       __builtin___clear_cache(ctx.ins, ctx.ins + ctx.idx);
+       __builtin___clear_cache((char *)ctx.ins, (char *)(ctx.ins + ctx.idx));
 
        bpf->jit.func = (void *)ctx.ins;
        bpf->jit.sz = size;