mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -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 <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e6c8adca20
commit
3ad6f93e98
9 changed files with 19 additions and 18 deletions
|
@ -367,7 +367,7 @@ static int unix_dgram_peer_wake_relay(wait_queue_entry_t *q, unsigned mode, int
|
|||
/* relaying can only happen while the wq still exists */
|
||||
u_sleep = sk_sleep(&u->sk);
|
||||
if (u_sleep)
|
||||
wake_up_interruptible_poll(u_sleep, key);
|
||||
wake_up_interruptible_poll(u_sleep, key_to_poll(key));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue