diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-03 00:01:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-27 16:20:04 -0500 |
commit | ade994f4f6c8c3ef4c3bfc2d02166262fb9d089c (patch) | |
tree | ab92ca31c845daf847c38ec0b3844a1fdd87ecad /net/unix/af_unix.c | |
parent | e6c5a7d997db73aaab2fb8337710f109e5d931b1 (diff) |
net: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 72957961ac22..6b7678df41e5 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -638,8 +638,8 @@ static int unix_stream_connect(struct socket *, struct sockaddr *, | |||
638 | static int unix_socketpair(struct socket *, struct socket *); | 638 | static int unix_socketpair(struct socket *, struct socket *); |
639 | static int unix_accept(struct socket *, struct socket *, int, bool); | 639 | static int unix_accept(struct socket *, struct socket *, int, bool); |
640 | static int unix_getname(struct socket *, struct sockaddr *, int *, int); | 640 | static int unix_getname(struct socket *, struct sockaddr *, int *, int); |
641 | static unsigned int unix_poll(struct file *, struct socket *, poll_table *); | 641 | static __poll_t unix_poll(struct file *, struct socket *, poll_table *); |
642 | static unsigned int unix_dgram_poll(struct file *, struct socket *, | 642 | static __poll_t unix_dgram_poll(struct file *, struct socket *, |
643 | poll_table *); | 643 | poll_table *); |
644 | static int unix_ioctl(struct socket *, unsigned int, unsigned long); | 644 | static int unix_ioctl(struct socket *, unsigned int, unsigned long); |
645 | static int unix_shutdown(struct socket *, int); | 645 | static int unix_shutdown(struct socket *, int); |
@@ -2640,10 +2640,10 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
2640 | return err; | 2640 | return err; |
2641 | } | 2641 | } |
2642 | 2642 | ||
2643 | static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table *wait) | 2643 | static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wait) |
2644 | { | 2644 | { |
2645 | struct sock *sk = sock->sk; | 2645 | struct sock *sk = sock->sk; |
2646 | unsigned int mask; | 2646 | __poll_t mask; |
2647 | 2647 | ||
2648 | sock_poll_wait(file, sk_sleep(sk), wait); | 2648 | sock_poll_wait(file, sk_sleep(sk), wait); |
2649 | mask = 0; | 2649 | mask = 0; |
@@ -2675,11 +2675,12 @@ static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table | |||
2675 | return mask; | 2675 | return mask; |
2676 | } | 2676 | } |
2677 | 2677 | ||
2678 | static unsigned int unix_dgram_poll(struct file *file, struct socket *sock, | 2678 | static __poll_t unix_dgram_poll(struct file *file, struct socket *sock, |
2679 | poll_table *wait) | 2679 | poll_table *wait) |
2680 | { | 2680 | { |
2681 | struct sock *sk = sock->sk, *other; | 2681 | struct sock *sk = sock->sk, *other; |
2682 | unsigned int mask, writable; | 2682 | unsigned int writable; |
2683 | __poll_t mask; | ||
2683 | 2684 | ||
2684 | sock_poll_wait(file, sk_sleep(sk), wait); | 2685 | sock_poll_wait(file, sk_sleep(sk), wait); |
2685 | mask = 0; | 2686 | mask = 0; |