All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 2516/2516] drivers/gpu/drm/ast/ast_mm.c:91:39: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2024-12-03 12:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-03 12:49 UTC (permalink / raw)
  To: kernel, Jiakun Shuai; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   f030ffc8e0c6dac3503bebddbf49cc339003fcdb
commit: 968ee436e4d0ce09994f74015dc163ef280ccc1e [2516/2516] drm/ast: Fixed display error for ps23xx when using ast bmc card
config: x86_64-randconfig-121-20241203 (https://download.01.org/0day-ci/archive/20241203/202412032029.eVzOP3UR-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412032029.eVzOP3UR-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412032029.eVzOP3UR-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/ast/ast_mm.c:91:39: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *addr @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/ast/ast_mm.c:91:39: sparse:     expected void *addr
   drivers/gpu/drm/ast/ast_mm.c:91:39: sparse:     got void [noderef] __iomem *

vim +91 drivers/gpu/drm/ast/ast_mm.c

    76	
    77	static int ast_driver_io_mem_reserve(struct ttm_bo_device *bdev,
    78										struct ttm_resource *mem)
    79	{
    80		struct drm_vram_mm *vmm = drm_vram_mm_of_bdev(bdev);
    81		size_t bus_size = (size_t)mem->num_pages << PAGE_SHIFT;
    82	
    83		switch (mem->mem_type) {
    84		case TTM_PL_SYSTEM:     /* nothing to do */
    85				break;
    86		case TTM_PL_VRAM:
    87				mem->bus.offset = (mem->start << PAGE_SHIFT) + vmm->vram_base;
    88				mem->bus.is_iomem = true;
    89	
    90				mem->placement = TTM_PL_FLAG_UNCACHED;
  > 91				mem->bus.addr = ioremap(mem->bus.offset, bus_size);
    92	
    93				if (!mem->bus.addr)
    94					return -ENOMEM;
    95	
    96				break;
    97		default:
    98				return -EINVAL;
    99		}
   100	
   101		return 0;
   102	}
   103	

-- 
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:[~2024-12-03 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 12:49 [openeuler:OLK-5.10 2516/2516] drivers/gpu/drm/ast/ast_mm.c:91:39: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot

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.