summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gt/selftest_context.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-11-07 21:39:29 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-11-08 10:17:41 +0000
commita8c9a7f52ec5a4b36ce183efd5fda4e4fd90ec45 (patch)
treedebf727251f993185db786505cec57db652f4e96 /drivers/gpu/drm/i915/gt/selftest_context.c
parentab11a9270a91c833b9b4e3975443f529d1c7cf17 (diff)
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
Diffstat (limited to 'drivers/gpu/drm/i915/gt/selftest_context.c')
-rw-r--r--drivers/gpu/drm/i915/gt/selftest_context.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_context.c b/drivers/gpu/drm/i915/gt/selftest_context.c
index a5688f7d9073..14ba6ceb9177 100644
--- a/drivers/gpu/drm/i915/gt/selftest_context.c
+++ b/drivers/gpu/drm/i915/gt/selftest_context.c
@@ -289,7 +289,7 @@ static int live_active_context(void *arg)
struct intel_engine_cs *engine;
struct i915_gem_context *fixme;
enum intel_engine_id id;
- struct drm_file *file;
+ struct file *file;
int err = 0;
file = mock_file(gt->i915);
@@ -313,7 +313,7 @@ static int live_active_context(void *arg)
}
out_file:
- mock_file_put(file);
+ fput(file);
return err;
}
@@ -399,7 +399,7 @@ static int live_remote_context(void *arg)
struct intel_engine_cs *engine;
struct i915_gem_context *fixme;
enum intel_engine_id id;
- struct drm_file *file;
+ struct file *file;
int err = 0;
file = mock_file(gt->i915);
@@ -423,7 +423,7 @@ static int live_remote_context(void *arg)
}
out_file:
- mock_file_put(file);
+ fput(file);
return err;
}