habanalabs: align armcp_packet structure to 8 bytes
authorOded Gabbay <oded.gabbay@gmail.com>
Tue, 9 Jun 2020 16:58:44 +0000 (19:58 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 24 Jul 2020 17:31:35 +0000 (20:31 +0300)
Once there is a 64-bit field in a structure, GCC compiler for ARM aligns
the structure to 8 bytes. In order to avoid confusion when these
structures are being passed between CPUs from different architectures, we
explicitly align the structure to 8 bytes.

Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/include/armcp_if.h

index a34fc39..dea7c90 100644 (file)
@@ -276,6 +276,8 @@ struct armcp_packet {
                /* For get Armcp info/EEPROM data */
                __le32 data_max_size;
        };
+
+       __le32 reserved;
 };
 
 struct armcp_unmask_irq_arr_packet {