diff options
author | Tomer Tayar <ttayar@habana.ai> | 2023-03-15 12:13:54 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-03-20 16:35:34 +0100 |
commit | 7cd6b5625b35267d0a69f067c41e2adf0c903eb2 (patch) | |
tree | 91b1000a39e126909feb2812a0a21d41979175f2 /drivers/accel | |
parent | accel/habanalabs: fix a maybe-uninitialized compilation warnings (diff) | |
download | linux-7cd6b5625b35267d0a69f067c41e2adf0c903eb2.tar.xz linux-7cd6b5625b35267d0a69f067c41e2adf0c903eb2.zip |
accel/habanalabs: fix a missing-braces compilation warning
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>
Diffstat (limited to 'drivers/accel')
-rw-r--r-- | drivers/accel/habanalabs/common/firmware_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accel/habanalabs/common/firmware_if.c b/drivers/accel/habanalabs/common/firmware_if.c index da892d8fb3d6..7ea611392f8c 100644 --- a/drivers/accel/habanalabs/common/firmware_if.c +++ b/drivers/accel/habanalabs/common/firmware_if.c @@ -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; |