]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: annotate ->poll() instances
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 3 Jul 2017 04:01:49 +0000 (00:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 27 Nov 2017 21:20:04 +0000 (16:20 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
40 files changed:
drivers/staging/irda/net/af_irda.c
drivers/staging/irda/net/irnet/irnet_ppp.c
drivers/staging/irda/net/irnet/irnet_ppp.h
include/linux/skbuff.h
include/net/bluetooth/bluetooth.h
include/net/inet_connection_sock.h
include/net/iucv/af_iucv.h
include/net/sctp/sctp.h
include/net/sock.h
include/net/tcp.h
include/net/udp.h
net/atm/common.c
net/atm/common.h
net/batman-adv/icmp_socket.c
net/batman-adv/log.c
net/bluetooth/af_bluetooth.c
net/caif/caif_socket.c
net/core/datagram.c
net/core/sock.c
net/dccp/dccp.h
net/dccp/proto.c
net/decnet/af_decnet.c
net/ipv4/tcp.c
net/ipv4/udp.c
net/iucv/af_iucv.c
net/nfc/llcp_sock.c
net/nfc/nci/uart.c
net/packet/af_packet.c
net/phonet/socket.c
net/rds/af_rds.c
net/rfkill/core.c
net/rxrpc/af_rxrpc.c
net/sctp/socket.c
net/smc/af_smc.c
net/socket.c
net/sunrpc/cache.c
net/sunrpc/rpc_pipe.c
net/tipc/socket.c
net/unix/af_unix.c
net/vmw_vsock/af_vsock.c

index b82a47b9ef0be1e646f04fa59ae114f1c3c51fcb..f1d128b2dae9eac1f7ebc483b031966d7d3fe649 100644 (file)
@@ -1737,12 +1737,12 @@ static int irda_shutdown(struct socket *sock, int how)
 /*
  * Function irda_poll (file, sock, wait)
  */
-static unsigned int irda_poll(struct file * file, struct socket *sock,
+static __poll_t irda_poll(struct file * file, struct socket *sock,
                              poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct irda_sock *self = irda_sk(sk);
-       unsigned int mask;
+       __poll_t mask;
 
        poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
index 7025dcb853d06bc1e47de86682464ba438f17d85..75bf9e34311d5c2cb52de8df650b843163022df8 100644 (file)
@@ -419,12 +419,12 @@ irnet_ctrl_read(irnet_socket *    ap,
  * Poll : called when someone do a select on /dev/irnet.
  * Just check if there are new events...
  */
-static inline unsigned int
+static inline __poll_t
 irnet_ctrl_poll(irnet_socket * ap,
                struct file *   file,
                poll_table *    wait)
 {
-  unsigned int mask;
+  __poll_t mask;
 
   DENTER(CTRL_TRACE, "(ap=0x%p)\n", ap);
 
@@ -608,12 +608,12 @@ dev_irnet_read(struct file *      file,
 /*
  * Poll : called when someone do a select on /dev/irnet
  */
-static unsigned int
+static __poll_t
 dev_irnet_poll(struct file *   file,
               poll_table *     wait)
 {
   irnet_socket *       ap = file->private_data;
-  unsigned int         mask;
+  __poll_t             mask;
 
   DENTER(FS_TRACE, "(file=0x%p, ap=0x%p)\n",
         file, ap);
index 32061442cc8e935bb18785b66db75411874dd5f2..e6d5aa2a8aac3bc59f9b00dffe05665e8f820a62 100644 (file)
@@ -70,7 +70,7 @@ static ssize_t
                       char __user *,
                       size_t,
                       loff_t *);
-static unsigned int
+static __poll_t
        dev_irnet_poll(struct file *,
                       poll_table *);
 static long
index bc486ef23f20f91ce3ed183e935399d1e4c55e18..07564bb28c1f0b52ebc74b7aae1ad92581cfe613 100644 (file)
@@ -3242,7 +3242,7 @@ struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
                                    int *peeked, int *off, int *err);
 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock,
                                  int *err);
-unsigned int datagram_poll(struct file *file, struct socket *sock,
+__poll_t datagram_poll(struct file *file, struct socket *sock,
                           struct poll_table_struct *wait);
 int skb_copy_datagram_iter(const struct sk_buff *from, int offset,
                           struct iov_iter *to, int size);
index e89cff0c4c236aa2a755959e44280fc1b58af078..ec9d6bc658559c55b64ac3c1d23b4e1166cc4b04 100644 (file)
@@ -271,7 +271,7 @@ int  bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
                     int flags);
 int  bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
                            size_t len, int flags);
-uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
+__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
 int  bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
 int  bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
 int  bt_sock_wait_ready(struct sock *sk, unsigned long flags);
index 0358745ea05983c735d5ab598ff5ed291cda7559..ec72cdb5bc396d18c51150e7c50d35a2dabd8e0c 100644 (file)
@@ -305,7 +305,7 @@ void inet_csk_prepare_forced_close(struct sock *sk);
 /*
  * LISTEN is a special case for poll..
  */
-static inline unsigned int inet_csk_listen_poll(const struct sock *sk)
+static inline __poll_t inet_csk_listen_poll(const struct sock *sk)
 {
        return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ?
                        (POLLIN | POLLRDNORM) : 0;
index 070e93a17c59a49e9c173ac7f2f8cd9f89672581..f4c21b5a1242baac0415b3dde8fbc30524690ee7 100644 (file)
@@ -153,7 +153,7 @@ struct iucv_sock_list {
        atomic_t          autobind_name;
 };
 
-unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
+__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
                            poll_table *wait);
 void iucv_sock_link(struct iucv_sock_list *l, struct sock *s);
 void iucv_sock_unlink(struct iucv_sock_list *l, struct sock *s);
index 749a428824371a27473a4715e33d97d691cdfc97..6b765de288d8a781080331df4298f2413fa84728 100644 (file)
@@ -107,7 +107,7 @@ int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
 int sctp_inet_listen(struct socket *sock, int backlog);
 void sctp_write_space(struct sock *sk);
 void sctp_data_ready(struct sock *sk);
-unsigned int sctp_poll(struct file *file, struct socket *sock,
+__poll_t sctp_poll(struct file *file, struct socket *sock,
                poll_table *wait);
 void sctp_sock_rfree(struct sk_buff *skb);
 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
index 79e1a2c7912c03d8281d449609d57cc909138a3b..b330783335182298a0e013dcb8e45f54163eccec 100644 (file)
@@ -1582,7 +1582,7 @@ int sock_no_connect(struct socket *, struct sockaddr *, int, int);
 int sock_no_socketpair(struct socket *, struct socket *);
 int sock_no_accept(struct socket *, struct socket *, int, bool);
 int sock_no_getname(struct socket *, struct sockaddr *, int *, int);
-unsigned int sock_no_poll(struct file *, struct socket *,
+__poll_t sock_no_poll(struct file *, struct socket *,
                          struct poll_table_struct *);
 int sock_no_ioctl(struct socket *, unsigned int, unsigned long);
 int sock_no_listen(struct socket *, int);
index 4e09398009c10a72478b43d3cffc24ba01612b91..a6343271c629b4f18e8bf1dc3187fd87990549b5 100644 (file)
@@ -387,7 +387,7 @@ bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst);
 void tcp_close(struct sock *sk, long timeout);
 void tcp_init_sock(struct sock *sk);
 void tcp_init_transfer(struct sock *sk, int bpf_op);
-unsigned int tcp_poll(struct file *file, struct socket *sock,
+__poll_t tcp_poll(struct file *file, struct socket *sock,
                      struct poll_table_struct *wait);
 int tcp_getsockopt(struct sock *sk, int level, int optname,
                   char __user *optval, int __user *optlen);
index 6c759c8594e25c7f9f79dc6bf76325c39e705f94..850a8e581cced482c79113c47b6ad2ef2ad87e70 100644 (file)
@@ -275,7 +275,7 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
 int udp_init_sock(struct sock *sk);
 int __udp_disconnect(struct sock *sk, int flags);
 int udp_disconnect(struct sock *sk, int flags);
-unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait);
+__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait);
 struct sk_buff *skb_udp_tunnel_segment(struct sk_buff *skb,
                                       netdev_features_t features,
                                       bool is_ipv6);
index 8a4f99114cd2b5c2a80fa964b00f52a10160b36f..8f12f1c6fa14342f59dc0b6afbcab989191525dc 100644 (file)
@@ -648,11 +648,11 @@ out:
        return error;
 }
 
-unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait)
+__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct atm_vcc *vcc;
-       unsigned int mask;
+       __poll_t mask;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
index d9d583712a91000fff45dfb543e8ece8d8bf766b..5850649068bb29b3d688b4c8e29373b4a7f7592d 100644 (file)
@@ -17,7 +17,7 @@ int vcc_connect(struct socket *sock, int itf, short vpi, int vci);
 int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
                int flags);
 int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len);
-unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait);
+__poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait);
 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
 int vcc_setsockopt(struct socket *sock, int level, int optname,
index bded31121d122e7d9053fc0731e9b61c9efef73c..a98e0a986cefe5c20434c2ab0a028a423bd1229d 100644 (file)
@@ -292,7 +292,7 @@ out:
        return len;
 }
 
-static unsigned int batadv_socket_poll(struct file *file, poll_table *wait)
+static __poll_t batadv_socket_poll(struct file *file, poll_table *wait)
 {
        struct batadv_socket_client *socket_client = file->private_data;
 
index 4ef4bde2cc2d387d0a2020389889f10399349e0a..76451460c98d36af2c7bed947184897f72ad9908 100644 (file)
@@ -176,7 +176,7 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,
        return error;
 }
 
-static unsigned int batadv_log_poll(struct file *file, poll_table *wait)
+static __poll_t batadv_log_poll(struct file *file, poll_table *wait)
 {
        struct batadv_priv *bat_priv = file->private_data;
        struct batadv_priv_debug_log *debug_log = bat_priv->debug_log;
index 91e3ba28070647bc93960c1d729aa200b666b249..671b907ba6780baa7370c02109c5931f46fbdd50 100644 (file)
@@ -421,7 +421,7 @@ out:
 }
 EXPORT_SYMBOL(bt_sock_stream_recvmsg);
 
