All of lore.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
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

* [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
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-10-10 20:39 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2007 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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 44348 bytes --]

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

* Re: [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
  -1 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2021-10-13 17:40 UTC (permalink / raw)
  To: kernel test robot
  Cc: Lars-Peter Clausen, kbuild-all, linux-kernel, Alexandru Ardelean,
	Mihail Chindris

On Mon, 11 Oct 2021 04:39:48 +0800
kernel test robot <lkp@intel.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@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);  

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
> 


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

* Re: [jic23-iio:testing 149/151] drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t
@ 2021-10-13 17:40   ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2021-10-13 17:40 UTC (permalink / raw)
  To: kbuild-all

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

On Mon, 11 Oct 2021 04:39:48 +0800
kernel test robot <lkp@intel.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@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);  

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(a)lists.01.org
> 

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

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

Thread overview: 4+ 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-10 20:39 ` kernel test robot
2021-10-13 17:40 ` Jonathan Cameron
2021-10-13 17:40   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.