mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 10:02:31 -04:00
drm/xe/kunit: Kill xe_cur_kunit()
We shouldn't use custom helper if there is a official one. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240705191057.1110-2-michal.wajdeczko@intel.com
This commit is contained in:
@@ -107,7 +107,7 @@ static void check_residency(struct kunit *test, struct xe_bo *exported,
|
||||
|
||||
static void xe_test_dmabuf_import_same_driver(struct xe_device *xe)
|
||||
{
|
||||
struct kunit *test = xe_cur_kunit();
|
||||
struct kunit *test = kunit_get_current_test();
|
||||
struct dma_buf_test_params *params = to_dma_buf_test_params(test->priv);
|
||||
struct drm_gem_object *import;
|
||||
struct dma_buf *dmabuf;
|
||||
@@ -258,7 +258,7 @@ static const struct dma_buf_test_params test_params[] = {
|
||||
static int dma_buf_run_device(struct xe_device *xe)
|
||||
{
|
||||
const struct dma_buf_test_params *params;
|
||||
struct kunit *test = xe_cur_kunit();
|
||||
struct kunit *test = kunit_get_current_test();
|
||||
|
||||
xe_pm_runtime_get(xe);
|
||||
for (params = test_params; params->mem_mask; ++params) {
|
||||
|
||||
Reference in New Issue
Block a user