[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211130300.S15GUUPq-lkp@intel.com>
Date: Sun, 13 Nov 2022 03:40:16 +0800
From: kernel test robot <lkp@...el.com>
To: Qing Zhang <zhangqing@...ngson.cn>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Huacai Chen <chenhuacai@...nel.org>
Subject: drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect
type in argument 1 (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fef7fd48922d11b22620e19f9c9101647bfe943d
commit: 93a4fa622eb061f75f87f0cf9609ab4e69c67d01 LoongArch: Add STACKTRACE support
date: 3 months ago
config: loongarch-randconfig-s031-20221113
compiler: loongarch64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=93a4fa622eb061f75f87f0cf9609ab4e69c67d01
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 93a4fa622eb061f75f87f0cf9609ab4e69c67d01
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/media/usb/uvc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got unsigned int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got unsigned int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got unsigned int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got unsigned int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got int [noderef] __percpu *
>> drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:165:9: sparse: got int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got unsigned int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got unsigned int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got unsigned int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got unsigned int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got int [noderef] __percpu *
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got int [noderef] __percpu * @@
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: expected void *ptr
drivers/media/usb/uvc/uvc_queue.c:184:9: sparse: got int [noderef] __percpu *
vim +165 drivers/media/usb/uvc/uvc_queue.c
66847ef013cc4e drivers/media/video/uvc/uvc_queue.c Laurent Pinchart 2011-09-24 158
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 159 static int uvc_start_streaming(struct vb2_queue *vq, unsigned int count)
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 160 {
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 161 struct uvc_video_queue *queue = vb2_get_drv_priv(vq);
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 162 struct uvc_streaming *stream = uvc_queue_to_stream(queue);
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 163 int ret;
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 164
c50c9c1e659d8d drivers/media/usb/uvc/uvc_queue.c Kieran Bingham 2018-01-03 @165 lockdep_assert_irqs_enabled();
c50c9c1e659d8d drivers/media/usb/uvc/uvc_queue.c Kieran Bingham 2018-01-03 166
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 167 queue->buf_used = 0;
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 168
571e70dbd42105 drivers/media/usb/uvc/uvc_queue.c Kieran Bingham 2018-11-05 169 ret = uvc_video_start_streaming(stream);
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 170 if (ret == 0)
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 171 return 0;
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 172
c50c9c1e659d8d drivers/media/usb/uvc/uvc_queue.c Kieran Bingham 2018-01-03 173 spin_lock_irq(&queue->irqlock);
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 174 uvc_queue_return_buffers(queue, UVC_BUF_STATE_QUEUED);
c50c9c1e659d8d drivers/media/usb/uvc/uvc_queue.c Kieran Bingham 2018-01-03 175 spin_unlock_irq(&queue->irqlock);
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 176
ef33d901db3026 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 177 return ret;
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 178 }
a11a03e50b7323 drivers/media/usb/uvc/uvc_queue.c Laurent Pinchart 2014-10-21 179
:::::: The code at line 165 was first introduced by commit
:::::: c50c9c1e659d8de9c13441f243e7938413be6e71 media: uvcvideo: queue: Simplify spin-lock usage
:::::: TO: Kieran Bingham <kieran.bingham@...asonboard.com>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@...nel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (151960 bytes)
Powered by blists - more mailing lists