tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: bef6f06e039b8929481350d15d6d8c3ba81c6fd2 commit: 80764bc784413eb604c7d472db55b1ca72d4bbc5 [14416/30000] drm/loongson: add kernel modesetting driver support for ls7a1000/ls7a2000 config: arm64-randconfig-r131-20240925 (https://download.01.org/0day-ci/archive/20240928/202409281002.dDRqb1Lc-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.1.0 reproduce: (https://download.01.org/0day-ci/archive/20240928/202409281002.dDRqb1Lc-lkp@i...)
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 | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202409281002.dDRqb1Lc-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/loongson/lsdc_output.c:379:63: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *reg_base @@ got void [noderef] __iomem *reg_base @@
drivers/gpu/drm/loongson/lsdc_output.c:379:63: sparse: expected void *reg_base drivers/gpu/drm/loongson/lsdc_output.c:379:63: sparse: got void [noderef] __iomem *reg_base
vim +379 drivers/gpu/drm/loongson/lsdc_output.c
338 339 /* No DT support, provide a minimal support */ 340 int lsdc_create_output(struct lsdc_device *ldev, 341 unsigned int index, 342 unsigned int num_crtc) 343 { 344 const struct lsdc_chip_desc * const descp = ldev->desc; 345 struct lsdc_display_pipe * const dispipe = &ldev->dispipe[index]; 346 struct drm_device *ddev = ldev->ddev; 347 int encoder_type = DRM_MODE_ENCODER_DPI; 348 int connector_type = DRM_MODE_CONNECTOR_DPI; 349 struct lsdc_output *output; 350 struct drm_encoder *encoder; 351 struct drm_connector *connector; 352 int ret; 353 354 output = devm_kzalloc(ddev->dev, sizeof(*output), GFP_KERNEL); 355 if (!output) 356 return -ENOMEM; 357 358 encoder = &output->encoder; 359 360 if (descp->chip == LSDC_CHIP_7A2000) { 361 encoder_type = DRM_MODE_ENCODER_TMDS; 362 connector_type = DRM_MODE_CONNECTOR_HDMIA; 363 } 364 365 ret = drm_encoder_init(ddev, encoder, &lsdc_encoder_funcs, 366 encoder_type, "encoder-%u", index); 367 368 if (ret) { 369 drm_err(ddev, "Failed to init encoder: %d\n", ret); 370 return ret; 371 } 372 373 if (descp->chip == LSDC_CHIP_7A2000) 374 drm_encoder_helper_add(encoder, &ls7a2000_hdmi_encoder_helper_funcs); 375 376 encoder->possible_crtcs = BIT(index); 377 378 if (descp->has_builtin_i2c) {
379 output->li2c = lsdc_create_i2c_chan(ddev, ldev->reg_base, index);