]> git.dujemihanovic.xyz Git - linux.git/commit
drm/ttm/tests: Fix type conversion in ttm_pool_test
authorKarolina Stolarek <karolina.stolarek@intel.com>
Wed, 16 Aug 2023 10:55:08 +0000 (12:55 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 22 Aug 2023 11:56:11 +0000 (13:56 +0200)
commit9c319a0f6d52a8ad1364884b3baff57676f26de8
tree58df89576fac46962099c4d89125136b9eead11e
parentff065eaf5502384c0d0a3bd3a9459eb5eb0811e1
drm/ttm/tests: Fix type conversion in ttm_pool_test

Fix a warning about casting an integer of different size in
ttm_pool_alloc_basic_dma_addr() subtest. Cast the DMA address to
uintptr_t before casting it to a generic pointer.

Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com>
Cc: Christian König <christian.koenig@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308150419.PaHfWntn-lkp@intel.com/
Link: https://patchwork.freedesktop.org/patch/msgid/20230816105508.1135410-1-karolina.stolarek@intel.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/ttm/tests/ttm_pool_test.c