drivers/gpu/drm/imagination/pvr_rogue_fwif_check.h:487:1: sparse: sparse: static assertion failed: "struct rogue_fwif_hwrtdata is incorrect size"
From: kernel test robot
Date: Sun Jun 14 2026 - 01:10:53 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2b07ea76fd28989bde5993532d7a943a6f90e246
commit: 6b53cf48d9339c75fa51927b0a67d8a6751066bd drm/imagination: Enable PowerVR driver for RISC-V
date: 10 months ago
config: riscv-randconfig-r122-20260614 (https://download.01.org/0day-ci/archive/20260614/202606141201.SQ9cRxN0-lkp@xxxxxxxxx/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/20260614/202606141201.SQ9cRxN0-lkp@xxxxxxxxx/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: 6b53cf48d933 ("drm/imagination: Enable PowerVR driver for RISC-V")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606141201.SQ9cRxN0-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/imagination/pvr_cccb.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: 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_device.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_device.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_device_info.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_device.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_free_list.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_device.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_fw_startstop.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_device.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_fw_trace.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_device.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_fw_util.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_device.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_fw_meta.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_device.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_context.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_drv.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_context.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_hwrt.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_device.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_fw.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_fw_mips.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_device.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_gem.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_device.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_fw_riscv.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_device.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_job.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_context.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_mmu.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_debugfs.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_device.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_params.c: note: in included file (through drivers/gpu/drm/imagination/pvr_rogue_fwif.h, drivers/gpu/drm/imagination/pvr_params.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_stream.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_device.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_vm_mips.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_device.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_sync.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_device.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: 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_vm.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_device.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_power.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_device.h):
>> drivers/gpu/drm/imagination/pvr_rogue_fwif_check.h:487:1: sparse: sparse: static assertion failed: "struct rogue_fwif_hwrtdata is incorrect size"
vim +487 drivers/gpu/drm/imagination/pvr_rogue_fwif_check.h
a26f067feac1f6 Sarah Walker 2023-11-22 463
a26f067feac1f6 Sarah Walker 2023-11-22 464 OFFSET_CHECK(struct rogue_fwif_hwrtdata, pm_mlist_dev_addr, 0);
a26f067feac1f6 Sarah Walker 2023-11-22 465 OFFSET_CHECK(struct rogue_fwif_hwrtdata, vce_cat_base, 8);
a26f067feac1f6 Sarah Walker 2023-11-22 466 OFFSET_CHECK(struct rogue_fwif_hwrtdata, vce_last_cat_base, 40);
a26f067feac1f6 Sarah Walker 2023-11-22 467 OFFSET_CHECK(struct rogue_fwif_hwrtdata, te_cat_base, 72);
a26f067feac1f6 Sarah Walker 2023-11-22 468 OFFSET_CHECK(struct rogue_fwif_hwrtdata, te_last_cat_base, 104);
a26f067feac1f6 Sarah Walker 2023-11-22 469 OFFSET_CHECK(struct rogue_fwif_hwrtdata, alist_cat_base, 136);
a26f067feac1f6 Sarah Walker 2023-11-22 470 OFFSET_CHECK(struct rogue_fwif_hwrtdata, alist_last_cat_base, 144);
a26f067feac1f6 Sarah Walker 2023-11-22 471 OFFSET_CHECK(struct rogue_fwif_hwrtdata, pm_alist_stack_pointer, 152);
a26f067feac1f6 Sarah Walker 2023-11-22 472 OFFSET_CHECK(struct rogue_fwif_hwrtdata, pm_mlist_stack_pointer, 160);
a26f067feac1f6 Sarah Walker 2023-11-22 473 OFFSET_CHECK(struct rogue_fwif_hwrtdata, hwrt_data_common_fw_addr, 164);
a26f067feac1f6 Sarah Walker 2023-11-22 474 OFFSET_CHECK(struct rogue_fwif_hwrtdata, hwrt_data_flags, 168);
a26f067feac1f6 Sarah Walker 2023-11-22 475 OFFSET_CHECK(struct rogue_fwif_hwrtdata, state, 172);
a26f067feac1f6 Sarah Walker 2023-11-22 476 OFFSET_CHECK(struct rogue_fwif_hwrtdata, freelists_fw_addr, 176);
a26f067feac1f6 Sarah Walker 2023-11-22 477 OFFSET_CHECK(struct rogue_fwif_hwrtdata, freelist_hwr_snapshot, 188);
a26f067feac1f6 Sarah Walker 2023-11-22 478 OFFSET_CHECK(struct rogue_fwif_hwrtdata, vheap_table_dev_addr, 200);
a26f067feac1f6 Sarah Walker 2023-11-22 479 OFFSET_CHECK(struct rogue_fwif_hwrtdata, rta_ctl, 208);
a26f067feac1f6 Sarah Walker 2023-11-22 480 OFFSET_CHECK(struct rogue_fwif_hwrtdata, tail_ptrs_dev_addr, 240);
a26f067feac1f6 Sarah Walker 2023-11-22 481 OFFSET_CHECK(struct rogue_fwif_hwrtdata, macrotile_array_dev_addr, 248);
a26f067feac1f6 Sarah Walker 2023-11-22 482 OFFSET_CHECK(struct rogue_fwif_hwrtdata, rgn_header_dev_addr, 256);
a26f067feac1f6 Sarah Walker 2023-11-22 483 OFFSET_CHECK(struct rogue_fwif_hwrtdata, rtc_dev_addr, 264);
a26f067feac1f6 Sarah Walker 2023-11-22 484 OFFSET_CHECK(struct rogue_fwif_hwrtdata, owner_geom_not_used_by_host, 272);
a26f067feac1f6 Sarah Walker 2023-11-22 485 OFFSET_CHECK(struct rogue_fwif_hwrtdata, geom_caches_need_zeroing, 276);
a26f067feac1f6 Sarah Walker 2023-11-22 486 OFFSET_CHECK(struct rogue_fwif_hwrtdata, cleanup_state, 320);
a26f067feac1f6 Sarah Walker 2023-11-22 @487 SIZE_CHECK(struct rogue_fwif_hwrtdata, 384);
a26f067feac1f6 Sarah Walker 2023-11-22 488
:::::: The code at line 487 was first introduced by commit
:::::: a26f067feac1f6142c3ccbaeaee8f84078bca9d4 drm/imagination: Add FWIF headers
:::::: TO: Sarah Walker <sarah.walker@xxxxxxxxxx>
:::::: CC: Maxime Ripard <mripard@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki