lkml.org 
[lkml]   [2021]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[jic23-iio:testing 149/151] drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t
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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-10 22:41    [W:0.142 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site