From patchwork Sun Apr 14 18:47:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13629198 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 52597C001CC for ; Sun, 14 Apr 2024 18:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XKBct16l0ztzXYbjbXh7zEJeYSxmSnVFCyRbDBr6Fhs=; b=hjrghN4sLI0mg0 TgUqqzFXHcy8rP5qoNhuNoRGWvz8pOjeXsAdfprQ12EK/Lj4Marz+XKWeNo3gP3rcLLAfdgi2mAM8 h+zt2q6vsltcN2hwLKXRoCdSZjmRgOqelF5porPxvo2ubGDP90uy61cAVQbstY2hqJmTMf8Wtu6KD 769MWsoKNJO0GF8r3anTYI1HL5W3kYD7JYm6hKVho8qYIkmCV0kfuoe3kfj7ak+47TcirxTaZevXJ no0tjtE/5p7P7Pfcyf9gSey+fqQGb48nLk1GHpuBFgH0Js8kI9hM5SjTSeafoJdd3JTu8Bx1rVzs2 9t3ti3rcgYbEbQGZQLvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rw4tU-000000067g8-1YXU; Sun, 14 Apr 2024 18:48:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rw4tN-000000067d4-2upk; Sun, 14 Apr 2024 18:47:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 1E30160B91; Sun, 14 Apr 2024 18:47:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3C8AC32781; Sun, 14 Apr 2024 18:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713120472; bh=DA7Xhm7CIdTyUAE5kLzTjcdZetnjAQrUPt5y8eetwKE=; h=From:Subject:Date:To:Cc:From; b=qGmwEkCaSO+ndP903jkeq/1ya0gUzImqaMqU+OCkahA3j6FSAUuU87u6KNJMPlaWD j7XUeWky2t4ndwM9v/UOLhx3fNfw+wxNcCqRSObq8OucAUK/R0tDGEdYmmtIh01PTM uHftKHEPQbLVjigA8nz4CpNhIcljN+PIWuF6Kil0l7Xb4uSNj4E+Ru7B6KHS1REMTj mO717VMblG6G63ll5q8LGezFNIFloVSRvi4kW5pODlKapSydM33brrj/F8d/E1Y9Ib 6A9A/fPAL+Nm3sVIUpuJkC5+gscsMtR876vf7ALyWuCvoFBF3mHqnj4bmzSkZNniiN F7f4PdDf31YcA== From: Krzysztof Kozlowski Subject: [PATCH 00/14] ASoC: Constify local snd_sof_dsp_ops Date: Sun, 14 Apr 2024 20:47:25 +0200 Message-Id: <20240414-n-const-ops-var-v1-0-8f53ee5d981c@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAL0kHGYC/x3MSQqAMAxA0atI1gY6qehVxIVD1Gza0ogIxbtbX L7F/xmEEpPAUGVIdLNw8AW6rmA9Z38Q8lYMRhmnnHbocQ1eLgxR8J4Tatvutm8W27kFShUT7fz 8x3F63w8spXrrYQAAAA== To: Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matthias Brugger , AngeloGioacchino Del Regno Cc: sound-open-firmware@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2090; i=krzk@kernel.org; h=from:subject:message-id; bh=DA7Xhm7CIdTyUAE5kLzTjcdZetnjAQrUPt5y8eetwKE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmHCTEYgvK0cxgMUWmJqebyTC46hEix8erEmoHQ 0LgInNsq02JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZhwkxAAKCRDBN2bmhouD 1+URD/9v7KQnkgevykar6uQg1LyBbWXnatbRj4tlJuPDClSkLTMDWUJwy53UVc11/ocnXpzG8Kw yyhvnl7Eu9MULyHfAOxgP2gnA9QTM4o9aJEz9L23dIgxc/m2JdC4TURy+1cVMoJ/lgcAlh3Munz XRrw+7PFQyt7KjiZDoy1al6RcoCGsVvgR0shiLEVz3FT0/gHGmoC8jDjasXSsCIox6H6ia3SerY Yj5VEYukUlKKBoT9olENDnl8VnPUu0COzOxo+k7NvMqq1mGe8KYiegKO1Qn8FlTyFjt3SxfsyZr mMaPRynuHXNuPbPjPAZBFak10oLq30UmFSNS+r/VlSq9Ow8oSt7b7tqFCtDOJHy4sD5UOfgGeh4 yca45EeuA9NPfaYUc5Q1L1Y3PMiAI9sBNawiFKnGDd8faw/Xer+u1wcssvTcC5XP4qJYWDiOh+O lygYWII9seLhRyTeNPFQN/KLUibnuOBgarAeCy9MszUUJstA+nlEaRT9BzaDWeAur4TTjYAoykb KXLZ77bHXcOP6yQBHUnN64WtC72OxLmFqWQ91ABt5irDe6GJkgnMRyyu5Eb3ECpyH1GvKTLXCg5 6mFFdTuOR0lsUAUY1REuH310h+riAImmZka+JoYJjnN6/xKKHtAT3n6jzwyzVD0OiN3G1OQoxca WEOmbjIEIC+5ndQ== X-Developer-Key: i=krzk@kernel.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240414_114753_908718_001B3B5B X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Hi, The core code does not modify the 'struct snd_sof_dsp_ops' passed via pointer in various places, so this can be made pointer to const. All further patches depend on the first four patches. Best regards, Krzysztof Tested-by: Pierre-Louis Bossart --- Krzysztof Kozlowski (14): ASoC: SOF: debug: Constify local snd_sof_dsp_ops ASoC: SOF: ipc3: Constify local snd_sof_dsp_ops ASoC: SOF: pcm: Constify local snd_sof_dsp_ops ASoC: SOF: Constify stored pointer to snd_sof_dsp_ops ASoC: SOF: intel: pci-tng: Constify snd_sof_dsp_ops ASoC: SOF: intel: hda: Constify snd_sof_dsp_ops ASoC: SOF: amd: acp: Constify snd_sof_dsp_ops ASoC: SOF: imx8: Constify snd_sof_dsp_ops ASoC: SOF: imx8m: Constify snd_sof_dsp_ops ASoC: SOF: imx8ulp: Constify snd_sof_dsp_ops ASoC: SOF: intel: bdw: Constify snd_sof_dsp_ops ASoC: SOF: intel: byt: Constify snd_sof_dsp_ops ASoC: SOF: mediatek: mt8186: Constify snd_sof_dsp_ops ASoC: SOF: mediatek: mt8195: Constify snd_sof_dsp_ops include/sound/sof.h | 2 +- sound/soc/sof/amd/acp-common.c | 2 +- sound/soc/sof/amd/acp.h | 2 +- sound/soc/sof/debug.c | 2 +- sound/soc/sof/imx/imx8.c | 4 ++-- sound/soc/sof/imx/imx8m.c | 2 +- sound/soc/sof/imx/imx8ulp.c | 2 +- sound/soc/sof/intel/bdw.c | 2 +- sound/soc/sof/intel/byt.c | 4 ++-- sound/soc/sof/intel/hda-common-ops.c | 2 +- sound/soc/sof/intel/hda.h | 2 +- sound/soc/sof/intel/pci-tng.c | 2 +- sound/soc/sof/intel/shim.h | 2 +- sound/soc/sof/ipc3-priv.h | 6 +++--- sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +- sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +- sound/soc/sof/pcm.c | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) --- base-commit: 9aa527ea9d7e33323f6a5c793eb62b09b7f96d46 change-id: 20240414-n-const-ops-var-136f395b374b Best regards,