Skip to content

Commit b9bc054

Browse files
drobnikChristianKoenigAMD
authored andcommitted
drm/ttm/tests: Fix argument in ttm_tt_kunit_init()
Remove a leftover definition of page order and pass an empty flag value in ttm_pool_pre_populated(). Signed-off-by: Karolina Stolarek <karolina.stolarek@intel.com> Tested-by: Amaranath Somalapuram <Amaranath.Somalapuram@amd.com> Reviewed-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Acked-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/db34f34a039cf951c5933e8ae046b4ed72d20dcb.1704959786.git.karolina.stolarek@intel.com Signed-off-by: Christian König <christian.koenig@amd.com>
1 parent 5ee0d47 commit b9bc054

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/ttm/tests/ttm_pool_test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ static struct ttm_pool *ttm_pool_pre_populated(struct kunit *test,
7878
struct ttm_test_devices *devs = priv->devs;
7979
struct ttm_pool *pool;
8080
struct ttm_tt *tt;
81-
unsigned long order = __fls(size / PAGE_SIZE);
8281
int err;
8382

84-
tt = ttm_tt_kunit_init(test, order, caching, size);
83+
tt = ttm_tt_kunit_init(test, 0, caching, size);
8584
KUNIT_ASSERT_NOT_NULL(test, tt);
8685

8786
pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL);

0 commit comments

Comments
 (0)