* drivers/gpu/drm/rockchip/cdn-dp-core.c:321:25: sparse: sparse: cast to restricted __le32
@ 2026-09-22 7:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-22 7:57 UTC (permalink / raw)
To: Chaoyi Chen; +Cc: oe-kbuild-all, linux-kernel, Heiko Stuebner
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f0100363d8c374bd8e9ea7c9ba02744f0b802ca4
commit: 0244539f9a4f3b564604dfe4d639f61cecec381a drm/rockchip: Drop ROCKCHIP_IOMMU depend for DRM_ROCKCHIP
date: 9 months ago
config: powerpc64-randconfig-r1308-20260922 (https://download.01.org/0day-ci/archive/20260922/202609221523.NSIdRvjX-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260922/202609221523.NSIdRvjX-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: 0244539f9a4f ("drm/rockchip: Drop ROCKCHIP_IOMMU depend for DRM_ROCKCHIP")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609221523.NSIdRvjX-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/rockchip/cdn-dp-core.c:321:25: sparse: sparse: cast to restricted __le32
vim +321 drivers/gpu/drm/rockchip/cdn-dp-core.c
1a0f7ed3abe29c Chris Zhong 2017-02-05 312
1a0f7ed3abe29c Chris Zhong 2017-02-05 313 static int cdn_dp_firmware_init(struct cdn_dp_device *dp)
1a0f7ed3abe29c Chris Zhong 2017-02-05 314 {
1a0f7ed3abe29c Chris Zhong 2017-02-05 315 int ret;
1a0f7ed3abe29c Chris Zhong 2017-02-05 316 const u32 *iram_data, *dram_data;
1a0f7ed3abe29c Chris Zhong 2017-02-05 317 const struct firmware *fw = dp->fw;
1a0f7ed3abe29c Chris Zhong 2017-02-05 318 const struct cdn_firmware_header *hdr;
1a0f7ed3abe29c Chris Zhong 2017-02-05 319
1a0f7ed3abe29c Chris Zhong 2017-02-05 320 hdr = (struct cdn_firmware_header *)fw->data;
1a0f7ed3abe29c Chris Zhong 2017-02-05 @321 if (fw->size != le32_to_cpu(hdr->size_bytes)) {
1a0f7ed3abe29c Chris Zhong 2017-02-05 322 DRM_DEV_ERROR(dp->dev, "firmware is invalid\n");
1a0f7ed3abe29c Chris Zhong 2017-02-05 323 return -EINVAL;
1a0f7ed3abe29c Chris Zhong 2017-02-05 324 }
1a0f7ed3abe29c Chris Zhong 2017-02-05 325
1a0f7ed3abe29c Chris Zhong 2017-02-05 326 iram_data = (const u32 *)(fw->data + hdr->header_size);
1a0f7ed3abe29c Chris Zhong 2017-02-05 327 dram_data = (const u32 *)(fw->data + hdr->header_size + hdr->iram_size);
1a0f7ed3abe29c Chris Zhong 2017-02-05 328
1a0f7ed3abe29c Chris Zhong 2017-02-05 329 ret = cdn_dp_load_firmware(dp, iram_data, hdr->iram_size,
1a0f7ed3abe29c Chris Zhong 2017-02-05 330 dram_data, hdr->dram_size);
1a0f7ed3abe29c Chris Zhong 2017-02-05 331 if (ret)
1a0f7ed3abe29c Chris Zhong 2017-02-05 332 return ret;
1a0f7ed3abe29c Chris Zhong 2017-02-05 333
1a0f7ed3abe29c Chris Zhong 2017-02-05 334 ret = cdn_dp_set_firmware_active(dp, true);
1a0f7ed3abe29c Chris Zhong 2017-02-05 335 if (ret) {
1a0f7ed3abe29c Chris Zhong 2017-02-05 336 DRM_DEV_ERROR(dp->dev, "active ucpu failed: %d\n", ret);
1a0f7ed3abe29c Chris Zhong 2017-02-05 337 return ret;
1a0f7ed3abe29c Chris Zhong 2017-02-05 338 }
1a0f7ed3abe29c Chris Zhong 2017-02-05 339
1a0f7ed3abe29c Chris Zhong 2017-02-05 340 return cdn_dp_event_config(dp);
1a0f7ed3abe29c Chris Zhong 2017-02-05 341 }
1a0f7ed3abe29c Chris Zhong 2017-02-05 342
:::::: The code at line 321 was first introduced by commit
:::::: 1a0f7ed3abe29cff8e652c69a8ad89aec2c40f00 drm/rockchip: cdn-dp: add cdn DP support for rk3399
:::::: TO: Chris Zhong <zyw@rock-chips.com>
:::::: CC: Mark Yao <mark.yao@rock-chips.com>
--
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-22 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 7:57 drivers/gpu/drm/rockchip/cdn-dp-core.c:321:25: sparse: sparse: cast to restricted __le32 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®