diff options
author | Alexei Starovoitov <ast@kernel.org> | 2025-10-01 15:27:25 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-10-01 15:28:34 -0700 |
commit | 1bd3773aad5411f3542aa2e5328df58454706ca6 (patch) | |
tree | a3ff83bce952bf62122303cd3575533e6400aa75 /rust/helpers/vmalloc.c | |
parent | a1aca22d264cdca5b20934a2413951ea7d73c594 (diff) | |
parent | 4a1c9e544b8dd0c5456e0feb614f427dc46c4835 (diff) |
Merge branch 'libbpf-fix-libbpf_sha256-for-github-compatibility'
Andrii Nakryiko says:
====================
libbpf: fix libbpf_sha256() for Github compatibility
Recent reimplementation of libbpf_sha256() introduced issues for libbpf's
Github mirror due to reliance on linux/unaligned.h header. This patch set
fixes those issues to make libbpf source code compatible with Github mirror
setup.
This patch set starts with a bit of organization: we introduce libbpf_utils.c
as a place for generic internal helpers like libbpf_errstr() and
libbpf_sha256(), and move a few existing helpers there. We also clean up
libbpf_strerror_r(), which seems to be a leftover of some previous
refactorings.
And finally, we move libbpf_sha256() from huge libbpf.c into libbpf_utils.c,
following up with fix ups to make its code more Github-friendly.
v1->v2:
- add missed cpu_to_be32() and be32_to_cpu() conversions inside
{get/put}_unaligned_be32() macros;
- target bpf tree (Alexei);
- applied Eric's libbpf_sha256 selftest locally and verified it works;
v1:
https://lore.kernel.org/bpf/20250930212619.1645410-1-andrii@kernel.org/
====================
Link: https://patch.msgid.link/20251001171326.3883055-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions