summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-03 06:39:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-28 11:06:58 -0500
commitafc9a42b7464f76e1388cad87d8543c69f6f74ed (patch)
treeabc3abe50053edd3dcf0b04c2d2a63640ee89f6b /drivers/infiniband
parentc23e0cb81e4021b9712b1093d54713991fd9b7c2 (diff)
the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/ucm.c4
-rw-r--r--drivers/infiniband/core/ucma.c4
-rw-r--r--drivers/infiniband/core/user_mad.c4
-rw-r--r--drivers/infiniband/core/uverbs_main.c8
-rw-r--r--drivers/infiniband/hw/hfi1/file_ops.c18
-rw-r--r--drivers/infiniband/hw/qib/qib_file_ops.c14
6 files changed, 26 insertions, 26 deletions
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c
index f2a7f62c2834..f7adae0adc19 100644
--- a/drivers/infiniband/core/ucm.c
+++ b/drivers/infiniband/core/ucm.c
@@ -1130,11 +1130,11 @@ static ssize_t ib_ucm_write(struct file *filp, const char __user *buf,
1130 return result; 1130 return result;
1131} 1131}
1132 1132
1133static unsigned int ib_ucm_poll(struct file *filp, 1133static __poll_t ib_ucm_poll(struct file *filp,
1134 struct poll_table_struct *wait) 1134 struct poll_table_struct *wait)
1135{ 1135{
1136 struct ib_ucm_file *file = filp->private_data; 1136 struct ib_ucm_file *file = filp->private_data;
1137 unsigned int mask = 0; 1137 __poll_t mask = 0;
1138 1138
1139 poll_wait(filp, &file->poll_wait, wait); 1139 poll_wait(filp, &file->poll_wait, wait);
1140 1140
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index eb85b546e223..e4be89d1f3d8 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -1630,10 +1630,10 @@ static ssize_t ucma_write(struct file *filp, const char __user *buf,
1630 return ret; 1630 return ret;
1631} 1631}
1632 1632
1633static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait) 1633static __poll_t ucma_poll(struct file *filp, struct poll_table_struct *wait)
1634{ 1634{
1635 struct ucma_file *file = filp->private_data; 1635 struct ucma_file *file = filp->private_data;
1636 unsigned int mask = 0; 1636 __poll_t mask = 0;
1637 1637
1638 poll_wait(filp, &file->poll_wait, wait); 1638 poll_wait(filp, &file->poll_wait, wait);
1639 1639
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index 4b64dd02e090..0c32d10f23ff 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -617,12 +617,12 @@ err:
617 return ret; 617 return ret;
618} 618}
619 619
620static unsigned int ib_umad_poll(struct file *filp, struct poll_table_struct *wait) 620static __poll_t ib_umad_poll(struct file *filp, struct poll_table_struct *wait)
621{ 621{
622 struct ib_umad_file *file = filp->private_data; 622 struct ib_umad_file *file = filp->private_data;
623 623
624 /* we will always be able to post a MAD send */ 624 /* we will always be able to post a MAD send */
625 unsigned int mask = POLLOUT | POLLWRNORM; 625 __poll_t mask = POLLOUT | POLLWRNORM;
626 626
627 poll_wait(filp, &file->recv_wait, wait); 627 poll_wait(filp, &file->recv_wait, wait);
628 628
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 381fd9c096ae..5f216ffb465a 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -339,11 +339,11 @@ static ssize_t ib_uverbs_comp_event_read(struct file *filp, char __user *buf,
339 sizeof(struct ib_uverbs_comp_event_desc)); 339 sizeof(struct ib_uverbs_comp_event_desc));
340} 340}
341 341
342static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue, 342static __poll_t ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue,
343 struct file *filp, 343 struct file *filp,
344 struct poll_table_struct *wait) 344 struct poll_table_struct *wait)
345{ 345{
346 unsigned int pollflags = 0; 346 __poll_t pollflags = 0;
347 347
348 poll_wait(filp, &ev_queue->poll_wait, wait); 348 poll_wait(filp, &ev_queue->poll_wait, wait);
349 349
@@ -355,13 +355,13 @@ static unsigned int ib_uverbs_event_poll(struct ib_uverbs_event_queue *ev_queue,
355 return pollflags; 355 return pollflags;
356} 356}
357 357
358static unsigned int ib_uverbs_async_event_poll(struct file *filp, 358static __poll_t ib_uverbs_async_event_poll(struct file *filp,
359 struct poll_table_struct *wait) 359 struct poll_table_struct *wait)
360{ 360{
361 return ib_uverbs_event_poll(filp->private_data, filp, wait); 361 return ib_uverbs_event_poll(filp->private_data, filp, wait);
362} 362}
363 363
364static unsigned int ib_uverbs_comp_event_poll(struct file *filp, 364static __poll_t ib_uverbs_comp_event_poll(struct file *filp,
365 struct poll_table_struct *wait) 365 struct poll_table_struct *wait)
366{ 366{
367 struct ib_uverbs_completion_event_file *comp_ev_file = 367 struct ib_uverbs_completion_event_file *comp_ev_file =
diff --git a/drivers/infiniband/hw/hfi1/file_ops.c b/drivers/infiniband/hw/hfi1/file_ops.c
index 7750a9c38b06..82086241aac3 100644
--- a/drivers/infiniband/hw/hfi1/file_ops.c
+++ b/drivers/infiniband/hw/hfi1/file_ops.c
@@ -74,7 +74,7 @@
74static int hfi1_file_open(struct inode *inode, struct file *fp); 74static int hfi1_file_open(struct inode *inode, struct file *fp);
75static int hfi1_file_close(struct inode *inode, struct file *fp); 75static int hfi1_file_close(struct inode *inode, struct file *fp);
76static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from); 76static ssize_t hfi1_write_iter(struct kiocb *kiocb, struct iov_iter *from);
77static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt); 77static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt);
78static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma); 78static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma);
79 79
80static u64 kvirt_to_phys(void *addr); 80static u64 kvirt_to_phys(void *addr);
@@ -102,8 +102,8 @@ static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd,
102 struct hfi1_user_info *uinfo, 102 struct hfi1_user_info *uinfo,
103 struct hfi1_ctxtdata **cd); 103 struct hfi1_ctxtdata **cd);
104static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt); 104static void deallocate_ctxt(struct hfi1_ctxtdata *uctxt);
105static unsigned int poll_urgent(struct file *fp, struct poll_table_struct *pt); 105static __poll_t poll_urgent(struct file *fp, struct poll_table_struct *pt);
106static unsigned int poll_next(struct file *fp, struct poll_table_struct *pt); 106static __poll_t poll_next(struct file *fp, struct poll_table_struct *pt);
107static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, 107static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt,
108 unsigned long arg); 108 unsigned long arg);
109static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg); 109static int set_ctxt_pkey(struct hfi1_ctxtdata *uctxt, unsigned long arg);
@@ -607,10 +607,10 @@ static int vma_fault(struct vm_fault *vmf)
607 return 0; 607 return 0;
608} 608}
609 609
610static unsigned int hfi1_poll(struct file *fp, struct poll_table_struct *pt) 610static __poll_t hfi1_poll(struct file *fp, struct poll_table_struct *pt)
611{ 611{
612 struct hfi1_ctxtdata *uctxt; 612 struct hfi1_ctxtdata *uctxt;
613 unsigned pollflag; 613 __poll_t pollflag;
614 614
615 uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt; 615 uctxt = ((struct hfi1_filedata *)fp->private_data)->uctxt;
616 if (!uctxt) 616 if (!uctxt)
@@ -1425,13 +1425,13 @@ static int user_exp_rcv_invalid(struct hfi1_filedata *fd, unsigned long arg,
1425 return ret; 1425 return ret;
1426} 1426}
1427 1427
1428static unsigned int poll_urgent(struct file *fp, 1428static __poll_t poll_urgent(struct file *fp,
1429 struct poll_table_struct *pt) 1429 struct poll_table_struct *pt)
1430{ 1430{
1431 struct hfi1_filedata *fd = fp->private_data; 1431 struct hfi1_filedata *fd = fp->private_data;
1432 struct hfi1_ctxtdata *uctxt = fd->uctxt; 1432 struct hfi1_ctxtdata *uctxt = fd->uctxt;
1433 struct hfi1_devdata *dd = uctxt->dd; 1433 struct hfi1_devdata *dd = uctxt->dd;
1434 unsigned pollflag; 1434 __poll_t pollflag;
1435 1435
1436 poll_wait(fp, &uctxt->wait, pt); 1436 poll_wait(fp, &uctxt->wait, pt);
1437 1437
@@ -1448,13 +1448,13 @@ static unsigned int poll_urgent(struct file *fp,
1448 return pollflag; 1448 return pollflag;
1449} 1449}
1450 1450
1451static unsigned int poll_next(struct file *fp, 1451static __poll_t poll_next(struct file *fp,
1452 struct poll_table_struct *pt) 1452 struct poll_table_struct *pt)
1453{ 1453{
1454 struct hfi1_filedata *fd = fp->private_data; 1454 struct hfi1_filedata *fd = fp->private_data;
1455 struct hfi1_ctxtdata *uctxt = fd->uctxt; 1455 struct hfi1_ctxtdata *uctxt = fd->uctxt;
1456 struct hfi1_devdata *dd = uctxt->dd; 1456 struct hfi1_devdata *dd = uctxt->dd;
1457 unsigned pollflag; 1457 __poll_t pollflag;
1458 1458
1459 poll_wait(fp, &uctxt->wait, pt); 1459 poll_wait(fp, &uctxt->wait, pt);
1460 1460
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c
index 2d6a191afec0..b67df63bd64b 100644
--- a/drivers/infiniband/hw/qib/qib_file_ops.c
+++ b/drivers/infiniband/hw/qib/qib_file_ops.c
@@ -58,7 +58,7 @@ static int qib_open(struct inode *, struct file *);
58static int qib_close(struct inode *, struct file *); 58static int qib_close(struct inode *, struct file *);
59static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *); 59static ssize_t qib_write(struct file *, const char __user *, size_t, loff_t *);
60static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *); 60static ssize_t qib_write_iter(struct kiocb *, struct iov_iter *);
61static unsigned int qib_poll(struct file *, struct poll_table_struct *); 61static __poll_t qib_poll(struct file *, struct poll_table_struct *);
62static int qib_mmapf(struct file *, struct vm_area_struct *); 62static int qib_mmapf(struct file *, struct vm_area_struct *);
63 63
64/* 64/*
@@ -1092,12 +1092,12 @@ bail:
1092 return ret; 1092 return ret;
1093} 1093}
1094 1094
1095static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd, 1095static __poll_t qib_poll_urgent(struct qib_ctxtdata *rcd,
1096 struct file *fp, 1096 struct file *fp,
1097 struct poll_table_struct *pt) 1097 struct poll_table_struct *pt)
1098{ 1098{
1099 struct qib_devdata *dd = rcd->dd; 1099 struct qib_devdata *dd = rcd->dd;
1100 unsigned pollflag; 1100 __poll_t pollflag;
1101 1101
1102 poll_wait(fp, &rcd->wait, pt); 1102 poll_wait(fp, &rcd->wait, pt);
1103 1103
@@ -1114,12 +1114,12 @@ static unsigned int qib_poll_urgent(struct qib_ctxtdata *rcd,
1114 return pollflag; 1114 return pollflag;
1115} 1115}
1116 1116
1117static unsigned int qib_poll_next(struct qib_ctxtdata *rcd, 1117static __poll_t qib_poll_next(struct qib_ctxtdata *rcd,
1118 struct file *fp, 1118 struct file *fp,
1119 struct poll_table_struct *pt) 1119 struct poll_table_struct *pt)
1120{ 1120{
1121 struct qib_devdata *dd = rcd->dd; 1121 struct qib_devdata *dd = rcd->dd;
1122 unsigned pollflag; 1122 __poll_t pollflag;
1123 1123
1124 poll_wait(fp, &rcd->wait, pt); 1124 poll_wait(fp, &rcd->wait, pt);
1125 1125
@@ -1135,10 +1135,10 @@ static unsigned int qib_poll_next(struct qib_ctxtdata *rcd,
1135 return pollflag; 1135 return pollflag;
1136} 1136}
1137 1137
1138static unsigned int qib_poll(struct file *fp, struct poll_table_struct *pt) 1138static __poll_t qib_poll(struct file *fp, struct poll_table_struct *pt)
1139{ 1139{
1140 struct qib_ctxtdata *rcd; 1140 struct qib_ctxtdata *rcd;
1141 unsigned pollflag; 1141 __poll_t pollflag;
1142 1142
1143 rcd = ctxt_fp(fp); 1143 rcd = ctxt_fp(fp);
1144 if (!rcd) 1144 if (!rcd)