diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 19:43:33 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 19:43:33 -0500 |
commit | bec1a502d34dcd4d4350a4d9c14fe07561c9516d (patch) | |
tree | be88771d1354ff8c01871b2f7d596e6b918b5bcd /fs/eventpoll.c | |
parent | fcc5a652a51332d5e6582697bd847b082a6b4e40 (diff) | |
download | linux-stable-bec1a502d34dcd4d4350a4d9c14fe07561c9516d.tar.gz linux-stable-bec1a502d34dcd4d4350a4d9c14fe07561c9516d.tar.bz2 linux-stable-bec1a502d34dcd4d4350a4d9c14fe07561c9516d.zip |
eventpoll: constify struct epoll_event pointers
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 67fb3b850c99..92f6c30a1dbb 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -874,7 +874,8 @@ static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead, * the ep->mtx so we need to start from depth=1, such that mutex_lock_nested() * is correctly annotated. */ -static unsigned int ep_item_poll(struct epitem *epi, poll_table *pt, int depth) +static unsigned int ep_item_poll(const struct epitem *epi, poll_table *pt, + int depth) { struct eventpoll *ep; bool locked; @@ -1410,7 +1411,7 @@ static noinline void ep_destroy_wakeup_source(struct epitem *epi) /* * Must be called with "mtx" held. */ -static int ep_insert(struct eventpoll *ep, struct epoll_event *event, +static int ep_insert(struct eventpoll *ep, const struct epoll_event *event, struct file *tfile, int fd, int full_check) { int error, revents, pwake = 0; @@ -1541,7 +1542,8 @@ error_create_wakeup_source: * Modify the interest event mask by dropping an event if the new mask * has a match in the current file status. Must be called with "mtx" held. */ -static int ep_modify(struct eventpoll *ep, struct epitem *epi, struct epoll_event *event) +static int ep_modify(struct eventpoll *ep, struct epitem *epi, + const struct epoll_event *event) { int pwake = 0; unsigned int revents; |