drm/i915/selftests: Complete transition to a real struct file mock

Since drm provided us with a real struct file we can use for our
anonymous internal clients (mock_file), complete our transition to using
that as the primary interface (and not the mocked up struct drm_file we
previous were using).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107213929.23286-1-chris@chris-wilson.co.uk
This commit is contained in:
Chris Wilson
2019-11-07 21:39:29 +00:00
parent ab11a9270a
commit a8c9a7f52e
16 changed files with 67 additions and 101 deletions

View File

@@ -1306,9 +1306,9 @@ static int live_breadcrumbs_smoketest(void *arg)
struct task_struct **threads;
struct igt_live_test live;
intel_wakeref_t wakeref;
struct drm_file *file;
struct smoketest *smoke;
unsigned int n, idx;
struct file *file;
int ret = 0;
/*
@@ -1430,7 +1430,7 @@ out_threads:
out_smoke:
kfree(smoke);
out_file:
mock_file_put(file);
fput(file);
out_rpm:
intel_runtime_pm_put(&i915->runtime_pm, wakeref);