All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lang Yu <Lang.Yu@amd.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Alex Deucher <alexander.deucher@amd.com>,
	Huang Rui <ray.huang@amd.com>
Subject: [agd5f:drm-next 180/218] drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c:108:9: sparse: sparse: incompatible types in conditional expression (different base types):
Date: Sat, 2 Sep 2023 06:18:58 +0800	[thread overview]
Message-ID: <202309020608.FwP8QMht-lkp@intel.com> (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/202309020608.FwP8QMht-lkp@intel.com/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/202309020608.FwP8QMht-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309020608.FwP8QMht-lkp@intel.com/

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	

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

                 reply	other threads:[~2023-09-01 22:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202309020608.FwP8QMht-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Lang.Yu@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ray.huang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.