habanalabs: align ioctl uapi structures to 64-bit
authorDan Rapaport <drapaport@habana.ai>
Mon, 30 May 2022 11:11:45 +0000 (14:11 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:21 +0000 (09:09 +0300)
commit2acd21cd00ce635adfec5a8725a0c342812bffb4
treedcfdcf4a103cfcdf7125f54c70e1e55e01e81396
parent78d503087be190eab36290644ccec050135e7c70
habanalabs: align ioctl uapi structures to 64-bit

The compiler is padding the members of the struct to be aligned to
64-bit. The content of the padded bytes is and not zeroed explicitly,
hence might copy undefined data. We add a padding member to the struct
to get a zeroed 64-bit align struct.

Signed-off-by: Dan Rapaport <drapaport@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
include/uapi/misc/habanalabs.h