tree:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
arm-kill-set_fs-4
head: 134f7ea9688d79375ef1358d83bbafb8097ca965
commit: ee5be38e6bb994ddeaaab8d7762919f78736a565 [31/37] v4l2: remaining compat handlers
config: x86_64-randconfig-s021-20200917 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git checkout ee5be38e6bb994ddeaaab8d7762919f78736a565
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1379:9: sparse: sparse: switch with no
cases
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1405:9: sparse: sparse: switch with no
cases
> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:898:13: sparse:
sparse: incorrect type in argument 1 (different address spaces) @@ expected void const
volatile [noderef] __user * @@ got unsigned int * @@
> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:898:13: sparse: expected void const
volatile [noderef] __user *
> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:898:13: sparse: got unsigned int *
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:913:13: sparse: sparse: incorrect
type in argument 1 (different address spaces) @@ expected void const volatile
[noderef] __user * @@ got unsigned int * @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:913:13: sparse: expected void const
volatile [noderef] __user *
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:913:13: sparse: got unsigned int *
#
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground arm-kill-set_fs-4
git checkout ee5be38e6bb994ddeaaab8d7762919f78736a565
vim +898 drivers/media/v4l2-core/v4l2-compat-ioctl32.c
888
889 static int put_v4l2_event32(struct v4l2_event *p64,
890 struct v4l2_event32 __user *p32)
891 {
892 if (put_user(p64->type, &p32->type) ||
893 copy_to_user(&p32->u, &p64->u, sizeof(p64->u)) ||
894 put_user(p64->pending, &p32->pending) ||
895 put_user(p64->sequence, &p32->sequence) ||
896 put_user(p64->timestamp.tv_sec, &p32->timestamp.tv_sec) ||
897 put_user(p64->timestamp.tv_nsec, &p32->timestamp.tv_nsec) ||
898 put_user(p64->id, &p64->id) ||
899
copy_to_user(p32->reserved, p64->reserved, sizeof(p32->reserved)))
900 return -EFAULT;
901 return 0;
902 }
903
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org