aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2016-03-03 17:20:14 +0000
committerMauro Carvalho Chehab <[email protected]>2016-03-03 21:10:53 +0000
commitfbe093ac9f0201939279cdfe8b0fce20ce5ef7a9 (patch)
treec1013fbe8e968d678d26867e7cef9279a42e816a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parent[media] media.h: postpone connectors entities (diff)
downloadkernel-fbe093ac9f0201939279cdfe8b0fce20ce5ef7a9.tar.gz
kernel-fbe093ac9f0201939279cdfe8b0fce20ce5ef7a9.zip
[media] media: Sanitise the reserved fields of the G_TOPOLOGY IOCTL arguments
The argument structs are used in arrays for G_TOPOLOGY IOCTL. The arguments themselves do not need to be aligned to a power of two, but aligning them up to the largest basic type alignment (u64) on common ABIs is a good thing to do. The patch changes the size of the reserved fields to 5 or 6 u32's and aligns the size of the struct to 8 bytes so we do no longer depend on the compiler to perform the alignment. While at it, add __attribute__ ((packed)) to these structs as well. Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions