libbpf: Don't use kernel-side u32 type in xsk.c
authorAndrii Nakryiko <andriin@fb.com>
Tue, 29 Oct 2019 05:59:53 +0000 (22:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:05 +0000 (10:01 +0100)
commit220ba320861c7368159b5c80b7dc7418e4ea5d8b
tree0d182d342ac158959dcc59377c319ae44e1898aa
parentbd9d813ca8fe455e58c22512f225e14dc9ac209a
libbpf: Don't use kernel-side u32 type in xsk.c

[ Upstream commit a566e35f1e8b4b3be1e96a804d1cca38b578167c ]

u32 is a kernel-side typedef. User-space library is supposed to use __u32.
This breaks Github's projection of libbpf. Do u32 -> __u32 fix.

Fixes: 94ff9ebb49a5 ("libbpf: Fix compatibility for kernels without need_wakeup")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Cc: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20191029055953.2461336-1-andriin@fb.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/xsk.c