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 <psodagud@codeaurora.org>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Prasad Sodagudi 2017-03-10 17:45:30 -08:00 • committed by Elliot Berman
commit 944694f6de

View file

@ -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 */