aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_file_ops.c
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/hw/qib/qib_file_ops.c
parentc23e0cb81e4021b9712b1093d54713991fd9b7c2 (diff)
the rest of drivers/*: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_file_ops.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_file_ops.c14
1 files changed, 7 insertions, 7 deletions
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)