diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-12-12 15:04:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-12-12 19:43:05 +0100 |
commit | ad3662e239fcb0ad5e04a51d59f4f39dea7a13a7 (patch) | |
tree | 610bd3e270eb7a08a999fbf6689efc7f3f7e8f8f | |
parent | drm/i915: Set fence_work.ops before dma_fence_init (diff) | |
download | linux-ad3662e239fcb0ad5e04a51d59f4f39dea7a13a7.tar.xz linux-ad3662e239fcb0ad5e04a51d59f4f39dea7a13a7.zip |
drm/i915/gt: Mark up ips_mchdev pointer access
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
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_rps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_rps.c b/drivers/gpu/drm/i915/gt/intel_rps.c index fd01e4100fc1..106c9fce9d6c 100644 --- a/drivers/gpu/drm/i915/gt/intel_rps.c +++ b/drivers/gpu/drm/i915/gt/intel_rps.c @@ -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); } |