public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Shuo A Liu <shuo.a.liu@intel.com>
To: Yejune Deng <yejune.deng@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
	kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN
Date: Wed, 10 Mar 2021 16:08:45 +0800	[thread overview]
Message-ID: <20210310080845.GA28452@shuo-intel.sh.intel.com> (raw)
In-Reply-To: <20210310074901.7486-1-yejune.deng@gmail.com>

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
>

      reply	other threads:[~2021-03-10  8:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10  7:49 [PATCH] virt: acrn: Use EPOLLIN instead of POLLIN Yejune Deng
2021-03-10  8:08 ` Shuo A Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210310080845.GA28452@shuo-intel.sh.intel.com \
    --to=shuo.a.liu@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=yejune.deng@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox