]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gt: Mark up ips_mchdev pointer access
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Dec 2019 14:04:33 +0000 (14:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Dec 2019 18:43:05 +0000 (18:43 +0000)
drivers/gpu/drm/i915/gt/intel_rps.c:1726:24: error: incompatible types in comparison expression (different address spaces):
drivers/gpu/drm/i915/gt/intel_rps.c:1726:24:    struct drm_i915_private [noderef] <asn:4> *
drivers/gpu/drm/i915/gt/intel_rps.c:1726:24:    struct drm_i915_private *

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191212140459.1307617-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rps.c

index fd01e4100fc143a47941158dc9340e590f18d525..106c9fce9d6c0392c628710b2460b0c604cc0043 100644 (file)
@@ -1723,7 +1723,7 @@ void intel_rps_driver_register(struct intel_rps *rps)
 
 void intel_rps_driver_unregister(struct intel_rps *rps)
 {
-       if (ips_mchdev == rps_to_i915(rps))
+       if (rcu_access_pointer(ips_mchdev) == rps_to_i915(rps))
                rcu_assign_pointer(ips_mchdev, NULL);
 }