bpf: Factor out verbose_invalid_scalar()
authorYonghong Song <yhs@fb.com>
Fri, 26 Feb 2021 20:49:22 +0000 (12:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 21:23:52 +0000 (13:23 -0800)
commitbc2591d63fc91bd5a9aaff145148a224d892bdb8
tree0c1470af9b6d2613bd05d40c279f3aa104299d91
parentefdb22de7dcd3b24b8154b3c3ba496f62afea00c
bpf: Factor out verbose_invalid_scalar()

Factor out the function verbose_invalid_scalar() to verbose
print if a scalar is not in a tnum range. There is no
functionality change and the function will be used by
later patch which introduced bpf_for_each_map_elem().

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226204922.3884375-1-yhs@fb.com
kernel/bpf/verifier.c