accel/habanalabs: fix a missing-braces compilation warning
authorTomer Tayar <ttayar@habana.ai>
Wed, 15 Mar 2023 11:13:54 +0000 (13:13 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 20 Mar 2023 15:35:34 +0000 (17:35 +0200)
Replace initialization of "struct cpucp_packet" from "{0} to "{}" to
avoid a "missing braces around initializer" compilation warning.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/firmware_if.c

index da892d8fb3d6dbe296e99ae203f98005d8b28010..7ea611392f8cac63578378462e8092c89e86d4e4 100644 (file)
@@ -3152,7 +3152,7 @@ int hl_fw_get_sec_attest_info(struct hl_device *hdev, struct cpucp_sec_attest_in
 int hl_fw_send_generic_request(struct hl_device *hdev, enum hl_passthrough_type sub_opcode,
                                                dma_addr_t buff, u32 *size)
 {
-       struct cpucp_packet pkt = {0};
+       struct cpucp_packet pkt = {};
        u64 result;
        int rc = 0;