From 944694f6de96d3fb1e7afff8a2df538eee7f739d Mon Sep 17 00:00:00 2001 From: Prasad Sodagudi Date: Fri, 10 Mar 2017 17:45:30 -0800 Subject: [PATCH] epoll: drop struct epoll_event definition Add kernel header sanitizer check to drop struct epoll_event. This struct epoll_event is not following the POSIX standard and defining element in opaque data type. Change-Id: I1eecef1b64eb1fb8f0dd6999263093a453e7b9fb Signed-off-by: Prasad Sodagudi Signed-off-by: Elliot Berman --- include/uapi/linux/eventpoll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index 8a3432d0f0dc..5f9d494899e1 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -74,6 +74,7 @@ #define EPOLL_PACKED #endif +#ifdef __KERNEL__ struct epoll_event { __poll_t events; __u64 data; @@ -91,4 +92,5 @@ static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) epev->events &= ~EPOLLWAKEUP; } #endif +#endif /* __KERNEL__ */ #endif /* _UAPI_LINUX_EVENTPOLL_H */