mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 06:52:34 -04:00
drm/ttm/tests: Use u32 and u64 over uint*_t types
Update the tests and helpers to use unsigned kernel types. Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com> Suggested-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/b36d71de78990ac5be1538cc3f735f7e40618cfe.1718192625.git.karolina.stolarek@intel.com
This commit is contained in:
committed by
Arunpravin Paneer Selvam
parent
be487a2989
commit
07430fa524
@@ -243,7 +243,7 @@ static void ttm_bo_unreserve_basic(struct kunit *test)
|
||||
struct ttm_place *place;
|
||||
struct ttm_resource_manager *man;
|
||||
unsigned int bo_prio = TTM_MAX_BO_PRIORITY - 1;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
int err;
|
||||
|
||||
place = ttm_place_kunit_init(test, mem_type, 0);
|
||||
@@ -284,7 +284,7 @@ static void ttm_bo_unreserve_pinned(struct kunit *test)
|
||||
struct ttm_device *ttm_dev;
|
||||
struct ttm_resource *res1, *res2;
|
||||
struct ttm_place *place;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
int err;
|
||||
|
||||
ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL);
|
||||
@@ -328,7 +328,7 @@ static void ttm_bo_unreserve_bulk(struct kunit *test)
|
||||
struct ttm_device *ttm_dev;
|
||||
struct ttm_place *place;
|
||||
struct dma_resv *resv;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
unsigned int bo_priority = 0;
|
||||
int err;
|
||||
|
||||
@@ -386,7 +386,7 @@ static void ttm_bo_put_basic(struct kunit *test)
|
||||
struct ttm_resource *res;
|
||||
struct ttm_device *ttm_dev;
|
||||
struct ttm_place *place;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
int err;
|
||||
|
||||
place = ttm_place_kunit_init(test, mem_type, 0);
|
||||
@@ -501,7 +501,7 @@ static void ttm_bo_pin_unpin_resource(struct kunit *test)
|
||||
struct ttm_resource *res;
|
||||
struct ttm_device *ttm_dev;
|
||||
struct ttm_place *place;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
unsigned int bo_priority = 0;
|
||||
int err;
|
||||
|
||||
@@ -552,7 +552,7 @@ static void ttm_bo_multiple_pin_one_unpin(struct kunit *test)
|
||||
struct ttm_resource *res;
|
||||
struct ttm_device *ttm_dev;
|
||||
struct ttm_place *place;
|
||||
uint32_t mem_type = TTM_PL_SYSTEM;
|
||||
u32 mem_type = TTM_PL_SYSTEM;
|
||||
unsigned int bo_priority = 0;
|
||||
int err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user