summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-07-02 22:33:19 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-27 16:19:59 -0500
commit8153a5ead0898ba5a932282e571dfccd61940bba (patch)
treeb697cf277ab4c96578dcc9596a916808c4682952
parent8b9aab09aaf390b868359b9365b667cf6506473c (diff)
ppc: annotate ->poll() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--arch/powerpc/kernel/rtasd.c2
-rw-r--r--arch/powerpc/platforms/cell/spufs/backing_ops.c6
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c16
-rw-r--r--arch/powerpc/platforms/cell/spufs/hw_ops.c5
-rw-r--r--arch/powerpc/platforms/cell/spufs/spufs.h3
-rw-r--r--arch/powerpc/platforms/powernv/opal-prd.c2
6 files changed, 16 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c
index 0f0b1b2f3b60..1da8b7d8c6ca 100644
--- a/arch/powerpc/kernel/rtasd.c
+++ b/arch/powerpc/kernel/rtasd.c
@@ -388,7 +388,7 @@ out:
388 return error; 388 return error;
389} 389}
390 390
391static unsigned int rtas_log_poll(struct file *file, poll_table * wait) 391static __poll_t rtas_log_poll(struct file *file, poll_table * wait)
392{ 392{
393 poll_wait(file, &rtas_log_wait, wait); 393 poll_wait(file, &rtas_log_wait, wait);
394 if (rtas_log_size) 394 if (rtas_log_size)
diff --git a/arch/powerpc/platforms/cell/spufs/backing_ops.c b/arch/powerpc/platforms/cell/spufs/backing_ops.c
index 6e8a9ef8590e..1a9a756b0b2f 100644
--- a/arch/powerpc/platforms/cell/spufs/backing_ops.c
+++ b/arch/powerpc/platforms/cell/spufs/backing_ops.c
@@ -86,10 +86,10 @@ static u32 spu_backing_mbox_stat_read(struct spu_context *ctx)
86 return ctx->csa.prob.mb_stat_R; 86 return ctx->csa.prob.mb_stat_R;
87} 87}
88 88
89static unsigned int spu_backing_mbox_stat_poll(struct spu_context *ctx, 89static __poll_t spu_backing_mbox_stat_poll(struct spu_context *ctx,
90 unsigned int events) 90 __poll_t events)
91{ 91{
92 int ret; 92 __poll_t ret;
93 u32 stat; 93 u32 stat;
94 94
95 ret = 0; 95 ret = 0;
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 5ffcdeb1eb17..fc7772c3d068 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -762,10 +762,10 @@ out:
762 return count; 762 return count;
763} 763}
764 764
765static unsigned int spufs_ibox_poll(struct file *file, poll_table *wait) 765static __poll_t spufs_ibox_poll(struct file *file, poll_table *wait)
766{ 766{
767 struct spu_context *ctx = file->private_data; 767 struct spu_context *ctx = file->private_data;
768 unsigned int mask; 768 __poll_t mask;
769 769
770 poll_wait(file, &ctx->ibox_wq, wait); 770 poll_wait(file, &ctx->ibox_wq, wait);
771 771
@@ -898,10 +898,10 @@ out:
898 return count; 898 return count;
899} 899}
900 900
901static unsigned int spufs_wbox_poll(struct file *file, poll_table *wait) 901static __poll_t spufs_wbox_poll(struct file *file, poll_table *wait)
902{ 902{
903 struct spu_context *ctx = file->private_data; 903 struct spu_context *ctx = file->private_data;
904 unsigned int mask; 904 __poll_t mask;
905 905
906 poll_wait(file, &ctx->wbox_wq, wait); 906 poll_wait(file, &ctx->wbox_wq, wait);
907 907
@@ -1690,11 +1690,11 @@ out:
1690 return ret; 1690 return ret;
1691} 1691}
1692 1692
1693static unsigned int spufs_mfc_poll(struct file *file,poll_table *wait) 1693static __poll_t spufs_mfc_poll(struct file *file,poll_table *wait)
1694{ 1694{
1695 struct spu_context *ctx = file->private_data; 1695 struct spu_context *ctx = file->private_data;
1696 u32 free_elements, tagstatus; 1696 u32 free_elements, tagstatus;
1697 unsigned int mask; 1697 __poll_t mask;
1698 1698
1699 poll_wait(file, &ctx->mfc_wq, wait); 1699 poll_wait(file, &ctx->mfc_wq, wait);
1700 1700
@@ -2455,11 +2455,11 @@ static ssize_t spufs_switch_log_read(struct file *file, char __user *buf,
2455 return cnt == 0 ? error : cnt; 2455 return cnt == 0 ? error : cnt;
2456} 2456}
2457 2457
2458static unsigned int spufs_switch_log_poll(struct file *file, poll_table *wait) 2458static __poll_t spufs_switch_log_poll(struct file *file, poll_table *wait)
2459{ 2459{
2460 struct inode *inode = file_inode(file); 2460 struct inode *inode = file_inode(file);
2461 struct spu_context *ctx = SPUFS_I(inode)->i_ctx; 2461 struct spu_context *ctx = SPUFS_I(inode)->i_ctx;
2462 unsigned int mask = 0; 2462 __poll_t mask = 0;
2463 int rc; 2463 int rc;
2464 2464
2465 poll_wait(file, &ctx->switch_log->wait, wait); 2465 poll_wait(file, &ctx->switch_log->wait, wait);
diff --git a/arch/powerpc/platforms/cell/spufs/hw_ops.c b/arch/powerpc/platforms/cell/spufs/hw_ops.c
index 8655c4cbefc2..fff58198b5b6 100644
--- a/arch/powerpc/platforms/cell/spufs/hw_ops.c
+++ b/arch/powerpc/platforms/cell/spufs/hw_ops.c
@@ -56,11 +56,10 @@ static u32 spu_hw_mbox_stat_read(struct spu_context *ctx)
56 return in_be32(&ctx->spu->problem->mb_stat_R); 56 return in_be32(&ctx->spu->problem->mb_stat_R);
57} 57}
58 58
59static unsigned int spu_hw_mbox_stat_poll(struct spu_context *ctx, 59static __poll_t spu_hw_mbox_stat_poll(struct spu_context *ctx, __poll_t events)
60 unsigned int events)
61{ 60{
62 struct spu *spu = ctx->spu; 61 struct spu *spu = ctx->spu;
63 int ret = 0; 62 __poll_t ret = 0;
64 u32 stat; 63 u32 stat;
65 64
66 spin_lock_irq(&spu->register_lock); 65 spin_lock_irq(&spu->register_lock);
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h
index 5e59f80e95db..2d0479ad3af4 100644
--- a/arch/powerpc/platforms/cell/spufs/spufs.h
+++ b/arch/powerpc/platforms/cell/spufs/spufs.h
@@ -185,8 +185,7 @@ struct mfc_dma_command {
185struct spu_context_ops { 185struct spu_context_ops {
186 int (*mbox_read) (struct spu_context * ctx, u32 * data); 186 int (*mbox_read) (struct spu_context * ctx, u32 * data);
187 u32(*mbox_stat_read) (struct spu_context * ctx); 187 u32(*mbox_stat_read) (struct spu_context * ctx);
188 unsigned int (*mbox_stat_poll)(struct spu_context *ctx, 188 __poll_t (*mbox_stat_poll)(struct spu_context *ctx, __poll_t events);
189 unsigned int events);
190 int (*ibox_read) (struct spu_context * ctx, u32 * data); 189 int (*ibox_read) (struct spu_context * ctx, u32 * data);
191 int (*wbox_write) (struct spu_context * ctx, u32 data); 190 int (*wbox_write) (struct spu_context * ctx, u32 data);
192 u32(*signal1_read) (struct spu_context * ctx); 191 u32(*signal1_read) (struct spu_context * ctx);
diff --git a/arch/powerpc/platforms/powernv/opal-prd.c b/arch/powerpc/platforms/powernv/opal-prd.c
index de4dd09f4a15..c18de0a9b1bd 100644
--- a/arch/powerpc/platforms/powernv/opal-prd.c
+++ b/arch/powerpc/platforms/powernv/opal-prd.c
@@ -147,7 +147,7 @@ static bool opal_msg_queue_empty(void)
147 return ret; 147 return ret;
148} 148}
149 149
150static unsigned int opal_prd_poll(struct file *file, 150static __poll_t opal_prd_poll(struct file *file,
151 struct poll_table_struct *wait) 151 struct poll_table_struct *wait)
152{ 152{
153 poll_wait(file, &opal_prd_msg_wait, wait); 153 poll_wait(file, &opal_prd_msg_wait, wait);