drm/i915: Mark the ggtt_view structs as packed
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 00:28:22 +0000 (00:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 16:17:44 +0000 (16:17 +0000)
commit8d9046ad5d9b7e5ede7cdf566a190f136f239614
tree2e34174d8d94c4639c7990bce7b6e78274f07143
parent7ff19c560fb279211670e0f5a06c8b3b594ecc2d
drm/i915: Mark the ggtt_view structs as packed

In the next few patches, we will depend upon there being no
uninitialised bits inside the ggtt_view. To ensure this we add the
__packed attribute and double check with a build bug that gcc hasn't
expanded the struct to include some padding bytes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170114002827.31315-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.h