From: Ben Widawsky Date: Thu, 19 Jun 2014 19:06:10 +0000 (-0700) Subject: drm/i915: Move compressed_fb to static allocation X-Git-Tag: cleanup-for-v3.18~84^2~49^2~86^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4213885cd01c6ec15f44b4d06d67790601e1731;p=pandora-kernel.git drm/i915: Move compressed_fb to static allocation We are already using the size to determine whether or not to free the object, so there is no functional change there. Almost everything else has changed to static allocations of the drm_mm_node too. Aside from bringing this inline with much of our other code, this makes error paths slightly simpler, which benefits the look of an upcoming patch. Signed-off-by: Ben Widawsky Reviewed-by: Rodrigo Vivi Signed-off-by: Jani Nikula --- diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index aa849f2a0d9f..7aeaaaabf308 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -604,7 +604,7 @@ struct i915_fbc { enum plane plane; int y; - struct drm_mm_node *compressed_fb; + struct drm_mm_node compressed_fb; struct drm_mm_node *compressed_llb; struct intel_fbc_work { Reading git-diff-tree failed