mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
annotate poll-related wait keys
__poll_t is also used as wait key in some waitqueues. Verify that wait_..._poll() gets __poll_t as key and provide a helper for wakeup functions to get back to that __poll_t value. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e6c8adca20
commit
3ad6f93e98
9 changed files with 19 additions and 18 deletions
|
|
@ -46,7 +46,7 @@ static void virqfd_deactivate(struct virqfd *virqfd)
|
|||
static int virqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
|
||||
{
|
||||
struct virqfd *virqfd = container_of(wait, struct virqfd, wait);
|
||||
unsigned long flags = (unsigned long)key;
|
||||
__poll_t flags = key_to_poll(key);
|
||||
|
||||
if (flags & POLLIN) {
|
||||
/* An event has been signaled, call function */
|
||||
|
|
|
|||
Loading…
Reference in a new issue