summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYejune Deng <yejune.deng@gmail.com>2021-03-10 15:49:01 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 09:50:23 +0100
commita758b7c4c6f21f8e117fc8097c56fd9967363c15 (patch)
tree828e9840b04fce49987f7f0ed7a66d383581fea8
parentdcf9625f2adf33cf3ea14c72b436b7c212807e51 (diff)
downloadlinux-a758b7c4c6f21f8e117fc8097c56fd9967363c15.tar.bz2
virt: acrn: Use EPOLLIN instead of POLLIN
This fixes the following sparse warning: "sparse warnings: (new ones prefixed by >>)" >> drivers/virt/acrn/irqfd.c:163:13: sparse: sparse: restricted __poll_t degrades to integer Fixes: dcf9625f2adf ("virt: acrn: Use vfs_poll() instead of f_op->poll()") Reported-by: kernel test robot <lkp@intel.com> Acked-by: Shuo Liu <shuo.a.liu@intel.com> Signed-off-by: Yejune Deng <yejune.deng@gmail.com> Link: https://lore.kernel.org/r/20210310074901.7486-1-yejune.deng@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/virt/acrn/irqfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virt/acrn/irqfd.c b/drivers/virt/acrn/irqfd.c
index 98d6e9b18f9e..df5184979b28 100644
--- a/drivers/virt/acrn/irqfd.c
+++ b/drivers/virt/acrn/irqfd.c
@@ -160,7 +160,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
/* Check the pending event in this stage */
events = vfs_poll(f.file, &irqfd->pt);
- if (events & POLLIN)
+ if (events & EPOLLIN)
acrn_irqfd_inject(irqfd);
fdput(f);