public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [jic23-iio:testing 149/151] drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t
@ 2021-10-10 20:39 kernel test robot
  2021-10-13 17:40 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-10-10 20:39 UTC (permalink / raw)
  To: Lars-Peter Clausen
  Cc: kbuild-all, linux-kernel, Jonathan Cameron, Alexandru Ardelean,
	Mihail Chindris

[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head:   687109cbbfd744cba8aea3580770dcf6e13ce12a
commit: dc02c5452d3a3c2792efae0b6b436634915384ac [149/151] iio: kfifo-buffer: Add output buffer support
config: xtensa-randconfig-s031-20211010 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?id=dc02c5452d3a3c2792efae0b6b436634915384ac
        git remote add jic23-iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
        git fetch --no-tags jic23-iio testing
        git checkout dc02c5452d3a3c2792efae0b6b436634915384ac
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=xtensa SHELL=/bin/bash drivers/iio/buffer/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t

vim +165 drivers/iio/buffer/kfifo_buf.c

   152	
   153	static int iio_kfifo_remove_from(struct iio_buffer *r, void *data)
   154	{
   155		int ret;
   156		struct iio_kfifo *kf = iio_to_kfifo(r);
   157	
   158		if (kfifo_size(&kf->kf) < 1)
   159			return -EBUSY;
   160	
   161		ret = kfifo_out(&kf->kf, data, 1);
   162		if (ret != 1)
   163			return -EBUSY;
   164	
 > 165		wake_up_interruptible_poll(&r->pollq, POLLOUT | POLLWRNORM);
   166	
   167		return 0;
   168	}
   169	

---
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: 44348 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-13 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-10 20:39 [jic23-iio:testing 149/151] drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t kernel test robot
2021-10-13 17:40 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox