All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Christian König " <christian.koenig@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Tvrtko Ursulin <tvrtko.ursulin@igalia.com>,
	Boris Brezillon <bbrezillon@kernel.org>
Subject: drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
Date: Fri, 18 Sep 2026 10:53:36 +0800	[thread overview]
Message-ID: <202609181026.bSBKMAwH-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9b87fdc9af2fbfcdb5c24a64139685ef80f6573f
commit: f4cc3ab824d6772a48ca9d9c74ac623b3309985d dma-buf: protected fence ops by RCU v8
date:   7 months ago
config: arm64-randconfig-r1302-20260917 (https://download.01.org/0day-ci/archive/20260918/202609181026.bSBKMAwH-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260918/202609181026.bSBKMAwH-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: f4cc3ab824d6 ("dma-buf: protected fence ops by RCU v8")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609181026.bSBKMAwH-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/gpu/drm/imagination/pvr_ccb.c: note: in included file (through drivers/gpu/drm/imagination/pvr_rogue_fwif.h, drivers/gpu/drm/imagination/pvr_ccb.h):
   drivers/gpu/drm/imagination/pvr_rogue_fwif_check.h:487:1: sparse: sparse: static assertion failed: "struct rogue_fwif_hwrtdata is incorrect size"
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_ccb.c:562:22: sparse: sparse: undefined identifier '_res'
>> drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse:    struct dma_fence_ops const [noderef] __rcu *
   drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse:    struct dma_fence_ops const *
--
   drivers/gpu/drm/imagination/pvr_queue.c: note: in included file (through drivers/gpu/drm/imagination/pvr_rogue_fwif.h, drivers/gpu/drm/imagination/pvr_cccb.h):
   drivers/gpu/drm/imagination/pvr_rogue_fwif_check.h:487:1: sparse: sparse: static assertion failed: "struct rogue_fwif_hwrtdata is incorrect size"
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: got ,
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: Expected ) in function call
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: got ,
>> drivers/gpu/drm/imagination/pvr_queue.c:197:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/gpu/drm/imagination/pvr_queue.c:197:25: sparse:    struct dma_fence_ops const [noderef] __rcu *
   drivers/gpu/drm/imagination/pvr_queue.c:197:25: sparse:    struct dma_fence_ops const *
   drivers/gpu/drm/imagination/pvr_queue.c:223:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/gpu/drm/imagination/pvr_queue.c:223:13: sparse:    struct dma_fence_ops const [noderef] __rcu *
   drivers/gpu/drm/imagination/pvr_queue.c:223:13: sparse:    struct dma_fence_ops const *
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_queue.c:252:17: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_queue.c:902:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   drivers/gpu/drm/imagination/pvr_queue.c:902:25: sparse:    struct dma_fence_ops const [noderef] __rcu *
   drivers/gpu/drm/imagination/pvr_queue.c:902:25: sparse:    struct dma_fence_ops const *
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: undefined identifier '_res'
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: undefined identifier '__VA_OPT__'
   drivers/gpu/drm/imagination/pvr_queue.c:1269:17: sparse: sparse: undefined identifier '_res'

vim +584 drivers/gpu/drm/imagination/pvr_ccb.c

cc1aeedb98ad34 Sarah Walker 2023-11-22  568  
cc1aeedb98ad34 Sarah Walker 2023-11-22  569  /**
cc1aeedb98ad34 Sarah Walker 2023-11-22  570   * pvr_kccb_fence_put() - Drop a KCCB fence reference
cc1aeedb98ad34 Sarah Walker 2023-11-22  571   * @fence: The fence to drop the reference on.
cc1aeedb98ad34 Sarah Walker 2023-11-22  572   *
cc1aeedb98ad34 Sarah Walker 2023-11-22  573   * If the fence hasn't been initialized yet, dma_fence_free() is called. This
cc1aeedb98ad34 Sarah Walker 2023-11-22  574   * way we have a single function taking care of both cases.
cc1aeedb98ad34 Sarah Walker 2023-11-22  575   */
cc1aeedb98ad34 Sarah Walker 2023-11-22  576  void pvr_kccb_fence_put(struct dma_fence *fence)
cc1aeedb98ad34 Sarah Walker 2023-11-22  577  {
cc1aeedb98ad34 Sarah Walker 2023-11-22  578  	if (!fence)
cc1aeedb98ad34 Sarah Walker 2023-11-22  579  		return;
cc1aeedb98ad34 Sarah Walker 2023-11-22  580  
cc1aeedb98ad34 Sarah Walker 2023-11-22  581  	if (!fence->ops) {
cc1aeedb98ad34 Sarah Walker 2023-11-22  582  		dma_fence_free(fence);
cc1aeedb98ad34 Sarah Walker 2023-11-22  583  	} else {
cc1aeedb98ad34 Sarah Walker 2023-11-22 @584  		WARN_ON(fence->ops != &pvr_kccb_fence_ops);
cc1aeedb98ad34 Sarah Walker 2023-11-22  585  		dma_fence_put(fence);
cc1aeedb98ad34 Sarah Walker 2023-11-22  586  	}
cc1aeedb98ad34 Sarah Walker 2023-11-22  587  }
cc1aeedb98ad34 Sarah Walker 2023-11-22  588  

:::::: The code at line 584 was first introduced by commit
:::::: cc1aeedb98ad347c06ff59e991b2f94dfb4c565d drm/imagination: Implement firmware infrastructure and META FW support

:::::: TO: Sarah Walker <sarah.walker@imgtec.com>
:::::: CC: Maxime Ripard <mripard@kernel.org>

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

                 reply	other threads:[~2026-09-18  2:54 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=202609181026.bSBKMAwH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bbrezillon@kernel.org \
    --cc=christian.koenig@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tvrtko.ursulin@igalia.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.