Commit a5799832 authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Fixup sparse __user annotation on local var

The local var does not need the __user as it exists on the kernel stack
and not a pointer into the __user address space.

drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c:989:9: warning: dereference of noderef expression
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c:990:13: warning: dereference of noderef expression
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200106114234.2529613-1-chris@chris-wilson.co.uk
parent 05e8a5f5
...@@ -958,8 +958,9 @@ static int __igt_mmap_gpu(struct drm_i915_private *i915, ...@@ -958,8 +958,9 @@ static int __igt_mmap_gpu(struct drm_i915_private *i915,
{ {
struct intel_engine_cs *engine; struct intel_engine_cs *engine;
struct i915_mmap_offset *mmo; struct i915_mmap_offset *mmo;
u32 __user *ux, bbe;
unsigned long addr; unsigned long addr;
u32 __user *ux;
u32 bbe;
int err; int err;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment