From patchwork Sun Mar 19 09:58:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13180303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0ED38C7618A for ; Sun, 19 Mar 2023 09:59:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF42810E507; Sun, 19 Mar 2023 09:59:05 +0000 (UTC) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 69E0510E16B for ; Sun, 19 Mar 2023 09:59:04 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B982ECE0CE3; Sun, 19 Mar 2023 09:58:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3422C433D2; Sun, 19 Mar 2023 09:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679219935; bh=sMR2f/XuXMchn4MVpQjksF95gNnLdoYwmDgbXeoex9s=; h=From:To:Cc:Subject:Date:From; b=Pa6+R79FrYnWLN1S2Y9spt0DLkLyCOvaqbBTUuCwmFshVAiJrgrrYl6teu959jX3/ elJydcW1RgeET6tRWlu6MYg02tGHvod7kMgvL1qQJSzQ+8dJPyLZjD9qoV5i/aWBcz kYOOjsp1Tio1uTQ+QeQFdfuuvZ9v8xxHZoxWFzcjsw3pCZvzpJCtNGn2r13gRL9nuJ Wv9wIKapBb+xlXbJo8JPplT/CL8PI/pJU0/oPmDKzSo1f5hp8I8M7Q7sh9T9c7CZHN hHLl5EpoFba56uc6L+jFOUbb11xY9rbNChStgrO5A4jrlxQ7SSWyiZva/M49N5B7it 7DM7t5ksRwSwA== From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/4] accel/habanalabs: fix a missing-braces compilation warning Date: Sun, 19 Mar 2023 11:58:47 +0200 Message-Id: <20230319095850.692040-1-ogabbay@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomer Tayar Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Tomer Tayar Replace initialization of "struct cpucp_packet" from "{0} to "{}" to avoid a "missing braces around initializer" compilation warning. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/firmware_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;