Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp328152rdg; Thu, 12 Oct 2023 06:59:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOWsuyKvYCxsp9UbmgnzmNjshFoNMxGri1mmbazy0/3IdUUjglIEEZhOGzmpqeyOpolKG1 X-Received: by 2002:a9d:63d4:0:b0:6bc:fb5f:7b06 with SMTP id e20-20020a9d63d4000000b006bcfb5f7b06mr25441251otl.17.1697119153609; Thu, 12 Oct 2023 06:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697119153; cv=none; d=google.com; s=arc-20160816; b=ndfIYGIWxPXpIPrqvqCOCKegesp9W9Wn6RuKqueFnioQa2G4PgDhIRRJliA8NCptkX Y3s6KrARYdXjrrjN1qg+HsZCYUXkp3GH3TUS5mi0kWirT9JhcssNFjClTfCApp5ARI6v 48QwdTFN8prJcpvJuiLM9OqLERRYrnzGh0fhzsCKxBAs8I/NWBdrtM3fh+efwL63iXvq NQCNq7ODPgBicUx0JR9PaMyXwpVO/wY1U4JnzT0kx2MNzSFK7hyfINIR30QPeQMBiw+T PqKRfiY9y0Yhr+sXPxwa0bGWDH4cy/7HfzNHNabJEsOOC02MtB7O3eHIl5AHKCfqwLa4 Pn5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=DXRzdy9W8s2NI8YLRyesqZ9XDrYxKd4tdOefWQBHie8=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=l0BazpVB1OnIwe2dLmyG0BTbP02IREM+dwhpS8KZ3sDLJ6d3HR/ZsjWppwjRkNgzYC rTS+VW5MVY4pub7fP/ymT438q8DpBRvL19ovXdcvuSbAbSGMlDnmMEA9COjLUDKsTkYl oEV83H/6uqKsM6qEY3Axiey7mUAaM+64iPrvehyYqBqGqFPCLfINT5d5TW4Enh0jCnAl /75x5ZLPmuNTskiQMSzBALs5x9BLVY2xLHRJP0Yzc1d675B7bf2RLzzoP1kgMI4qbYoF j4InmmbNxi0pfyxQ5CDfNCE9+ID+2RDZWZsIyJH2TkDUKgbY3yuAEt7I/uj6ek9jhPol /tCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FixRC5cn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 200-20020a6300d1000000b0059779ae58a0si2345015pga.465.2023.10.12.06.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FixRC5cn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 10BA5822B2E6; Thu, 12 Oct 2023 06:59:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378910AbjJLN7C (ORCPT + 52 others); Thu, 12 Oct 2023 09:59:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379134AbjJLN7A (ORCPT ); Thu, 12 Oct 2023 09:59:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4F6B7 for ; Thu, 12 Oct 2023 06:58:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65E3CC433C7 for ; Thu, 12 Oct 2023 13:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697119138; bh=n9lHXN53vZx2EaEbEDyRkXMHxzo99KLDFNNHaa9eqtY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FixRC5cnfAywIatd6ZX8qeWr5xQ+ZtOT7LlVbLN8nUvPIqNgn6UK86/Mu8Nh8VDVH 8CjTGNtHs6Hen++X+FM9dBwmYx4INDBniClAxYroud2RMU14i2CrMcLogYMwsKgonh dN5nbj29gNSAO1Gwcugimf/1jyp1Nes/eIDCN3XkLhuOKHzaYydaahvEMY6S5wDwKJ svVUZ8Ehz7FBRqm5Ct1rvdEKeui2LwRDTI/xP4cwdA1gngV9z9AY0KfAw2K4UDL3gB /hUAG5o+s2K8US1DZ7CA2K3h6qPMU31/8QRmcfXtukijs/DnWgY/DLPvuxLiWETZJd 0b91K6Aoy8jOg== From: Kalle Valo To: linux-wireless@vger.kernel.org Subject: [PATCH 3/3] wifi: ath9k_htc: fix format-truncation warning Date: Thu, 12 Oct 2023 16:58:54 +0300 Message-Id: <20231012135854.3473332-3-kvalo@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231012135854.3473332-1-kvalo@kernel.org> References: <20231012135854.3473332-1-kvalo@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 12 Oct 2023 06:59:11 -0700 (PDT) On v6.6-rc4 with GCC 13.2 I see: drivers/net/wireless/ath/ath9k/hif_usb.c:1223:42: warning: '.0.fw' directive output may be truncated writing 5 bytes into a region of size between 4 and 11 [-Wformat-truncation=] drivers/net/wireless/ath/ath9k/hif_usb.c:1222:17: note: 'snprintf' output between 27 and 34 bytes into a destination of size 32 Fix it by increasing the size of the fw_name field to 64 bytes. Compile tested only. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath9k/hif_usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.h b/drivers/net/wireless/ath/ath9k/hif_usb.h index 5985aa15ca93..b3e66b0485a5 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.h +++ b/drivers/net/wireless/ath/ath9k/hif_usb.h @@ -126,7 +126,7 @@ struct hif_device_usb { struct usb_anchor reg_in_submitted; struct usb_anchor mgmt_submitted; struct sk_buff *remain_skb; - char fw_name[32]; + char fw_name[64]; int fw_minor_index; int rx_remain_len; int rx_pkt_len; -- 2.39.2