tree:
git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 4978452e875a60112754d1247480cd76321e3ff9 [630/2427] drm/amdkcl: generate config.h
config: arc-randconfig-s031-20201214 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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.3-184-g1b896707-dirty
git remote add radeon-alex
git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout 4978452e875a60112754d1247480cd76321e3ff9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc
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/gpu/drm/amd/amdgpu/amdgpu_sem.c:103:17: sparse: sparse:
incorrect type in initializer (different base types) @@ expected restricted __poll_t (
*poll )( ... ) @@ got unsigned int ( * )( ... ) @@
drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c:103:17: sparse: expected restricted __poll_t (
*poll )( ... )
drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c:103:17: sparse: got unsigned int ( * )( ...
)
--
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:158:9: sparse: sparse: incompatible types in
conditional expression (different base types):
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:158:9: sparse: void
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:158:9: sparse: int
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:529:5: sparse: sparse: symbol
'psp_ta_invoke' was not declared. Should it be static?
> drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1899:21: sparse: sparse:
incorrect type in argument 1 (different address spaces) @@ expected void volatile
[noderef] <asn:2> *addr @@ got void *[assigned] cpu_addr @@
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1899:21: sparse: expected void volatile
[noderef] <asn:2> *addr
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1899:21: sparse: got void *[assigned]
cpu_addr
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:305:15: sparse: sparse: memset with byte count
of 1048576
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:407:15: sparse: sparse: memset with byte count
of 1048576
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:563:15: sparse: sparse: memset with byte count
of 1048576
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:703:15: sparse: sparse: memset with byte count
of 1048576
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:877:15: sparse: sparse: memset with byte count
of 1048576
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:1024:15: sparse: sparse: memset with byte count
of 1048576
--
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.c: note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:61:9: sparse: sparse:
preprocessor token REG_SET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1082:9: sparse: this was the
original definition
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.c:
note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:112:9: sparse: sparse:
preprocessor token REG_GET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1083:9: sparse: this was the original definition
--
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.c: note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:61:9: sparse: sparse:
preprocessor token REG_SET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1082:9: sparse: this was the
original definition
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.c:
note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:112:9: sparse: sparse:
preprocessor token REG_GET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn20.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1083:9: sparse: this was the original definition
--
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.c: note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:61:9: sparse: sparse:
preprocessor token REG_SET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
> drivers/gpu/drm/amd/amdgpu/amdgpu.h:1082:9: sparse: this was the
original definition
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.c:
note: in included file:
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_reg.h:112:9: sparse: sparse:
preprocessor token REG_GET redefined
drivers/gpu/drm/amd/amdgpu/../display/dmub/src/dmub_dcn21.c: note: in included file
(through drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h,
drivers/gpu/drm/amd/backport/backport.h, builtin):
drivers/gpu/drm/amd/amdgpu/amdgpu.h:1083:9: sparse: this was the original definition
vim +103 drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
641803ba0aabf8d Kevin Wang 2018-08-30 100
641803ba0aabf8d Kevin Wang 2018-08-30 101 static const struct file_operations
amdgpu_sem_fops = {
641803ba0aabf8d Kevin Wang 2018-08-30 102 .release = amdgpu_sem_release,
641803ba0aabf8d Kevin Wang 2018-08-30 @103 .poll = amdgpu_sem_poll,
641803ba0aabf8d Kevin Wang 2018-08-30 104 .unlocked_ioctl = amdgpu_sem_file_ioctl,
641803ba0aabf8d Kevin Wang 2018-08-30 105 .compat_ioctl = amdgpu_sem_file_ioctl,
641803ba0aabf8d Kevin Wang 2018-08-30 106 };
641803ba0aabf8d Kevin Wang 2018-08-30 107
641803ba0aabf8d Kevin Wang 2018-08-30 108
:::::: The code at line 103 was first introduced by commit
:::::: 641803ba0aabf8d823eb6cf6667dda3fdca58872 drm/amdgpu: [hybrid] add semaphore object
support
:::::: TO: Kevin Wang <Kevin1.Wang(a)amd.com>
:::::: CC: Flora Cui <flora.cui(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org