Merge branch 'libbpf: add bpf_core_cast() helper'
authorMartin KaFai Lau <martin.lau@kernel.org>
Tue, 30 Jan 2024 23:55:50 +0000 (15:55 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 30 Jan 2024 23:55:59 +0000 (15:55 -0800)
Andrii Nakryiko says:

====================
Add bpf_core_cast(<ptr>, <type>) macro wrapper around bpf_rdonly_cast() kfunc
to make it easier to use this functionality in BPF code. See patch #2 for
BPF selftests conversions demonstrating improvements in code succinctness.
====================

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>

Trivial merge