]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8f1b34785625453ad839a4f44e4022bd6f37519
tree243da00dbf1e26822b5f048c9eb6af71fa0946ce
parentab3e1d160241c74ffb4d98914c2747dacdc78191
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: cd091043f442 ("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