libbpf: xsk: Remove linux/compiler.h header
authorBjörn Töpel <bjorn.topel@intel.com>
Wed, 10 Mar 2021 08:09:28 +0000 (09:09 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 10 Mar 2021 21:38:07 +0000 (13:38 -0800)
commit2882c48bf8f2fb9ec31cbb68be6b979da48f880d
treea24609c89cad61c8033009f57967c525d44461da
parenta9c80b03e586fd3819089fbd33c38fb65ad5e00c
libbpf: xsk: Remove linux/compiler.h header

In commit 291471dd1559 ("libbpf, xsk: Add libbpf_smp_store_release
libbpf_smp_load_acquire") linux/compiler.h was added as a dependency
to xsk.h, which is the user-facing API. This makes it harder for
userspace application to consume the library. Here the header
inclusion is removed, and instead {READ,WRITE}_ONCE() is added
explicitly.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210310080929.641212-2-bjorn.topel@gmail.com
tools/lib/bpf/libbpf_util.h