bpf: btf: implement btf_name_valid_identifier()
authorYonghong Song <yhs@fb.com>
Tue, 27 Nov 2018 21:23:27 +0000 (13:23 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Nov 2018 00:03:04 +0000 (16:03 -0800)
commitcdbb096adddb3f42584cecb5ec2e07c26815b71f
tree243da00dbf1e26822b5f048c9eb6af71fa0946ce
parentd78a5ebd8b18d3809fd9d6bbaeb64d78a332204f
bpf: btf: implement btf_name_valid_identifier()

Function btf_name_valid_identifier() have been implemented in
bpf-next commit 2667a2626f4d ("bpf: btf: Add BTF_KIND_FUNC and
BTF_KIND_FUNC_PROTO"). Backport this function so later patch
can use it.

Fixes: 69b693f0aefa ("bpf: btf: Introduce BPF Type Format (BTF)")
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c