lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 13 Oct 2021 18:40:01 +0100 From: Jonathan Cameron <Jonathan.Cameron@...wei.com> To: kernel test robot <lkp@...el.com> CC: Lars-Peter Clausen <lars@...afoo.de>, <kbuild-all@...ts.01.org>, <linux-kernel@...r.kernel.org>, Alexandru Ardelean <alexandru.ardelean@...log.com>, Mihail Chindris <mihail.chindris@...log.com> Subject: Re: [jic23-iio:testing 149/151] drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t On Mon, 11 Oct 2021 04:39:48 +0800 kernel test robot <lkp@...el.com> wrote: > 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@...el.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); These should be EPOLLOUT and EPOLLWRNORM I believe. I'll apply a fixup. > 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 >
Powered by blists - more mailing lists