]> Git Repo - J-linux.git/commitdiff
drm/ttm/tests: Fix argument in ttm_tt_kunit_init()
authorKarolina Stolarek <[email protected]>
Thu, 11 Jan 2024 10:28:49 +0000 (11:28 +0100)
committerChristian König <[email protected]>
Thu, 11 Jan 2024 14:11:45 +0000 (15:11 +0100)
Remove a leftover definition of page order and pass an empty flag value
in ttm_pool_pre_populated().

Signed-off-by: Karolina Stolarek <[email protected]>
Tested-by: Amaranath Somalapuram <[email protected]>
Reviewed-by: Dominik Karol Piątkowski <[email protected]>
Acked-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/db34f34a039cf951c5933e8ae046b4ed72d20dcb.1704959786.git.karolina.stolarek@intel.com
Signed-off-by: Christian König <[email protected]>
drivers/gpu/drm/ttm/tests/ttm_pool_test.c

index 2d9cae8cd9844643292b702960dbf5de005a6eb9..b97f7b6daf5bd63367fe6b2efacc57f4e95079aa 100644 (file)
@@ -78,10 +78,9 @@ static struct ttm_pool *ttm_pool_pre_populated(struct kunit *test,
        struct ttm_test_devices *devs = priv->devs;
        struct ttm_pool *pool;
        struct ttm_tt *tt;
-       unsigned long order = __fls(size / PAGE_SIZE);
        int err;
 
-       tt = ttm_tt_kunit_init(test, order, caching, size);
+       tt = ttm_tt_kunit_init(test, 0, caching, size);
        KUNIT_ASSERT_NOT_NULL(test, tt);
 
        pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL);
This page took 0.050107 seconds and 4 git commands to generate.