mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user