]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'libbpf-minimize-feature-detection'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 01:38:26 +0000 (18:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 01:39:12 +0000 (18:39 -0700)
commit06420116eb0d2a773ab26b579dc40c240db0671e
treedb9db9e5bf0e08e319156582f83936d0f74a95cd
parentc84e2e77db4840ae97f6fd9992d94a1f27be24bb
parentd1000ca3f038644019490ea1a3559d0cedcc3f53
Merge branch 'libbpf-minimize-feature-detection'

Andrii Nakryiko says:

====================
Get rid of two feature detectors: reallocarray and libelf-mmap. Optional
feature detections complicate libbpf Makefile and cause more troubles for
various applications that want to integrate libbpf as part of their build.

Patch #1 replaces all reallocarray() uses into libbpf-internal reallocarray()
implementation. Patches #2 and #3 makes sure we won't re-introduce
reallocarray() accidentally. Patch #2 also removes last use of
libbpf_internal.h header inside bpftool. There is still nlattr.h that's used
by both libbpf and bpftool, but that's left for a follow up patch to split.
Patch #4 removed libelf-mmap feature detector and all its uses, as it's
trivial to handle missing mmap support in libbpf, the way objtool has been
doing it for a while.

v1->v2 and v2->v3:
  - rebase to latest bpf-next (Alexei).
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>