提交 a758b7c4 编写于 作者: Y Yejune Deng 提交者: Greg Kroah-Hartman

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: dcf9625f ("virt: acrn: Use vfs_poll() instead of f_op->poll()")
Reported-by: Nkernel test robot <lkp@intel.com>
Acked-by: NShuo Liu <shuo.a.liu@intel.com>
Signed-off-by: NYejune Deng <yejune.deng@gmail.com>
Link: https://lore.kernel.org/r/20210310074901.7486-1-yejune.deng@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 dcf9625f
...@@ -160,7 +160,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args) ...@@ -160,7 +160,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
/* Check the pending event in this stage */ /* Check the pending event in this stage */
events = vfs_poll(f.file, &irqfd->pt); events = vfs_poll(f.file, &irqfd->pt);
if (events & POLLIN) if (events & EPOLLIN)
acrn_irqfd_inject(irqfd); acrn_irqfd_inject(irqfd);
fdput(f); fdput(f);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册