Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: annotate ->poll() instances

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro ade994f4 e6c5a7d9

+77 -76
+2 -2
drivers/staging/irda/net/af_irda.c
··· 1737 1737 /* 1738 1738 * Function irda_poll (file, sock, wait) 1739 1739 */ 1740 - static unsigned int irda_poll(struct file * file, struct socket *sock, 1740 + static __poll_t irda_poll(struct file * file, struct socket *sock, 1741 1741 poll_table *wait) 1742 1742 { 1743 1743 struct sock *sk = sock->sk; 1744 1744 struct irda_sock *self = irda_sk(sk); 1745 - unsigned int mask; 1745 + __poll_t mask; 1746 1746 1747 1747 poll_wait(file, sk_sleep(sk), wait); 1748 1748 mask = 0;
+4 -4
drivers/staging/irda/net/irnet/irnet_ppp.c
··· 419 419 * Poll : called when someone do a select on /dev/irnet. 420 420 * Just check if there are new events... 421 421 */ 422 - static inline unsigned int 422 + static inline __poll_t 423 423 irnet_ctrl_poll(irnet_socket * ap, 424 424 struct file * file, 425 425 poll_table * wait) 426 426 { 427 - unsigned int mask; 427 + __poll_t mask; 428 428 429 429 DENTER(CTRL_TRACE, "(ap=0x%p)\n", ap); 430 430 ··· 608 608 /* 609 609 * Poll : called when someone do a select on /dev/irnet 610 610 */ 611 - static unsigned int 611 + static __poll_t 612 612 dev_irnet_poll(struct file * file, 613 613 poll_table * wait) 614 614 { 615 615 irnet_socket * ap = file->private_data; 616 - unsigned int mask; 616 + __poll_t mask; 617 617 618 618 DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n", 619 619 file, ap);
+1 -1
drivers/staging/irda/net/irnet/irnet_ppp.h
··· 70 70 char __user *, 71 71 size_t, 72 72 loff_t *); 73 - static unsigned int 73 + static __poll_t 74 74 dev_irnet_poll(struct file *, 75 75 poll_table *); 76 76 static long
+1 -1
include/linux/skbuff.h
··· 3242 3242 int *peeked, int *off, int *err); 3243 3243 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, 3244 3244 int *err); 3245 - unsigned int datagram_poll(struct file *file, struct socket *sock, 3245 + __poll_t datagram_poll(struct file *file, struct socket *sock, 3246 3246 struct poll_table_struct *wait); 3247 3247 int skb_copy_datagram_iter(const struct sk_buff *from, int offset, 3248 3248 struct iov_iter *to, int size);
+1 -1
include/net/bluetooth/bluetooth.h
··· 271 271 int flags); 272 272 int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, 273 273 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); 275 275 int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 276 276 int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); 277 277 int bt_sock_wait_ready(struct sock *sk, unsigned long flags);
+1 -1
include/net/inet_connection_sock.h
··· 305 305 /* 306 306 * LISTEN is a special case for poll.. 307 307 */ 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) 309 309 { 310 310 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? 311 311 (POLLIN | POLLRDNORM) : 0;
+1 -1
include/net/iucv/af_iucv.h
··· 153 153 atomic_t autobind_name; 154 154 }; 155 155 156 - unsigned int iucv_sock_poll(struct file *file, struct socket *sock, 156 + __poll_t iucv_sock_poll(struct file *file, struct socket *sock, 157 157 poll_table *wait); 158 158 void iucv_sock_link(struct iucv_sock_list *l, struct sock *s); 159 159 void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);
+1 -1
include/net/sctp/sctp.h
··· 107 107 int sctp_inet_listen(struct socket *sock, int backlog); 108 108 void sctp_write_space(struct sock *sk); 109 109 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, 111 111 poll_table *wait); 112 112 void sctp_sock_rfree(struct sk_buff *skb); 113 113 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
+1 -1
include/net/sock.h
··· 1582 1582 int sock_no_socketpair(struct socket *, struct socket *); 1583 1583 int sock_no_accept(struct socket *, struct socket *, int, bool); 1584 1584 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 *, 1586 1586 struct poll_table_struct *); 1587 1587 int sock_no_ioctl(struct socket *, unsigned int, unsigned long); 1588 1588 int sock_no_listen(struct socket *, int);
+1 -1
include/net/tcp.h
··· 387 387 void tcp_close(struct sock *sk, long timeout); 388 388 void tcp_init_sock(struct sock *sk); 389 389 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, 391 391 struct poll_table_struct *wait); 392 392 int tcp_getsockopt(struct sock *sk, int level, int optname, 393 393 char __user *optval, int __user *optlen);
+1 -1
include/net/udp.h
··· 275 275 int udp_init_sock(struct sock *sk); 276 276 int __udp_disconnect(struct sock *sk, int flags); 277 277 int udp_disconnect(struct sock *sk, int flags); 278 - unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait); 278 + __poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait); 279 279 struct sk_buff *skb_udp_tunnel_segment(struct sk_buff *skb, 280 280 netdev_features_t features, 281 281 bool is_ipv6);
+2 -2
net/atm/common.c
··· 648 648 return error; 649 649 } 650 650 651 - unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait) 651 + __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait) 652 652 { 653 653 struct sock *sk = sock->sk; 654 654 struct atm_vcc *vcc; 655 - unsigned int mask; 655 + __poll_t mask; 656 656 657 657 sock_poll_wait(file, sk_sleep(sk), wait); 658 658 mask = 0;
+1 -1
net/atm/common.h
··· 17 17 int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, 18 18 int flags); 19 19 int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len); 20 - unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait); 20 + __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait); 21 21 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 22 22 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 23 23 int vcc_setsockopt(struct socket *sock, int level, int optname,
+1 -1
net/batman-adv/icmp_socket.c
··· 292 292 return len; 293 293 } 294 294 295 - static unsigned int batadv_socket_poll(struct file *file, poll_table *wait) 295 + static __poll_t batadv_socket_poll(struct file *file, poll_table *wait) 296 296 { 297 297 struct batadv_socket_client *socket_client = file->private_data; 298 298
+1 -1
net/batman-adv/log.c
··· 176 176 return error; 177 177 } 178 178 179 - static unsigned int batadv_log_poll(struct file *file, poll_table *wait) 179 + static __poll_t batadv_log_poll(struct file *file, poll_table *wait) 180 180 { 181 181 struct batadv_priv *bat_priv = file->private_data; 182 182 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
+3 -3
net/bluetooth/af_bluetooth.c
··· 421 421 } 422 422 EXPORT_SYMBOL(bt_sock_stream_recvmsg); 423 423 424 - static inline unsigned int bt_accept_poll(struct sock *parent) 424 + static inline __poll_t bt_accept_poll(struct sock *parent) 425 425 { 426 426 struct bt_sock *s, *n; 427 427 struct sock *sk; ··· 437 437 return 0; 438 438 } 439 439 440 - unsigned int bt_sock_poll(struct file *file, struct socket *sock, 440 + __poll_t bt_sock_poll(struct file *file, struct socket *sock, 441 441 poll_table *wait) 442 442 { 443 443 struct sock *sk = sock->sk; 444 - unsigned int mask = 0; 444 + __poll_t mask = 0; 445 445 446 446 BT_DBG("sock %p, sk %p", sock, sk); 447 447
+2 -2
net/caif/caif_socket.c
··· 934 934 } 935 935 936 936 /* Copied from af_unix.c:unix_poll(), added CAIF tx_flow handling */ 937 - static unsigned int caif_poll(struct file *file, 937 + static __poll_t caif_poll(struct file *file, 938 938 struct socket *sock, poll_table *wait) 939 939 { 940 940 struct sock *sk = sock->sk; 941 - unsigned int mask; 941 + __poll_t mask; 942 942 struct caifsock *cf_sk = container_of(sk, struct caifsock, sk); 943 943 944 944 sock_poll_wait(file, sk_sleep(sk), wait);
+2 -2
net/core/datagram.c
··· 831 831 * and you use a different write policy from sock_writeable() 832 832 * then please supply your own write_space callback. 833 833 */ 834 - unsigned int datagram_poll(struct file *file, struct socket *sock, 834 + __poll_t datagram_poll(struct file *file, struct socket *sock, 835 835 poll_table *wait) 836 836 { 837 837 struct sock *sk = sock->sk; 838 - unsigned int mask; 838 + __poll_t mask; 839 839 840 840 sock_poll_wait(file, sk_sleep(sk), wait); 841 841 mask = 0;
+1 -1
net/core/sock.c
··· 2496 2496 } 2497 2497 EXPORT_SYMBOL(sock_no_getname); 2498 2498 2499 - unsigned int sock_no_poll(struct file *file, struct socket *sock, poll_table *pt) 2499 + __poll_t sock_no_poll(struct file *file, struct socket *sock, poll_table *pt) 2500 2500 { 2501 2501 return 0; 2502 2502 }
+1 -1
net/dccp/dccp.h
··· 316 316 int flags, int *addr_len); 317 317 void dccp_shutdown(struct sock *sk, int how); 318 318 int inet_dccp_listen(struct socket *sock, int backlog); 319 - unsigned int dccp_poll(struct file *file, struct socket *sock, 319 + __poll_t dccp_poll(struct file *file, struct socket *sock, 320 320 poll_table *wait); 321 321 int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len); 322 322 void dccp_req_err(struct sock *sk, u64 seq);
+2 -2
net/dccp/proto.c
··· 313 313 * take care of normal races (between the test and the event) and we don't 314 314 * go look at any of the socket buffers directly. 315 315 */ 316 - unsigned int dccp_poll(struct file *file, struct socket *sock, 316 + __poll_t dccp_poll(struct file *file, struct socket *sock, 317 317 poll_table *wait) 318 318 { 319 - unsigned int mask; 319 + __poll_t mask; 320 320 struct sock *sk = sock->sk; 321 321 322 322 sock_poll_wait(file, sk_sleep(sk), wait);
+2 -2
net/decnet/af_decnet.c
··· 1209 1209 } 1210 1210 1211 1211 1212 - static unsigned int dn_poll(struct file *file, struct socket *sock, poll_table *wait) 1212 + static __poll_t dn_poll(struct file *file, struct socket *sock, poll_table *wait) 1213 1213 { 1214 1214 struct sock *sk = sock->sk; 1215 1215 struct dn_scp *scp = DN_SK(sk); 1216 - int mask = datagram_poll(file, sock, wait); 1216 + __poll_t mask = datagram_poll(file, sock, wait); 1217 1217 1218 1218 if (!skb_queue_empty(&scp->other_receive_queue)) 1219 1219 mask |= POLLRDBAND;
+2 -2
net/ipv4/tcp.c
··· 493 493 * take care of normal races (between the test and the event) and we don't 494 494 * go look at any of the socket buffers directly. 495 495 */ 496 - unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait) 496 + __poll_t tcp_poll(struct file *file, struct socket *sock, poll_table *wait) 497 497 { 498 - unsigned int mask; 498 + __poll_t mask; 499 499 struct sock *sk = sock->sk; 500 500 const struct tcp_sock *tp = tcp_sk(sk); 501 501 int state;
+2 -2
net/ipv4/udp.c
··· 2502 2502 * but then block when reading it. Add special case code 2503 2503 * to work around these arguably broken applications. 2504 2504 */ 2505 - unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait) 2505 + __poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait) 2506 2506 { 2507 - unsigned int mask = datagram_poll(file, sock, wait); 2507 + __poll_t mask = datagram_poll(file, sock, wait); 2508 2508 struct sock *sk = sock->sk; 2509 2509 2510 2510 if (!skb_queue_empty(&udp_sk(sk)->reader_queue))
+3 -3
net/iucv/af_iucv.c
··· 1474 1474 return copied; 1475 1475 } 1476 1476 1477 - static inline unsigned int iucv_accept_poll(struct sock *parent) 1477 + static inline __poll_t iucv_accept_poll(struct sock *parent) 1478 1478 { 1479 1479 struct iucv_sock *isk, *n; 1480 1480 struct sock *sk; ··· 1489 1489 return 0; 1490 1490 } 1491 1491 1492 - unsigned int iucv_sock_poll(struct file *file, struct socket *sock, 1492 + __poll_t iucv_sock_poll(struct file *file, struct socket *sock, 1493 1493 poll_table *wait) 1494 1494 { 1495 1495 struct sock *sk = sock->sk; 1496 - unsigned int mask = 0; 1496 + __poll_t mask = 0; 1497 1497 1498 1498 sock_poll_wait(file, sk_sleep(sk), wait); 1499 1499
+3 -3
net/nfc/llcp_sock.c
··· 531 531 return 0; 532 532 } 533 533 534 - static inline unsigned int llcp_accept_poll(struct sock *parent) 534 + static inline __poll_t llcp_accept_poll(struct sock *parent) 535 535 { 536 536 struct nfc_llcp_sock *llcp_sock, *parent_sock; 537 537 struct sock *sk; ··· 549 549 return 0; 550 550 } 551 551 552 - static unsigned int llcp_sock_poll(struct file *file, struct socket *sock, 552 + static __poll_t llcp_sock_poll(struct file *file, struct socket *sock, 553 553 poll_table *wait) 554 554 { 555 555 struct sock *sk = sock->sk; 556 - unsigned int mask = 0; 556 + __poll_t mask = 0; 557 557 558 558 pr_debug("%p\n", sk); 559 559
+1 -1
net/nfc/nci/uart.c
··· 305 305 return 0; 306 306 } 307 307 308 - static unsigned int nci_uart_tty_poll(struct tty_struct *tty, 308 + static __poll_t nci_uart_tty_poll(struct tty_struct *tty, 309 309 struct file *filp, poll_table *wait) 310 310 { 311 311 return 0;
+2 -2
net/packet/af_packet.c
··· 4080 4080 return 0; 4081 4081 } 4082 4082 4083 - static unsigned int packet_poll(struct file *file, struct socket *sock, 4083 + static __poll_t packet_poll(struct file *file, struct socket *sock, 4084 4084 poll_table *wait) 4085 4085 { 4086 4086 struct sock *sk = sock->sk; 4087 4087 struct packet_sock *po = pkt_sk(sk); 4088 - unsigned int mask = datagram_poll(file, sock, wait); 4088 + __poll_t mask = datagram_poll(file, sock, wait); 4089 4089 4090 4090 spin_lock_bh(&sk->sk_receive_queue.lock); 4091 4091 if (po->rx_ring.pg_vec) {
+2 -2
net/phonet/socket.c
··· 341 341 return 0; 342 342 } 343 343 344 - static unsigned int pn_socket_poll(struct file *file, struct socket *sock, 344 + static __poll_t pn_socket_poll(struct file *file, struct socket *sock, 345 345 poll_table *wait) 346 346 { 347 347 struct sock *sk = sock->sk; 348 348 struct pep_sock *pn = pep_sk(sk); 349 - unsigned int mask = 0; 349 + __poll_t mask = 0; 350 350 351 351 poll_wait(file, sk_sleep(sk), wait); 352 352
+2 -2
net/rds/af_rds.c
··· 152 152 * to send to a congested destination, the system call may still fail (and 153 153 * return ENOBUFS). 154 154 */ 155 - static unsigned int rds_poll(struct file *file, struct socket *sock, 155 + static __poll_t rds_poll(struct file *file, struct socket *sock, 156 156 poll_table *wait) 157 157 { 158 158 struct sock *sk = sock->sk; 159 159 struct rds_sock *rs = rds_sk_to_rs(sk); 160 - unsigned int mask = 0; 160 + __poll_t mask = 0; 161 161 unsigned long flags; 162 162 163 163 poll_wait(file, sk_sleep(sk), wait);
+2 -2
net/rfkill/core.c
··· 1139 1139 return -ENOMEM; 1140 1140 } 1141 1141 1142 - static unsigned int rfkill_fop_poll(struct file *file, poll_table *wait) 1142 + static __poll_t rfkill_fop_poll(struct file *file, poll_table *wait) 1143 1143 { 1144 1144 struct rfkill_data *data = file->private_data; 1145 - unsigned int res = POLLOUT | POLLWRNORM; 1145 + __poll_t res = POLLOUT | POLLWRNORM; 1146 1146 1147 1147 poll_wait(file, &data->read_wait, wait); 1148 1148
+2 -2
net/rxrpc/af_rxrpc.c
··· 725 725 /* 726 726 * permit an RxRPC socket to be polled 727 727 */ 728 - static unsigned int rxrpc_poll(struct file *file, struct socket *sock, 728 + static __poll_t rxrpc_poll(struct file *file, struct socket *sock, 729 729 poll_table *wait) 730 730 { 731 731 struct sock *sk = sock->sk; 732 732 struct rxrpc_sock *rx = rxrpc_sk(sk); 733 - unsigned int mask; 733 + __poll_t mask; 734 734 735 735 sock_poll_wait(file, sk_sleep(sk), wait); 736 736 mask = 0;
+2 -2
net/sctp/socket.c
··· 7497 7497 * here, again, by modeling the current TCP/UDP code. We don't have 7498 7498 * a good way to test with it yet. 7499 7499 */ 7500 - unsigned int sctp_poll(struct file *file, struct socket *sock, poll_table *wait) 7500 + __poll_t sctp_poll(struct file *file, struct socket *sock, poll_table *wait) 7501 7501 { 7502 7502 struct sock *sk = sock->sk; 7503 7503 struct sctp_sock *sp = sctp_sk(sk); 7504 - unsigned int mask; 7504 + __poll_t mask; 7505 7505 7506 7506 poll_wait(file, sk_sleep(sk), wait); 7507 7507
+2 -2
net/smc/af_smc.c
··· 1107 1107 return rc; 1108 1108 } 1109 1109 1110 - static unsigned int smc_accept_poll(struct sock *parent) 1110 + static __poll_t smc_accept_poll(struct sock *parent) 1111 1111 { 1112 1112 struct smc_sock *isk; 1113 1113 struct sock *sk; ··· 1126 1126 return 0; 1127 1127 } 1128 1128 1129 - static unsigned int smc_poll(struct file *file, struct socket *sock, 1129 + static __poll_t smc_poll(struct file *file, struct socket *sock, 1130 1130 poll_table *wait) 1131 1131 { 1132 1132 struct sock *sk = sock->sk;
+2 -2
net/socket.c
··· 118 118 static int sock_mmap(struct file *file, struct vm_area_struct *vma); 119 119 120 120 static int sock_close(struct inode *inode, struct file *file); 121 - static unsigned int sock_poll(struct file *file, 121 + static __poll_t sock_poll(struct file *file, 122 122 struct poll_table_struct *wait); 123 123 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 124 124 #ifdef CONFIG_COMPAT ··· 1091 1091 EXPORT_SYMBOL(sock_create_lite); 1092 1092 1093 1093 /* No kernel lock held - perfect */ 1094 - static unsigned int sock_poll(struct file *file, poll_table *wait) 1094 + static __poll_t sock_poll(struct file *file, poll_table *wait) 1095 1095 { 1096 1096 __poll_t busy_flag = 0; 1097 1097 struct socket *sock;
+4 -4
net/sunrpc/cache.c
··· 930 930 931 931 static DECLARE_WAIT_QUEUE_HEAD(queue_wait); 932 932 933 - static unsigned int cache_poll(struct file *filp, poll_table *wait, 933 + static __poll_t cache_poll(struct file *filp, poll_table *wait, 934 934 struct cache_detail *cd) 935 935 { 936 - unsigned int mask; 936 + __poll_t mask; 937 937 struct cache_reader *rp = filp->private_data; 938 938 struct cache_queue *cq; 939 939 ··· 1501 1501 return cache_write(filp, buf, count, ppos, cd); 1502 1502 } 1503 1503 1504 - static unsigned int cache_poll_procfs(struct file *filp, poll_table *wait) 1504 + static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait) 1505 1505 { 1506 1506 struct cache_detail *cd = PDE_DATA(file_inode(filp)); 1507 1507 ··· 1720 1720 return cache_write(filp, buf, count, ppos, cd); 1721 1721 } 1722 1722 1723 - static unsigned int cache_poll_pipefs(struct file *filp, poll_table *wait) 1723 + static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait) 1724 1724 { 1725 1725 struct cache_detail *cd = RPC_I(file_inode(filp))->private; 1726 1726
+2 -2
net/sunrpc/rpc_pipe.c
··· 340 340 return res; 341 341 } 342 342 343 - static unsigned int 343 + static __poll_t 344 344 rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait) 345 345 { 346 346 struct inode *inode = file_inode(filp); 347 347 struct rpc_inode *rpci = RPC_I(inode); 348 - unsigned int mask = POLLOUT | POLLWRNORM; 348 + __poll_t mask = POLLOUT | POLLWRNORM; 349 349 350 350 poll_wait(filp, &rpci->waitq, wait); 351 351
+2 -2
net/tipc/socket.c
··· 710 710 * imply that the operation will succeed, merely that it should be performed 711 711 * and will not block. 712 712 */ 713 - static unsigned int tipc_poll(struct file *file, struct socket *sock, 713 + static __poll_t tipc_poll(struct file *file, struct socket *sock, 714 714 poll_table *wait) 715 715 { 716 716 struct sock *sk = sock->sk; 717 717 struct tipc_sock *tsk = tipc_sk(sk); 718 718 struct tipc_group *grp = tsk->group; 719 - u32 revents = 0; 719 + __poll_t revents = 0; 720 720 721 721 sock_poll_wait(file, sk_sleep(sk), wait); 722 722
+7 -6
net/unix/af_unix.c
··· 638 638 static int unix_socketpair(struct socket *, struct socket *); 639 639 static int unix_accept(struct socket *, struct socket *, int, bool); 640 640 static int unix_getname(struct socket *, struct sockaddr *, int *, int); 641 - static unsigned int unix_poll(struct file *, struct socket *, poll_table *); 642 - static unsigned int unix_dgram_poll(struct file *, struct socket *, 641 + static __poll_t unix_poll(struct file *, struct socket *, poll_table *); 642 + static __poll_t unix_dgram_poll(struct file *, struct socket *, 643 643 poll_table *); 644 644 static int unix_ioctl(struct socket *, unsigned int, unsigned long); 645 645 static int unix_shutdown(struct socket *, int); ··· 2640 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 2645 struct sock *sk = sock->sk; 2646 - unsigned int mask; 2646 + __poll_t mask; 2647 2647 2648 2648 sock_poll_wait(file, sk_sleep(sk), wait); 2649 2649 mask = 0; ··· 2675 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 2679 poll_table *wait) 2680 2680 { 2681 2681 struct sock *sk = sock->sk, *other; 2682 - unsigned int mask, writable; 2682 + unsigned int writable; 2683 + __poll_t mask; 2683 2684 2684 2685 sock_poll_wait(file, sk_sleep(sk), wait); 2685 2686 mask = 0;
+2 -2
net/vmw_vsock/af_vsock.c
··· 850 850 return err; 851 851 } 852 852 853 - static unsigned int vsock_poll(struct file *file, struct socket *sock, 853 + static __poll_t vsock_poll(struct file *file, struct socket *sock, 854 854 poll_table *wait) 855 855 { 856 856 struct sock *sk; 857 - unsigned int mask; 857 + __poll_t mask; 858 858 struct vsock_sock *vsk; 859 859 860 860 sk = sock->sk;