Skip to content

Commit ade994f

Browse files
author
Al Viro
committed
net: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent e6c5a7d commit ade994f

40 files changed

Lines changed: 77 additions & 76 deletions

File tree

drivers/staging/irda/net/af_irda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,12 +1737,12 @@ static int irda_shutdown(struct socket *sock, int how)
17371737
/*
17381738
* Function irda_poll (file, sock, wait)
17391739
*/
1740-
static unsigned int irda_poll(struct file * file, struct socket *sock,
1740+
static __poll_t irda_poll(struct file * file, struct socket *sock,
17411741
poll_table *wait)
17421742
{
17431743
struct sock *sk = sock->sk;
17441744
struct irda_sock *self = irda_sk(sk);
1745-
unsigned int mask;
1745+
__poll_t mask;
17461746

17471747
poll_wait(file, sk_sleep(sk), wait);
17481748
mask = 0;

drivers/staging/irda/net/irnet/irnet_ppp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,12 @@ irnet_ctrl_read(irnet_socket * ap,
419419
* Poll : called when someone do a select on /dev/irnet.
420420
* Just check if there are new events...
421421
*/
422-
static inline unsigned int
422+
static inline __poll_t
423423
irnet_ctrl_poll(irnet_socket * ap,
424424
struct file * file,
425425
poll_table * wait)
426426
{
427-
unsigned int mask;
427+
__poll_t mask;
428428

429429
DENTER(CTRL_TRACE, "(ap=0x%p)\n", ap);
430430

@@ -608,12 +608,12 @@ dev_irnet_read(struct file * file,
608608
/*
609609
* Poll : called when someone do a select on /dev/irnet
610610
*/
611-
static unsigned int
611+
static __poll_t
612612
dev_irnet_poll(struct file * file,
613613
poll_table * wait)
614614
{
615615
irnet_socket * ap = file->private_data;
616-
unsigned int mask;
616+
__poll_t mask;
617617

618618
DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
619619
file, ap);

drivers/staging/irda/net/irnet/irnet_ppp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static ssize_t
7070
char __user *,
7171
size_t,
7272
loff_t *);
73-
static unsigned int
73+
static __poll_t
7474
dev_irnet_poll(struct file *,
7575
poll_table *);
7676
static long

include/linux/skbuff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3242,7 +3242,7 @@ struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
32423242
int *peeked, int *off, int *err);
32433243
struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock,
32443244
int *err);
3245-
unsigned int datagram_poll(struct file *file, struct socket *sock,
3245+
__poll_t datagram_poll(struct file *file, struct socket *sock,
32463246
struct poll_table_struct *wait);
32473247
int skb_copy_datagram_iter(const struct sk_buff *from, int offset,
32483248
struct iov_iter *to, int size);

include/net/bluetooth/bluetooth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
271271
int flags);
272272
int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
273273
size_t len, int flags);
274-
uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
274+
__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
275275
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
276276
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
277277
int bt_sock_wait_ready(struct sock *sk, unsigned long flags);

include/net/inet_connection_sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void inet_csk_prepare_forced_close(struct sock *sk);
305305
/*
306306
* LISTEN is a special case for poll..
307307
*/
308-
static inline unsigned int inet_csk_listen_poll(const struct sock *sk)
308+
static inline __poll_t inet_csk_listen_poll(const struct sock *sk)
309309
{
310310
return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ?
311311
(POLLIN | POLLRDNORM) : 0;

include/net/iucv/af_iucv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ struct iucv_sock_list {
153153
atomic_t autobind_name;
154154
};
155155

156-
unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
156+
__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
157157
poll_table *wait);
158158
void iucv_sock_link(struct iucv_sock_list *l, struct sock *s);
159159
void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);

include/net/sctp/sctp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
107107
int sctp_inet_listen(struct socket *sock, int backlog);
108108
void sctp_write_space(struct sock *sk);
109109
void sctp_data_ready(struct sock *sk);
110-
unsigned int sctp_poll(struct file *file, struct socket *sock,
110+
__poll_t sctp_poll(struct file *file, struct socket *sock,
111111
poll_table *wait);
112112
void sctp_sock_rfree(struct sk_buff *skb);
113113
void sctp_copy_sock(struct sock *newsk, struct sock *sk,

include/net/sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ int sock_no_connect(struct socket *, struct sockaddr *, int, int);
15821582
int sock_no_socketpair(struct socket *, struct socket *);
15831583
int sock_no_accept(struct socket *, struct socket *, int, bool);
15841584
int sock_no_getname(struct socket *, struct sockaddr *, int *, int);
1585-
unsigned int sock_no_poll(struct file *, struct socket *,
1585+
__poll_t sock_no_poll(struct file *, struct socket *,
15861586
struct poll_table_struct *);
15871587
int sock_no_ioctl(struct socket *, unsigned int, unsigned long);
15881588
int sock_no_listen(struct socket *, int);

include/net/tcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst);
387387
void tcp_close(struct sock *sk, long timeout);
388388
void tcp_init_sock(struct sock *sk);
389389
void tcp_init_transfer(struct sock *sk, int bpf_op);
390-
unsigned int tcp_poll(struct file *file, struct socket *sock,
390+
__poll_t tcp_poll(struct file *file, struct socket *sock,
391391
struct poll_table_struct *wait);
392392
int tcp_getsockopt(struct sock *sk, int level, int optname,
393393
char __user *optval, int __user *optlen);

0 commit comments

Comments
 (0)