From: kernel test robot <lkp@intel.com>
To: Harry Wentland <harry.wentland@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Alex Deucher <alexander.deucher@amd.com>,
Alex Hung <alex.hung@amd.com>
Subject: drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:95:20: sparse: sparse: incompatible types in comparison expression (different address spaces):
Date: Thu, 09 Jul 2026 16:24:26 +0800 [thread overview]
Message-ID: <202607091659.SHEscT0c-lkp@intel.com> (raw)
Hi Harry,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
commit: af3f2f5db2659a13c256d2fb096c473eb50412ef drm/amdgpu: Remove UML build exclusion from Kconfig
date: 7 weeks ago
config: um-randconfig-r122-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091659.SHEscT0c-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091659.SHEscT0c-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
| Fixes: af3f2f5db265 ("drm/amdgpu: Remove UML build exclusion from Kconfig")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607091659.SHEscT0c-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:95:20: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:95:20: sparse: struct dma_fence_ops const [noderef] __rcu *
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:95:20: sparse: struct dma_fence_ops const *
--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.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/amdgpu_object.h):
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h:519:49: sparse: sparse: static assertion failed: "amd_sriov_msg_vf2pf_info must be 1 KB"
>> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:3097:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:3097:17: sparse: struct dma_fence [noderef] __rcu *
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:3097:17: sparse: struct dma_fence *
vim +95 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c
d8d019ccffb838b Felix Kuehling 2018-02-06 86
d8d019ccffb838b Felix Kuehling 2018-02-06 87 struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f)
d8d019ccffb838b Felix Kuehling 2018-02-06 88 {
d8d019ccffb838b Felix Kuehling 2018-02-06 89 struct amdgpu_amdkfd_fence *fence;
d8d019ccffb838b Felix Kuehling 2018-02-06 90
d8d019ccffb838b Felix Kuehling 2018-02-06 91 if (!f)
d8d019ccffb838b Felix Kuehling 2018-02-06 92 return NULL;
d8d019ccffb838b Felix Kuehling 2018-02-06 93
d8d019ccffb838b Felix Kuehling 2018-02-06 94 fence = container_of(f, struct amdgpu_amdkfd_fence, base);
bf2ad4fb8adca89 Srinivasan Shanmugam 2023-12-27 @95 if (f->ops == &amdkfd_fence_ops)
d8d019ccffb838b Felix Kuehling 2018-02-06 96 return fence;
d8d019ccffb838b Felix Kuehling 2018-02-06 97
d8d019ccffb838b Felix Kuehling 2018-02-06 98 return NULL;
d8d019ccffb838b Felix Kuehling 2018-02-06 99 }
d8d019ccffb838b Felix Kuehling 2018-02-06 100
:::::: The code at line 95 was first introduced by commit
:::::: bf2ad4fb8adca89374b54b225d494e0b1956dbea drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
:::::: TO: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-07-09 8:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 8:24 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-04-30 23:28 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c:95:20: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel test robot
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=202607091659.SHEscT0c-lkp@intel.com \
--to=lkp@intel.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=harry.wentland@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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.