From: kernel test robot <lkp@intel.com>
To: Maximilian Luz <luzmaximilian@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Hans de Goede <hdegoede@redhat.com>
Subject: drivers/platform/surface/surface_dtx.c:530:24: sparse: sparse: incorrect type in return expression (different base types)
Date: Thu, 13 May 2021 20:45:27 +0800 [thread overview]
Message-ID: <202105132025.Lg4wzBFf-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1902 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c06a2ba62fc401b7aaefd23f5d0bc06d2457ccc1
commit: 1d609992832e900378b305f9f8dcf0ce8473049e platform/surface: Add DTX driver
date: 8 weeks ago
config: i386-randconfig-s032-20210513 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1d609992832e900378b305f9f8dcf0ce8473049e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1d609992832e900378b305f9f8dcf0ce8473049e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +530 drivers/platform/surface/surface_dtx.c
523
524 static __poll_t surface_dtx_poll(struct file *file, struct poll_table_struct *pt)
525 {
526 struct sdtx_client *client = file->private_data;
527 __poll_t events = 0;
528
529 if (down_read_killable(&client->ddev->lock))
> 530 return -ERESTARTSYS;
531
532 if (test_bit(SDTX_DEVICE_SHUTDOWN_BIT, &client->ddev->flags)) {
533 up_read(&client->ddev->lock);
534 return EPOLLHUP | EPOLLERR;
535 }
536
537 poll_wait(file, &client->ddev->waitq, pt);
538
539 if (!kfifo_is_empty(&client->buffer))
540 events |= EPOLLIN | EPOLLRDNORM;
541
542 up_read(&client->ddev->lock);
543 return events;
544 }
545
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34620 bytes --]
reply other threads:[~2021-05-13 12:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202105132025.Lg4wzBFf-lkp@intel.com \
--to=lkp@intel.com \
--cc=hdegoede@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luzmaximilian@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
all inboxes | Powered by JetHome®