Skip to contentSkip to conversation

drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:108:9: sparse: sparse: incompatible types in conditional expression (different base types):

PATCH kernel test robot 1 participant 1 message Sep 1, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   173df1eaa8a91ab0b5352d1efb4192e3e5dc6c8f
commit: 9d4346bdbc6484a1814011315827c258509b483c [180/218] drm/amdgpu: add VPE 6.1.0 support
config: i386-randconfig-062-20230902 (https://download.01.org/0day-ci/archive/20230902/[email protected]/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230902/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c: note: in included file (through drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h, drivers/gpu/drm/amd/amdgpu/amdgpu.h):
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:315:49: sparse: sparse: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB"

>> drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:108:9: sparse: sparse: incompatible types in conditional expression (different base types):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:108:9: sparse:    void
>> drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:108:9: sparse:    int

vim +108 drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c

    93	
    94	static int vpe_early_init(void *handle)
    95	{
    96		struct amdgpu_device *adev = (struct amdgpu_device *)handle;
    97		struct amdgpu_vpe *vpe = &adev->vpe;
    98	
    99		switch (adev->ip_versions[VPE_HWIP][0]) {
   100		case IP_VERSION(6, 1, 0):
   101			vpe_v6_1_set_funcs(vpe);
   102			break;
   103		default:
   104			return -EINVAL;
   105		}
   106	
   107		vpe_set_ring_funcs(adev);
 > 108		vpe_set_regs(vpe);

109
110 return 0;
111 }
112

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki