eventpoll.h: fix epoll event masks
authorGreg KH <gregkh@linuxfoundation.org>
Wed, 8 Mar 2017 18:03:03 +0000 (19:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:38 +0000 (09:17 +0100)
commit41beba9840d7967ac4b6636b42bad6af3fb18fa5
tree903220912f40f34112cf13132535c70ceb24c45f
parentfdfc3fa74511d687dbf626248b671cbe861c7c04
eventpoll.h: fix epoll event masks

[ Upstream commit 6f051e4a685b768f3704c7c069aa1edee3010622 ]

[resend due to me forgetting to cc: linux-api the first time around I
posted these back on Feb 23]

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

When userspace tries to use these defines, it complains that it needs to
be an unsigned 1 that is shifted, so libc implementations have to create
their own version.  Fix this by defining it properly so that libcs can
just use the kernel uapi header.

Reported-by: Elliott Hughes <enh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/eventpoll.h