-static inline unsigned int bt_accept_poll(struct sock *parent)
+static inline __poll_t bt_accept_poll(struct sock *parent)
 {
        struct bt_sock *s, *n;
        struct sock *sk;
@@ -437,11 +437,11 @@ static inline unsigned int bt_accept_poll(struct sock *parent)
        return 0;
 }
 
-unsigned int bt_sock_poll(struct file *file, struct socket *sock,
+__poll_t bt_sock_poll(struct file *file, struct socket *sock,
                          poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        BT_DBG("sock %p, sk %p", sock, sk);
 
index 632d5a416d973306aa01552acc0a8bf80b2177aa..64048cec41e0f65c9bd0384941a024541eb4f5c9 100644 (file)
@@ -934,11 +934,11 @@ static int caif_release(struct socket *sock)
 }
 
 /* Copied from af_unix.c:unix_poll(), added CAIF tx_flow handling */
-static unsigned int caif_poll(struct file *file,
+static __poll_t caif_poll(struct file *file,
                              struct socket *sock, poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask;
+       __poll_t mask;
        struct caifsock *cf_sk = container_of(sk, struct caifsock, sk);
 
        sock_poll_wait(file, sk_sleep(sk), wait);
index 000da13c01f2f2593ebacbb20e5c62257a9e03b9..b7d9293940b5a58417784f84d77b709adf68c920 100644 (file)
@@ -831,11 +831,11 @@ EXPORT_SYMBOL(skb_copy_and_csum_datagram_msg);
  *     and you use a different write policy from sock_writeable()
  *     then please supply your own write_space callback.
  */
-unsigned int datagram_poll(struct file *file, struct socket *sock,
+__poll_t datagram_poll(struct file *file, struct socket *sock,
                           poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask;
+       __poll_t mask;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
index c0b5b2f17412ec3ac3d4b1cf400fb2fbcabf086f..1211159718adc66b15b6454f3ff2c60ec0379b18 100644 (file)
@@ -2496,7 +2496,7 @@ int sock_no_getname(struct socket *sock, struct sockaddr *saddr,
 }
 EXPORT_SYMBOL(sock_no_getname);
 
-unsigned int sock_no_poll(struct file *file, struct socket *sock, poll_table *pt)
+__poll_t sock_no_poll(struct file *file, struct socket *sock, poll_table *pt)
 {
        return 0;
 }
index 0c55ffb859bf5ddcb34d08ff707113f48e4d500d..f91e3816806baae37e0e0793dcef72e8b291777e 100644 (file)
@@ -316,7 +316,7 @@ int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
                 int flags, int *addr_len);
 void dccp_shutdown(struct sock *sk, int how);
 int inet_dccp_listen(struct socket *sock, int backlog);
-unsigned int dccp_poll(struct file *file, struct socket *sock,
+__poll_t dccp_poll(struct file *file, struct socket *sock,
                       poll_table *wait);
 int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len);
 void dccp_req_err(struct sock *sk, u64 seq);
index b68168fcc06aa1981258eca4857511329af62f9a..cfa9ca9939cef74591983472695c521e0c479bbd 100644 (file)
@@ -313,10 +313,10 @@ EXPORT_SYMBOL_GPL(dccp_disconnect);
  *     take care of normal races (between the test and the event) and we don't
  *     go look at any of the socket buffers directly.
  */
-unsigned int dccp_poll(struct file *file, struct socket *sock,
+__poll_t dccp_poll(struct file *file, struct socket *sock,
                       poll_table *wait)
 {
-       unsigned int mask;
+       __poll_t mask;
        struct sock *sk = sock->sk;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
index 518cea17b81139a3f4a907e6e2aff14b00fdd6b9..9c2dde819817d034dc16b7881648368769c96ae2 100644 (file)
@@ -1209,11 +1209,11 @@ static int dn_getname(struct socket *sock, struct sockaddr *uaddr,int *uaddr_len
 }
 
 
-static unsigned int dn_poll(struct file *file, struct socket *sock, poll_table  *wait)
+static __poll_t dn_poll(struct file *file, struct socket *sock, poll_table  *wait)
 {
        struct sock *sk = sock->sk;
        struct dn_scp *scp = DN_SK(sk);
-       int mask = datagram_poll(file, sock, wait);
+       __poll_t mask = datagram_poll(file, sock, wait);
 
        if (!skb_queue_empty(&scp->other_receive_queue))
                mask |= POLLRDBAND;
index bf97317e6c974285a652664d02e8b2c48a8cfe96..0b8ca689353ba5d63302f42b0514ca0d3f8b9b97 100644 (file)
@@ -493,9 +493,9 @@ static void tcp_tx_timestamp(struct sock *sk, u16 tsflags)
  *     take care of normal races (between the test and the event) and we don't
  *     go look at any of the socket buffers directly.
  */
-unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
+__poll_t tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
 {
-       unsigned int mask;
+       __poll_t mask;
        struct sock *sk = sock->sk;
        const struct tcp_sock *tp = tcp_sk(sk);
        int state;
index e4ff25c947c5e5b21ac4986d0327339f4f60d321..ef45adfc0edb0a2c104911b7cf0d8bf91c90719b 100644 (file)
@@ -2502,9 +2502,9 @@ int compat_udp_getsockopt(struct sock *sk, int level, int optname,
  *     but then block when reading it. Add special case code
  *     to work around these arguably broken applications.
  */
-unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait)
+__poll_t udp_poll(struct file *file, struct socket *sock, poll_table *wait)
 {
-       unsigned int mask = datagram_poll(file, sock, wait);
+       __poll_t mask = datagram_poll(file, sock, wait);
        struct sock *sk = sock->sk;
 
        if (!skb_queue_empty(&udp_sk(sk)->reader_queue))
index 148533169b1ddb6d20aea50523e6311188e80f13..64331158d6938f42709286efa04e2c3e67073208 100644 (file)
@@ -1474,7 +1474,7 @@ done:
        return copied;
 }
 
-static inline unsigned int iucv_accept_poll(struct sock *parent)
+static inline __poll_t iucv_accept_poll(struct sock *parent)
 {
        struct iucv_sock *isk, *n;
        struct sock *sk;
@@ -1489,11 +1489,11 @@ static inline unsigned int iucv_accept_poll(struct sock *parent)
        return 0;
 }
 
-unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
+__poll_t iucv_sock_poll(struct file *file, struct socket *sock,
                            poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
 
index fb7afcaa30047dbb3c1dd6287317c4ad7d3b186e..985909f105eb784fa41829e7703c6b236b3481fa 100644 (file)
@@ -531,7 +531,7 @@ static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr,
        return 0;
 }
 
-static inline unsigned int llcp_accept_poll(struct sock *parent)
+static inline __poll_t llcp_accept_poll(struct sock *parent)
 {
        struct nfc_llcp_sock *llcp_sock, *parent_sock;
        struct sock *sk;
@@ -549,11 +549,11 @@ static inline unsigned int llcp_accept_poll(struct sock *parent)
        return 0;
 }
 
-static unsigned int llcp_sock_poll(struct file *file, struct socket *sock,
+static __poll_t llcp_sock_poll(struct file *file, struct socket *sock,
                                   poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        pr_debug("%p\n", sk);
 
index 8d104c1db6288109a6b8da0eb5b62c364ff3b389..a66f102c6c0138cf9296cb32733354a4401a7fcd 100644 (file)
@@ -305,7 +305,7 @@ static ssize_t nci_uart_tty_write(struct tty_struct *tty, struct file *file,
        return 0;
 }
 
-static unsigned int nci_uart_tty_poll(struct tty_struct *tty,
+static __poll_t nci_uart_tty_poll(struct tty_struct *tty,
                                      struct file *filp, poll_table *wait)
 {
        return 0;
index 737092ca9b4eed464b6c0907d85b679ae4da6046..ef6340e2406aa885317d059332b2e796201f292c 100644 (file)
@@ -4080,12 +4080,12 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
        return 0;
 }
 
-static unsigned int packet_poll(struct file *file, struct socket *sock,
+static __poll_t packet_poll(struct file *file, struct socket *sock,
                                poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct packet_sock *po = pkt_sk(sk);
-       unsigned int mask = datagram_poll(file, sock, wait);
+       __poll_t mask = datagram_poll(file, sock, wait);
 
        spin_lock_bh(&sk->sk_receive_queue.lock);
        if (po->rx_ring.pg_vec) {
index 1b050dd17393c1289d3b04628b440d9011e5eb37..44417480dab7ed9e01c053c109d4d041c337bb22 100644 (file)
@@ -341,12 +341,12 @@ static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
        return 0;
 }
 
-static unsigned int pn_socket_poll(struct file *file, struct socket *sock,
+static __poll_t pn_socket_poll(struct file *file, struct socket *sock,
                                        poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct pep_sock *pn = pep_sk(sk);
-       unsigned int mask = 0;
+       __poll_t mask = 0;
 
        poll_wait(file, sk_sleep(sk), wait);
 
index b405f77d664ca0a10472f78c66294c21fcc03680..88aa8ad0f5b67c251e2830d1d6244df08ba91471 100644 (file)
@@ -152,12 +152,12 @@ static int rds_getname(struct socket *sock, struct sockaddr *uaddr,
  * to send to a congested destination, the system call may still fail (and
  * return ENOBUFS).
  */
-static unsigned int rds_poll(struct file *file, struct socket *sock,
+static __poll_t rds_poll(struct file *file, struct socket *sock,
                             poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct rds_sock *rs = rds_sk_to_rs(sk);
-       unsigned int mask = 0;
+       __poll_t mask = 0;
        unsigned long flags;
 
        poll_wait(file, sk_sleep(sk), wait);
index 2064c3a35ef84d4c54c065e8b54d524cdb407736..124c77e9d05827928b1817163f235fbba6daa979 100644 (file)
@@ -1139,10 +1139,10 @@ static int rfkill_fop_open(struct inode *inode, struct file *file)
        return -ENOMEM;
 }
 
-static unsigned int rfkill_fop_poll(struct file *file, poll_table *wait)
+static __poll_t rfkill_fop_poll(struct file *file, poll_table *wait)
 {
        struct rfkill_data *data = file->private_data;
-       unsigned int res = POLLOUT | POLLWRNORM;
+       __poll_t res = POLLOUT | POLLWRNORM;
 
        poll_wait(file, &data->read_wait, wait);
 
index 9b5c46b052fd07cb9ee82cea6fef0be3e32ffb4e..f8c8953d9295aacc7602e3cb5bb5a455b395421a 100644 (file)
@@ -725,12 +725,12 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
 /*
  * permit an RxRPC socket to be polled
  */
-static unsigned int rxrpc_poll(struct file *file, struct socket *sock,
+static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
                               poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct rxrpc_sock *rx = rxrpc_sk(sk);
-       unsigned int mask;
+       __poll_t mask;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
index 3204a9b294071db44c9de0e503e1bd5d7cd6f52b..8d3ac79f82e5f241744a473537fe9d90c8a9ff67 100644 (file)
@@ -7497,11 +7497,11 @@ out:
  * here, again, by modeling the current TCP/UDP code.  We don't have
  * a good way to test with it yet.
  */
-unsigned int sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
+__poll_t sctp_poll(struct file *file, struct socket *sock, poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct sctp_sock *sp = sctp_sk(sk);
-       unsigned int mask;
+       __poll_t mask;
 
        poll_wait(file, sk_sleep(sk), wait);
 
index ae59826230be26b7583f2bc6fbfa00f87c295a69..449f62e1e270995e00a91b20f49e0f67b7345fef 100644 (file)
@@ -1107,7 +1107,7 @@ out:
        return rc;
 }
 
-static unsigned int smc_accept_poll(struct sock *parent)
+static __poll_t smc_accept_poll(struct sock *parent)
 {
        struct smc_sock *isk;
        struct sock *sk;
@@ -1126,7 +1126,7 @@ static unsigned int smc_accept_poll(struct sock *parent)
        return 0;
 }
 
-static unsigned int smc_poll(struct file *file, struct socket *sock,
+static __poll_t smc_poll(struct file *file, struct socket *sock,
                             poll_table *wait)
 {
        struct sock *sk = sock->sk;
index dceab22a41fd49caa363b63f8ecb717fabedaae6..3e5e4f13046c1420eb44a3e8f9aba47cd126e79c 100644 (file)
@@ -118,7 +118,7 @@ static ssize_t sock_write_iter(struct kiocb *iocb, struct iov_iter *from);
 static int sock_mmap(struct file *file, struct vm_area_struct *vma);
 
 static int sock_close(struct inode *inode, struct file *file);
-static unsigned int sock_poll(struct file *file,
+static __poll_t sock_poll(struct file *file,
                              struct poll_table_struct *wait);
 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
 #ifdef CONFIG_COMPAT
@@ -1091,7 +1091,7 @@ out_release:
 EXPORT_SYMBOL(sock_create_lite);
 
 /* No kernel lock held - perfect */
-static unsigned int sock_poll(struct file *file, poll_table *wait)
+static __poll_t sock_poll(struct file *file, poll_table *wait)
 {
        __poll_t busy_flag = 0;
        struct socket *sock;
index 79d55d949d9a794a1501aee45f4807e76c7bfa1d..c20ac7af7a4cc7ae48d9fe30e9034aefa5b744d8 100644 (file)
@@ -930,10 +930,10 @@ out:
 
 static DECLARE_WAIT_QUEUE_HEAD(queue_wait);
 
-static unsigned int cache_poll(struct file *filp, poll_table *wait,
+static __poll_t cache_poll(struct file *filp, poll_table *wait,
                               struct cache_detail *cd)
 {
-       unsigned int mask;
+       __poll_t mask;
        struct cache_reader *rp = filp->private_data;
        struct cache_queue *cq;
 
@@ -1501,7 +1501,7 @@ static ssize_t cache_write_procfs(struct file *filp, const char __user *buf,
        return cache_write(filp, buf, count, ppos, cd);
 }
 
-static unsigned int cache_poll_procfs(struct file *filp, poll_table *wait)
+static __poll_t cache_poll_procfs(struct file *filp, poll_table *wait)
 {
        struct cache_detail *cd = PDE_DATA(file_inode(filp));
 
@@ -1720,7 +1720,7 @@ static ssize_t cache_write_pipefs(struct file *filp, const char __user *buf,
        return cache_write(filp, buf, count, ppos, cd);
 }
 
-static unsigned int cache_poll_pipefs(struct file *filp, poll_table *wait)
+static __poll_t cache_poll_pipefs(struct file *filp, poll_table *wait)
 {
        struct cache_detail *cd = RPC_I(file_inode(filp))->private;
 
index 7803f3b6aa53d8c1d798bd6be208f6aa73f4ec78..5c43303257873695be24007be71d463ff9b8228b 100644 (file)
@@ -340,12 +340,12 @@ rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *of
        return res;
 }
 
-static unsigned int
+static __poll_t
 rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait)
 {
        struct inode *inode = file_inode(filp);
        struct rpc_inode *rpci = RPC_I(inode);
-       unsigned int mask = POLLOUT | POLLWRNORM;
+       __poll_t mask = POLLOUT | POLLWRNORM;
 
        poll_wait(filp, &rpci->waitq, wait);
 
index 5d18c0caa92b213740e5c6e3152ec8ce37717dc2..d94d258551907a17277ae1f314c747d62e2c7708 100644 (file)
@@ -710,13 +710,13 @@ static int tipc_getname(struct socket *sock, struct sockaddr *uaddr,
  * imply that the operation will succeed, merely that it should be performed
  * and will not block.
  */
-static unsigned int tipc_poll(struct file *file, struct socket *sock,
+static __poll_t tipc_poll(struct file *file, struct socket *sock,
                              poll_table *wait)
 {
        struct sock *sk = sock->sk;
        struct tipc_sock *tsk = tipc_sk(sk);
        struct tipc_group *grp = tsk->group;
-       u32 revents = 0;
+       __poll_t revents = 0;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
 
index 72957961ac2207f4a0357cd8ecc8150ab3c8662f..6b7678df41e5181d26000781c23864a2e05fa5d7 100644 (file)
@@ -638,8 +638,8 @@ static int unix_stream_connect(struct socket *, struct sockaddr *,
 static int unix_socketpair(struct socket *, struct socket *);
 static int unix_accept(struct socket *, struct socket *, int, bool);
 static int unix_getname(struct socket *, struct sockaddr *, int *, int);
-static unsigned int unix_poll(struct file *, struct socket *, poll_table *);
-static unsigned int unix_dgram_poll(struct file *, struct socket *,
+static __poll_t unix_poll(struct file *, struct socket *, poll_table *);
+static __poll_t unix_dgram_poll(struct file *, struct socket *,
                                    poll_table *);
 static int unix_ioctl(struct socket *, unsigned int, unsigned long);
 static int unix_shutdown(struct socket *, int);
@@ -2640,10 +2640,10 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
        return err;
 }
 
-static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table *wait)
+static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wait)
 {
        struct sock *sk = sock->sk;
-       unsigned int mask;
+       __poll_t mask;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
@@ -2675,11 +2675,12 @@ static unsigned int unix_poll(struct file *file, struct socket *sock, poll_table
        return mask;
 }
 
-static unsigned int unix_dgram_poll(struct file *file, struct socket *sock,
+static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,
                                    poll_table *wait)
 {
        struct sock *sk = sock->sk, *other;
-       unsigned int mask, writable;
+       unsigned int writable;
+       __poll_t mask;
 
        sock_poll_wait(file, sk_sleep(sk), wait);
        mask = 0;
index 5d28abf87fbfe794e44612802d3304e8cf331592..bbd97d3bd8fba847390504d9dbd1d7a2188a0467 100644 (file)
@@ -850,11 +850,11 @@ static int vsock_shutdown(struct socket *sock, int mode)
        return err;
 }
 
-static unsigned int vsock_poll(struct file *file, struct socket *sock,
+static __poll_t vsock_poll(struct file *file, struct socket *sock,
                               poll_table *wait)
 {
        struct sock *sk;
-       unsigned int mask;
+       __poll_t mask;
        struct vsock_sock *vsk;
 
        sk = sock->sk;