Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1758008rdd; Thu, 11 Jan 2024 08:24:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWSFdcBv86QXMTzK0IxjJAx9GsKL+8P2JS7hmCci/sa/VDc1cNX8kqZe6Pw0Rhx1aLetBY X-Received: by 2002:a17:902:d346:b0:1d0:a791:7598 with SMTP id l6-20020a170902d34600b001d0a7917598mr1560752plk.129.1704990252482; Thu, 11 Jan 2024 08:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990252; cv=none; d=google.com; s=arc-20160816; b=EZycV9TKE1KQyBR/zJ2ItLRvzoRa9+95diD8/WHy3zIp1MPVDIzSLvn+qYmQh0HDQo rOTnk2bFy2NAeaDcSZzYxCYxe9uQVaCNmZw4F6PWGp0+VZkbbdM6d9r7KkKDI6myP19+ 7tIRjKSItiGsB9DB5+DrGt+xR/XlqaTV2e2akWm4d+UQzcrkKrlZ6ne32wr8Gef7CZjt yJwndrZU5SSb5d7gyVBkorXa7PmN++jTeOufT29T6TobJBm6ckY97tml5AZ3mkASKBIl pmbEKVl9MhyLmSKGGiT9HRlOSbjz0uB3bKlhlDw3C+TR2AxU8BqHi13OURFb9Y41Id9/ hohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=fbBef/npBitbuc+Tzry04ol6YuhS4jOZROUDTjLYr94=; fh=u/x6E1ik9Iry12gxBAnmBS3GBWA6M82WLDgOoe2GHnM=; b=ZqdSZhE1jjRlJRvgQI9TFO17euxZF6b1DvNtzx4lCaNP0i0fod+qTPTIDOj6FkZI2E aDIz6QPBHIKKNGrn/9gjEbXGbXQ5B6W5y6qmq9c3AW0yTklOrBejvJ3q0rDa45aKH4ax nTOn+Do2AZo8rQSeUoOZxM1M4Ty/iWhiEeOsaLyqtQFQWB+bRNPw/prPTRCNVWfNUX7l D2fQRVfVO64u1BfuPRBFczieNOVQhMvvEc0NQ2YoSV/kvM+ZP1iSyKlJjULtINi2cZ8o WSwi21J4qxOeEJpvqCvLZgWYHyAshQy3UzNrd1AzZlx5FBYApIOX8G9UfREMf2p6FWQy cP0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sd4NHbiu; spf=pass (google.com: domain of linux-kernel+bounces-23857-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z10-20020a170903018a00b001d4bb568f0asi1510241plg.227.2024.01.11.08.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:24:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23857-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sd4NHbiu; spf=pass (google.com: domain of linux-kernel+bounces-23857-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23857-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1630828926D for ; Thu, 11 Jan 2024 16:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6FC524AB; Thu, 11 Jan 2024 16:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Sd4NHbiu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CE4851C27; Thu, 11 Jan 2024 16:21:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE39BC433F1; Thu, 11 Jan 2024 16:21:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704990081; bh=cLMSls0CclaGc98AAZVASmR+hPSsayxTFbvOAqBnEQQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Sd4NHbiuDtAmFeJViN6EkVGtGanE/TQTIzyeIoRQ1TBpYJFA4se4MwkT0lhmmdoP2 UwOH/0tWuDwDFGs0+VktMMWC06uQDmrTkMMR1jEDikRZTPsfngeGWbHF+Ie1PaUNMu oOoCzWEw6IUC79iks94p6YnoftyVkzWvKT1t915YKJgt97ySr9ScjRLSV0xjdad6xS MAG+G21MdgH0t6wZD0HMrQ/uUublvOQXgU4o/IxuHuvI1X5ebtZfEbhmSQQCaJlvrG 7QnTkR5GUrTywjZkEwjh9MaLeCJkeh2NSJc063rn6cGT2UH75tutXnjeT7G7/al5hX Ln7c0PocxePzQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/3] wifi: ath12k: Remove unnecessary struct qmi_txn initializers From: Kalle Valo In-Reply-To: <20240109-qmi-cleanup-v1-1-607b10858566@quicinc.com> References: <20240109-qmi-cleanup-v1-1-607b10858566@quicinc.com> To: Jeff Johnson Cc: Jeff Johnson , , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170499007813.916301.2323327164409855961.kvalo@kernel.org> Date: Thu, 11 Jan 2024 16:21:19 +0000 (UTC) Jeff Johnson wrote: > Currently most of the ath12k QMI messaging functions define their > struct qmi_txn variables with a {} initializer. However, all of these > functions subsequently call qmi_txn_init(), and the very first thing > that function does is zero the struct. Hence, the initializers are > unnecessary. Since these consume code space and cpu cycles, remove > them. > > No functional changes, compile tested only. s-o-b missing on all 3 patches. 3 patches set to Changes Requested. 13515170 [1/3] wifi: ath12k: Remove unnecessary struct qmi_txn initializers 13515167 [2/3] wifi: ath12k: Add missing qmi_txn_cancel() calls 13515168 [3/3] wifi: ath12k: Use initializers for QMI message buffers -- https://patchwork.kernel.org/project/linux-wireless/patch/20240109-qmi-cleanup-v1-1-607b10858566@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches