Skip to content

Commit

Permalink
drm/i915: Mark up ips for RCU protection
Browse files Browse the repository at this point in the history
drivers/gpu/drm/i915/intel_pm.c:8352:9: error: incompatible types in comparison expression (different address spaces)
drivers/gpu/drm/i915/intel_pm.c:8359:9: error: incompatible types in comparison expression (different address spaces)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190412085410.10392-3-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Apr 16, 2019
1 parent 7a2a519 commit adc674c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -8263,14 +8263,14 @@ unsigned long i915_gfx_val(struct drm_i915_private *dev_priv)
return val;
}

static struct drm_i915_private *i915_mch_dev;
static struct drm_i915_private __rcu *i915_mch_dev;

static struct drm_i915_private *mchdev_get(void)
{
struct drm_i915_private *i915;

rcu_read_lock();
i915 = i915_mch_dev;
i915 = rcu_dereference(i915_mch_dev);
if (!kref_get_unless_zero(&i915->drm.ref))
i915 = NULL;
rcu_read_unlock();
Expand Down

0 comments on commit adc674c

Please sign in to comment.