drm/i915: make i915_get_extra_instdone() static
Subsystems (2)
PATCH 1/1 drm/i915: make i915_get_extra_instdone() static
commit 84734a049d0ef2f6f5fb0a1fe060cd51480dd855
Author: Mika Kuoppala <[email protected]> Date: Fri Jul 12 16:50:57 2013 +0300
drm/i915: move error state to own compilation unit
had to export i915_get_extra_instdone() as it was used also in i915_irq.c. Daniel Vetter noticed that
as i915_capture_error_state() is already storing instdone, there is no need to do it twice in a row nor need to export it.
Requested-by Daniel Vetter <[email protected]>
Signed-off-by Mika Kuoppala <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.h | 2 -- drivers/gpu/drm/i915/i915_gpu_error.c | 56 ++++++++++++++++----------------- drivers/gpu/drm/i915/i915_irq.c | 2 -- 3 files changed, 28 insertions(+), 32 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +0 -2
@@ -1963,8 +1963,6 @@ void i915_error_state_get(struct drm_device *dev, struct i915_error_state_file_priv *error_priv);void i915_error_state_put (struct i915_error_state_file_priv *error_priv);void i915_destroy_error_state (struct drm_device *dev); - -void i915_get_extra_instdone (struct drm_device *dev,uint32_t *instdone);const char *i915_cache_level_str (int type);/* i915_suspend.c */
drivers/gpu/drm/i915/i915_gpu_error.c +28 -28
65 lines not on this page · raw message
drivers/gpu/drm/i915/i915_irq.c +0 -2
@@ -1500,8 +1500,6 @@ static void i915_report_and_clear_eir(struct drm_device *dev)pr_err ("render error detected, EIR: 0x%08x\n" , eir); -i915_get_extra_instdone (dev, instdone); -if (IS_G4X (dev)) {if (eir & (GM45_ERROR_MEM_PRIV |GM45_ERROR_CP_PRIV )) {u32 ipeir =I915_READ (IPEIR_I965 );
Signature · 1 line
1.7.9.5