* [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN
@ 2021-03-10 7:49 Yejune Deng
2021-03-10 8:08 ` Shuo A Liu
0 siblings, 1 reply; 2+ messages in thread
From: Yejune Deng @ 2021-03-10 7:49 UTC (permalink / raw)
To: shuo.a.liu, yejune.deng, gregkh; +Cc: linux-kernel, kernel test robot
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: 803c1aadecdb("virt: acrn: Use vfs_poll() instead of f_op->poll()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
---
drivers/virt/acrn/irqfd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.29.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN
2021-03-10 7:49 [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN Yejune Deng
@ 2021-03-10 8:08 ` Shuo A Liu
0 siblings, 0 replies; 2+ messages in thread
From: Shuo A Liu @ 2021-03-10 8:08 UTC (permalink / raw)
To: Yejune Deng; +Cc: gregkh, linux-kernel, kernel test robot
On Wed 10.Mar'21 at 15:49:01 +0800, Yejune Deng wrote:
>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: 803c1aadecdb("virt: acrn: Use vfs_poll() instead of f_op->poll()")
>Reported-by: kernel test robot <lkp@intel.com>
>Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Thanks for the patch.
Acked-by: Shuo Liu <shuo.a.liu@intel.com>
>---
> drivers/virt/acrn/irqfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>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);
>--
>2.29.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-10 8:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 7:49 [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN Yejune Deng
2021-03-10 8:08 ` Shuo A Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).