[PATCH] fixup! poll: Add a poll_flags for poll_queue_proc()

From: Peter Xu
Date: Tue Sep 05 2023 - 20:05:33 EST


Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
---
drivers/vhost/vhost.c | 4 ++--
drivers/xen/privcmd.c | 3 ++-
net/9p/trans_fd.c | 1 +
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 02caad721843..00813db53ff1 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -152,7 +152,7 @@ static void vhost_flush_work(struct vhost_work *work)
}

static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh,
- poll_table *pt)
+ poll_table *pt, poll_flags flags)
{
struct vhost_poll *poll;

@@ -162,7 +162,7 @@ static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh,
}

static int vhost_poll_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync,
- void *key, poll_flags flags)
+ void *key)
{
struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait);
struct vhost_work *work = &poll->work;
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c
index f00ad5f5f1d4..43e65186f25d 100644
--- a/drivers/xen/privcmd.c
+++ b/drivers/xen/privcmd.c
@@ -914,7 +914,8 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned int mode, int sync, void *key)
}

static void
-irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt)
+irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt,
+ poll_flags flags)
{
struct privcmd_kernel_irqfd *kirqfd =
container_of(pt, struct privcmd_kernel_irqfd, pt);
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
index 91f9f474ab01..2912c4b086a2 100644
--- a/net/9p/trans_fd.c
+++ b/net/9p/trans_fd.c
@@ -545,6 +545,7 @@ static int p9_pollwake(wait_queue_entry_t *wait, unsigned int mode, int sync, vo
* @filp: file pointer being polled
* @wait_address: wait_q to block on
* @p: poll state
+ * @flags: poll flags
*
* called by files poll operation to add v9fs-poll task to files wait queue
*/
--
2.41.0
===8<===

Thanks,

--
Peter Xu