From nobody Thu Sep 19 19:32:54 2024 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 CEB621C2A3; Sat, 7 Sep 2024 00:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725670546; cv=none; b=VgEm+IWU2HmlOoLF4bBKFz902tjMEeZcTAJsRjybpNeODAUEwmc86KOC84skp0hCmb4mj/iynwwfLaiJ0wmkzDT/b4pWe+O+f1WC1Vt9FhsiUrF8p7pxkHLSp6ESGgBlyWy03RMfp76Z0qTEtSOD55uU/0NdMvYGSg9McfnO0/E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725670546; c=relaxed/simple; bh=BRGjOgFnTrmZqTMBAf7IoRHZkNEMl+9ApZDZZ8fAqw0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tiDicakRA9hamZMGg951x9hch7RbagQfihVAduiH693ee/NsARE2EW2XZdZ/f8+7jcxxy16fF70Gs54EtefRE11j/XYb1XR9lKEnJwGR8Mh4bac0NKPBG23LVMOd8ImH9nbrSpFHWtwkVvp4K4t0yy52Mqz6vRNoAtKJ135IbfU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Na3WJvgp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Na3WJvgp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21759C4CEC6; Sat, 7 Sep 2024 00:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725670546; bh=BRGjOgFnTrmZqTMBAf7IoRHZkNEMl+9ApZDZZ8fAqw0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Na3WJvgp574EalKMFfJvWAydc15T9xbm9tOunwzyhZWvha5zLyrJ3sm/6xaffaTwu aHO4rPerbTkYRJcxi3f30EKdNC/sCx60r0935GoDhj9nchMh+dzVhB5JsHkiQT0OiA dOOcj9Wp3sKbA4QGmnZEL13bsx1EF9Zb7jHo8UDY4keUJYHvLq+m9Om8gmeBhW/HfU aUVYAPyXZ1vm00kvREHHnU69Vmv9w5xFo+GpwBdGeoSvmyKV6bMlkyLvF3pbCCG3WT POAPZDzYcj6yX9cOqSQffWp4AbtFuw/pSR2m9fUVlUE/hFgQm0DoHINRn1OUn6JKh9 2L4fn75LHvoVw== From: Mark Brown Date: Sat, 07 Sep 2024 01:53:29 +0100 Subject: [PATCH 4/7] ASoC: mt8365: Make non-exported functions static Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240907-asoc-fix-mt8365-build-v1-4-7ad0bac20161@kernel.org> References: <20240907-asoc-fix-mt8365-build-v1-0-7ad0bac20161@kernel.org> In-Reply-To: <20240907-asoc-fix-mt8365-build-v1-0-7ad0bac20161@kernel.org> To: Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno Cc: Nathan Chancellor , Alexandre Mergnat , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Mark Brown X-Mailer: b4 0.15-dev-99b12 X-Developer-Signature: v=1; a=openpgp-sha256; l=3001; i=broonie@kernel.org; h=from:subject:message-id; bh=BRGjOgFnTrmZqTMBAf7IoRHZkNEMl+9ApZDZZ8fAqw0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBm26R/DCjR8omgTVIF6yFLtT+coGO18yH9dw040 FDUGLMhP7CJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZtukfwAKCRAk1otyXVSH 0CoTB/4xpjJxFz84COXQNXL6pfwfhvyOgKYcVgjRa4smg63udhEstOCLD/q8C0trO206byrMWGx W+0Z8BdbmD1iZigLFQOBlhw7r2pSnCeYYKjz/p67QZwHVPkSXnTJfe01GOFeJ00x4kbYvbMAJzf d3d0AC6MsdNlPfg6wbWQ8MA93Yaq1+a9SxWPL+7v+pkEhRfWwBKi0+kBC8+OPWNcP4mbAqFFjBk 1EM8gkTPlko0trGpLKBHf4GxAens19YcyGWFJN+XCAVmUPTyDEeMKdFeu36VSDWdVC+kdG2Z0sG kCNfsh82aCjR0frpShwvdC4Ki6Atw2BrSxM1h7lyV1mx0tk2 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB The compilers warn if functions without a prototype are not static so add appropriate static declarations. Reported-by: Nathan Chancellor Signed-off-by: Mark Brown Reviewed-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- sound/soc/mediatek/mt8365/mt8365-afe-clk.c | 4 ++-- sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/mediatek/mt8365/mt8365-afe-clk.c b/sound/soc/mediate= k/mt8365/mt8365-afe-clk.c index 300d1f0ae660..8a0af2ea8546 100644 --- a/sound/soc/mediatek/mt8365/mt8365-afe-clk.c +++ b/sound/soc/mediatek/mt8365/mt8365-afe-clk.c @@ -295,7 +295,7 @@ int mt8365_afe_disable_afe_on(struct mtk_base_afe *afe) return 0; } =20 -int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1) +static int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1) { if (apll1) regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE, @@ -307,7 +307,7 @@ int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe= , bool apll1) return 0; } =20 -int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1) +static int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll= 1) { if (apll1) regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE, diff --git a/sound/soc/mediatek/mt8365/mt8365-afe-pcm.c b/sound/soc/mediate= k/mt8365/mt8365-afe-pcm.c index df6dd8c5bbe5..54d2112d2e92 100644 --- a/sound/soc/mediatek/mt8365/mt8365-afe-pcm.c +++ b/sound/soc/mediatek/mt8365/mt8365-afe-pcm.c @@ -170,7 +170,7 @@ bool mt8365_afe_channel_supported(unsigned int channel,= unsigned int id) return false; } =20 -bool mt8365_afe_clk_group_44k(int sample_rate) +static bool mt8365_afe_clk_group_44k(int sample_rate) { if (sample_rate =3D=3D 11025 || sample_rate =3D=3D 22050 || @@ -182,7 +182,7 @@ bool mt8365_afe_clk_group_44k(int sample_rate) return false; } =20 -bool mt8365_afe_clk_group_48k(int sample_rate) +static bool mt8365_afe_clk_group_48k(int sample_rate) { return (!mt8365_afe_clk_group_44k(sample_rate)); } @@ -496,8 +496,8 @@ static int mt8365_afe_configure_cm(struct mtk_base_afe = *afe, return 0; } =20 -int mt8365_afe_fe_startup(struct snd_pcm_substream *substream, - struct snd_soc_dai *dai) +static int mt8365_afe_fe_startup(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai) { struct snd_soc_pcm_runtime *rtd =3D snd_soc_substream_to_rtd(substream); struct mtk_base_afe *afe =3D snd_soc_dai_get_drvdata(dai); @@ -714,8 +714,8 @@ static int mt8365_afe_fe_prepare(struct snd_pcm_substre= am *substream, return 0; } =20 -int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd, - struct snd_soc_dai *dai) +static int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int = cmd, + struct snd_soc_dai *dai) { struct snd_soc_pcm_runtime *rtd =3D snd_soc_substream_to_rtd(substream); struct mtk_base_afe *afe =3D snd_soc_dai_get_drvdata(dai); --=20 2.39.2