mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
@ 2026-09-18  2:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-18  2:53 UTC (permalink / raw)
  To: Christian König 
  Cc: oe-kbuild-all, linux-kernel, Tvrtko Ursulin, Boris Brezillon

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-18  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18  2:53 drivers/gpu/drm/imagination/pvr_ccb.c:584:17: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®