libbpf: Move function is_ldimm64() earlier in libbpf.c
authorYonghong Song <yhs@fb.com>
Fri, 26 Feb 2021 20:49:29 +0000 (12:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 21:23:52 +0000 (13:23 -0800)
commitb8f871fa32ad392759bc70090fa8c60d9f10625c
tree0584b62891e31734e24d7cab1abb2e0e1c3e71b8
parent06dcdcd4b9e84ee78d865c928b1d43bb71829251
libbpf: Move function is_ldimm64() earlier in libbpf.c

Move function is_ldimm64() close to the beginning of libbpf.c,
so it can be reused by later code and the next patch as well.
There is no functionality change.

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/20210226204929.3885295-1-yhs@fb.com
tools/lib/bpf/libbpf.c