Skip to content

Commit a758b7c

Browse files
YajunDenggregkh
authored andcommitted
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: dcf9625 ("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>
1 parent dcf9625 commit a758b7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/virt/acrn/irqfd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
160160
/* Check the pending event in this stage */
161161
events = vfs_poll(f.file, &irqfd->pt);
162162

163-
if (events & POLLIN)
163+
if (events & EPOLLIN)
164164
acrn_irqfd_inject(irqfd);
165165

166166
fdput(f);

0 commit comments

Comments
 (0)