tree:
https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: 92cafac7cc9c1af94b9b5b61e35fbbd39d4f5854
commit: 9ca13cf0ba63b1a0d0701e6e1c97138b1879e0e7 [10962/17820] media: Add poll support
config: openrisc-randconfig-s032-20211019 (attached as .config)
compiler: or1k-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://github.com/intel/linux-intel-lts/commit/9ca13cf0ba63b1a0d0701e6e1...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/preempt-rt
git checkout 9ca13cf0ba63b1a0d0701e6e1c97138b1879e0e7
# 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__' ARCH=openrisc
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/mc/mc-device.c:602:17: sparse: sparse: incorrect
type in initializer (different base types) @@ expected restricted __poll_t ( *poll )(
... ) @@ got unsigned int ( * )( ... ) @@
drivers/media/mc/mc-device.c:602:17: sparse: expected restricted __poll_t ( *poll )(
... )
drivers/media/mc/mc-device.c:602:17: sparse: got unsigned int ( * )( ... )
vim +602 drivers/media/mc/mc-device.c
597
598 static const struct media_file_operations media_device_fops = {
599 .owner = THIS_MODULE,
600 .open = media_device_open,
601 .ioctl = media_device_ioctl,
602 .poll = media_device_poll,
603 #ifdef CONFIG_COMPAT
604 .compat_ioctl = media_device_compat_ioctl,
605 #endif /* CONFIG_COMPAT */
606 .release = media_device_close,
607 };
608
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org