]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xsk: Fix xsk_poll()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 20 Nov 2019 00:10:42 +0000 (01:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:44 +0000 (11:25 +0100)
commit377bd57ed7ad2417228c6969b014e868a5b90c3a
tree95b0811592532aaa908c64104c365d64762cfba0
parent076ba445d59296689ddaa8f90916ee29f7ca3dda
xsk: Fix xsk_poll()'s return type

[ Upstream commit 5d946c5abbaf68083fa6a41824dd79e1f06286d8 ]

xsk_poll() is defined as returning 'unsigned int' but the
.poll method is declared as returning '__poll_t', a bitwise type.

Fix this by using the proper return type and using the EPOLL
constants instead of the POLL ones, as required for __poll_t.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/20191120001042.30830-1-luc.vanoostenryck@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/xdp/xsk.c