On x86 there was still a size mismatch due to x86-32 structs not following
natural alignment for 64-bit values. Force the alignment of the union.
Also, there appeared to be some padding on the end, so move the union to
the end of the struct.
Signed-off-by: Rob Herring <robh@kernel.org>
union {
struct gralloc_drm_bo_t *data; /* pointer to struct gralloc_drm_bo_t */
int64_t __padding;
- };
+ } __attribute__((aligned(8)));
};
#define GRALLOC_DRM_HANDLE_MAGIC 0x12345678