]> git.baikalelectronics.ru Git - kernel.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)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 25 Nov 2019 00:58:44 +0000 (16:58 -0800)
commit275461a8b71af5ed44ec1f893e1555ee231b8b49
tree2f5e4665fa092b4d88216e7806aa592f11446c6d
parent630d397518d8e39304fb5384c3430745b60234b4
xsk: Fix xsk_poll()'s return type

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
net/xdp/xsk.c