* [zen:7.2/vramstuff 21/29] drivers/gpu/drm/ttm/tests/ttm_bo_test.c:335:9: error: too few arguments to function 'ttm_lru_bulk_move_init'; expected 2, have 1
@ 2026-09-03 15:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-03 15:04 UTC (permalink / raw)
To: steven; +Cc: oe-kbuild-all
tree: https://github.com/zen-kernel/zen-kernel 7.2/vramstuff
head: 13a8e2000329a36f994acf2fd31d307d27fa9189
commit: 2fbdb6893cc6ed358f0232bff4eef598a6c5b419 [21/29] drm/ttm: Add ordered bulk moves
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20260903/202609032256.R8nf3R3t-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260903/202609032256.R8nf3R3t-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/202609032256.R8nf3R3t-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/ttm/tests/ttm_bo_test.c: In function 'ttm_bo_unreserve_bulk':
>> drivers/gpu/drm/ttm/tests/ttm_bo_test.c:335:9: error: too few arguments to function 'ttm_lru_bulk_move_init'; expected 2, have 1
335 | ttm_lru_bulk_move_init(&lru_bulk_move);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/ttm/tests/ttm_bo_test.c:13:
include/drm/ttm/ttm_resource.h:443:6: note: declared here
443 | void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk, bool ordered);
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/ttm/tests/ttm_bo_test.c: In function 'ttm_bo_pin_unpin_resource':
drivers/gpu/drm/ttm/tests/ttm_bo_test.c:508:9: error: too few arguments to function 'ttm_lru_bulk_move_init'; expected 2, have 1
508 | ttm_lru_bulk_move_init(&lru_bulk_move);
| ^~~~~~~~~~~~~~~~~~~~~~
include/drm/ttm/ttm_resource.h:443:6: note: declared here
443 | void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk, bool ordered);
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/ttm/tests/ttm_bo_test.c: In function 'ttm_bo_multiple_pin_one_unpin':
drivers/gpu/drm/ttm/tests/ttm_bo_test.c:559:9: error: too few arguments to function 'ttm_lru_bulk_move_init'; expected 2, have 1
559 | ttm_lru_bulk_move_init(&lru_bulk_move);
| ^~~~~~~~~~~~~~~~~~~~~~
include/drm/ttm/ttm_resource.h:443:6: note: declared here
443 | void ttm_lru_bulk_move_init(struct ttm_lru_bulk_move *bulk, bool ordered);
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/ttm_lru_bulk_move_init +335 drivers/gpu/drm/ttm/tests/ttm_bo_test.c
995279d280d1ef Karolina Stolarek 2023-11-29 320
995279d280d1ef Karolina Stolarek 2023-11-29 321 static void ttm_bo_unreserve_bulk(struct kunit *test)
995279d280d1ef Karolina Stolarek 2023-11-29 322 {
995279d280d1ef Karolina Stolarek 2023-11-29 323 struct ttm_test_devices *priv = test->priv;
995279d280d1ef Karolina Stolarek 2023-11-29 324 struct ttm_lru_bulk_move lru_bulk_move;
995279d280d1ef Karolina Stolarek 2023-11-29 325 struct ttm_lru_bulk_move_pos *pos;
995279d280d1ef Karolina Stolarek 2023-11-29 326 struct ttm_buffer_object *bo1, *bo2;
995279d280d1ef Karolina Stolarek 2023-11-29 327 struct ttm_resource *res1, *res2;
995279d280d1ef Karolina Stolarek 2023-11-29 328 struct ttm_device *ttm_dev;
995279d280d1ef Karolina Stolarek 2023-11-29 329 struct ttm_place *place;
588c4c8d58c413 Karolina Stolarek 2024-06-12 330 struct dma_resv *resv;
07430fa5248964 Karolina Stolarek 2024-06-12 331 u32 mem_type = TTM_PL_SYSTEM;
995279d280d1ef Karolina Stolarek 2023-11-29 332 unsigned int bo_priority = 0;
995279d280d1ef Karolina Stolarek 2023-11-29 333 int err;
995279d280d1ef Karolina Stolarek 2023-11-29 334
995279d280d1ef Karolina Stolarek 2023-11-29 @335 ttm_lru_bulk_move_init(&lru_bulk_move);
995279d280d1ef Karolina Stolarek 2023-11-29 336
995279d280d1ef Karolina Stolarek 2023-11-29 337 place = ttm_place_kunit_init(test, mem_type, 0);
995279d280d1ef Karolina Stolarek 2023-11-29 338
995279d280d1ef Karolina Stolarek 2023-11-29 339 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL);
995279d280d1ef Karolina Stolarek 2023-11-29 340 KUNIT_ASSERT_NOT_NULL(test, ttm_dev);
995279d280d1ef Karolina Stolarek 2023-11-29 341
588c4c8d58c413 Karolina Stolarek 2024-06-12 342 resv = kunit_kzalloc(test, sizeof(*resv), GFP_KERNEL);
878516a9e62cd2 Qasim Ijaz 2025-03-13 343 KUNIT_ASSERT_NOT_NULL(test, resv);
588c4c8d58c413 Karolina Stolarek 2024-06-12 344
77e19f8d32979f Tvrtko Ursulin 2025-10-20 345 err = ttm_device_kunit_init(priv, ttm_dev, 0);
995279d280d1ef Karolina Stolarek 2023-11-29 346 KUNIT_ASSERT_EQ(test, err, 0);
995279d280d1ef Karolina Stolarek 2023-11-29 347 priv->ttm_dev = ttm_dev;
995279d280d1ef Karolina Stolarek 2023-11-29 348
588c4c8d58c413 Karolina Stolarek 2024-06-12 349 dma_resv_init(resv);
588c4c8d58c413 Karolina Stolarek 2024-06-12 350
588c4c8d58c413 Karolina Stolarek 2024-06-12 351 bo1 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, resv);
588c4c8d58c413 Karolina Stolarek 2024-06-12 352 bo2 = ttm_bo_kunit_init(test, test->priv, BO_SIZE, resv);
995279d280d1ef Karolina Stolarek 2023-11-29 353
995279d280d1ef Karolina Stolarek 2023-11-29 354 dma_resv_lock(bo1->base.resv, NULL);
995279d280d1ef Karolina Stolarek 2023-11-29 355 ttm_bo_set_bulk_move(bo1, &lru_bulk_move);
995279d280d1ef Karolina Stolarek 2023-11-29 356 dma_resv_unlock(bo1->base.resv);
995279d280d1ef Karolina Stolarek 2023-11-29 357
2b624a2c18656e Maarten Lankhorst 2024-12-04 358 err = ttm_resource_alloc(bo1, place, &res1, NULL);
995279d280d1ef Karolina Stolarek 2023-11-29 359 KUNIT_ASSERT_EQ(test, err, 0);
995279d280d1ef Karolina Stolarek 2023-11-29 360 bo1->resource = res1;
995279d280d1ef Karolina Stolarek 2023-11-29 361
995279d280d1ef Karolina Stolarek 2023-11-29 362 dma_resv_lock(bo2->base.resv, NULL);
995279d280d1ef Karolina Stolarek 2023-11-29 363 ttm_bo_set_bulk_move(bo2, &lru_bulk_move);
995279d280d1ef Karolina Stolarek 2023-11-29 364 dma_resv_unlock(bo2->base.resv);
995279d280d1ef Karolina Stolarek 2023-11-29 365
2b624a2c18656e Maarten Lankhorst 2024-12-04 366 err = ttm_resource_alloc(bo2, place, &res2, NULL);
995279d280d1ef Karolina Stolarek 2023-11-29 367 KUNIT_ASSERT_EQ(test, err, 0);
995279d280d1ef Karolina Stolarek 2023-11-29 368 bo2->resource = res2;
995279d280d1ef Karolina Stolarek 2023-11-29 369
995279d280d1ef Karolina Stolarek 2023-11-29 370 ttm_bo_reserve(bo1, false, false, NULL);
995279d280d1ef Karolina Stolarek 2023-11-29 371 ttm_bo_unreserve(bo1);
995279d280d1ef Karolina Stolarek 2023-11-29 372
995279d280d1ef Karolina Stolarek 2023-11-29 373 pos = &lru_bulk_move.pos[mem_type][bo_priority];
995279d280d1ef Karolina Stolarek 2023-11-29 374 KUNIT_ASSERT_PTR_EQ(test, res1, pos->last);
995279d280d1ef Karolina Stolarek 2023-11-29 375
995279d280d1ef Karolina Stolarek 2023-11-29 376 ttm_resource_free(bo1, &res1);
995279d280d1ef Karolina Stolarek 2023-11-29 377 ttm_resource_free(bo2, &res2);
588c4c8d58c413 Karolina Stolarek 2024-06-12 378
588c4c8d58c413 Karolina Stolarek 2024-06-12 379 dma_resv_fini(resv);
995279d280d1ef Karolina Stolarek 2023-11-29 380 }
995279d280d1ef Karolina Stolarek 2023-11-29 381
:::::: The code at line 335 was first introduced by commit
:::::: 995279d280d1ef5cc349b6eafee4dccd720c99bf drm/ttm/tests: Add tests for ttm_bo functions
:::::: TO: Karolina Stolarek <karolina.stolarek@intel.com>
:::::: CC: Christian König <christian.koenig@amd.com>
--
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:[~2026-09-03 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 15:04 [zen:7.2/vramstuff 21/29] drivers/gpu/drm/ttm/tests/ttm_bo_test.c:335:9: error: too few arguments to function 'ttm_lru_bulk_move_init'; expected 2, have 1 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.