selftests/bpf: fix constness of source arg for bpf helpers
authorAndrii Nakryiko <andriin@fb.com>
Mon, 10 Jun 2019 17:46:55 +0000 (10:46 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 11 Jun 2019 06:39:50 +0000 (23:39 -0700)
commitc7cebffea2c7086850e4affeb9f232d34ae30f11
tree503c9743c66ea696b84e91f4d821fa12e7824ef7
parent0ed3cc4abc10dc71f67a40e0c4b2c5c85e6aec82
selftests/bpf: fix constness of source arg for bpf helpers

Fix signature of bpf_probe_read and bpf_probe_write_user to mark source
pointer as const. This causes warnings during compilation for
applications relying on those helpers.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_helpers.h