]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs: separate nonce from max_size in cpucp_packet struct
authorDani Liberman <dliberman@habana.ai>
Mon, 11 Mar 2024 16:31:10 +0000 (18:31 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:04 +0000 (09:53 +0300)
commitc2a27584ff3b7f17da3ed2abfa3956f9d376e3da
treeb9558ce599f9cae878588ad7d33d8bc8ab9c4fbc
parentc8c10dcacafce3b6fb0238479b5e28e92b0366da
accel/habanalabs: separate nonce from max_size in cpucp_packet struct

In struct cpucp_packet both nonce and data_max_size members are in an
union overlapping each other. This is a problem as they both are used
in attestation and info_signed packets.
The solution here is to move the nonce member to a different union under
the same structure.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
include/linux/habanalabs/cpucp_if.h