ASoC: remove more make W=1 warnings
Subsystems (9)
cover ASoC: remove more make W=1 warnings
These warnings get in the way of automation/CI, let's remove them.
Pierre-Louis Bossart (9):
ASoC: cs4270: fix kernel-doc
ASoC: jz4760: fix set but not used warning
ASoC: rt5631: fix kernel-doc warning
ASoC: sigmadsp-regmap: fix kernel-doc warning
ASoC: amd: renoir: remove invalid kernel-doc comment
ASoC: fsl: fsl_ssi: fix kernel-doc warning
ASoC: fsl: fsl_easrc: fix kernel-doc warning
ASoC: Intel: bytcr_wm5102: remove unused static variable
ASoC: qcom: q6dsp: fix kernel-doc warning
sound/soc/amd/renoir/rn-pci-acp3x.c | 2 +- sound/soc/codecs/cs4270.c | 1 + sound/soc/codecs/jz4760.c | 4 ++-- sound/soc/codecs/rt5631.c | 2 +- sound/soc/codecs/sigmadsp-regmap.c | 2 +- sound/soc/fsl/fsl_easrc.c | 2 +- sound/soc/fsl/fsl_ssi.c | 2 +- sound/soc/intel/boards/bytcr_wm5102.c | 8 -------- sound/soc/qcom/qdsp6/q6afe.c | 2 +- 9 files changed, 9 insertions(+), 16 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/9 ASoC: cs4270: fix kernel-doc
Add missing parameter (which happens to be ignored)
--- sound/soc/codecs/cs4270.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/cs4270.c +1 -0
@@ -400,6 +400,7 @@ static int cs4270_hw_params(struct snd_pcm_substream *substream,* cs4270_dai_mute - enable/disable the CS4270 external mute * @dai: the SOC DAI * @mute: 0 = disable mute, 1 = enable mute +* @direction: (ignored) * * This function toggles the mute bits in the MUTE register. The CS4270's * mute capability is intended for external muting circuitry, so if the
Signature · 1 line
2.25.1
PATCH 2/9 ASoC: jz4760: fix set but not used warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/codecs/jz4760.c: In function ‘jz4760_codec_startup’:sound/soc/codecs/jz4760.c:201:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
201 | int ret;
| ^~~--- sound/soc/codecs/jz4760.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/jz4760.c +2 -2
@@ -198,7 +198,7 @@ static int jz4760_codec_startup(struct snd_pcm_substream *substream, {struct snd_soc_component *codec = dai->component;struct snd_soc_dapm_context *dapm =snd_soc_component_get_dapm (codec); -int ret; +int ret =0 ;/* * SYSCLK output from the codec to the AIC is required to keep the
@@ -207,7 +207,7 @@ static int jz4760_codec_startup(struct snd_pcm_substream *substream,*/ if (substream->stream ==SNDRV_PCM_STREAM_PLAYBACK ) ret =snd_soc_dapm_force_enable_pin (dapm,"SYSCLK" ); -return 0 ; +return ret; } static void jz4760_codec_shutdown(struct snd_pcm_substream *substream,
Signature · 1 line
2.25.1
PATCH 3/9 ASoC: rt5631: fix kernel-doc warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/codecs/rt5631.c:446: warning: expecting prototype for onebit_depop_power_stage(). Prototype was for depop_seq_power_stage() instead
--- sound/soc/codecs/rt5631.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5631.c +1 -1
@@ -436,7 +436,7 @@ static void onebit_depop_mute_stage(struct snd_soc_component *component, int ena }/** -* onebit_depop_power_stage - step by step depop sequence in power stage. +* depop_seq_power_stage - step by step depop sequence in power stage. * @component: ASoC component * @enable: power on/off *
Signature · 1 line
2.25.1
PATCH 4/9 ASoC: sigmadsp-regmap: fix kernel-doc warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/codecs/sigmadsp-regmap.c:42: warning: expecting prototype for devm_sigmadsp_init_i2c(). Prototype was for devm_sigmadsp_init_regmap() instead
--- sound/soc/codecs/sigmadsp-regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/sigmadsp-regmap.c +1 -1
@@ -26,7 +26,7 @@ static int sigmadsp_read_regmap(void *control_data, }/** -* devm_sigmadsp_init_i2c() - Initialize SigmaDSP instance +* devm_sigmadsp_init_regmap() - Initialize SigmaDSP instance * @dev: The parent device * @regmap: Regmap instance to use * @ops: The sigmadsp_ops to use for this instance
Signature · 1 line
2.25.1
PATCH 5/9 ASoC: amd: renoir: remove invalid kernel-doc comment
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/amd/renoir/rn-pci-acp3x.c:24: warning: wrong kernel-doc identifier on line:
* dmic_acpi_check = -1 - Use ACPI/DMI method to detect the DMIC hardware presence at runtime
--- sound/soc/amd/renoir/rn-pci-acp3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/renoir/rn-pci-acp3x.c +1 -1
@@ -20,7 +20,7 @@ static int acp_power_gating;module_param (acp_power_gating, int,0644 );MODULE_PARM_DESC (acp_power_gating,"Enable acp power gating" ); -/** +/* * dmic_acpi_check = -1 - Use ACPI/DMI method to detect the DMIC hardware presence at runtime * = 0 - Skip the DMIC device creation and return probe failure * = 1 - Force DMIC support
Signature · 1 line
2.25.1
PATCH 6/9 ASoC: fsl: fsl_ssi: fix kernel-doc warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/fsl/fsl_ssi.c:371: warning: expecting prototype for fsl_ssi_irq(). Prototype was for fsl_ssi_isr() instead
--- sound/soc/fsl/fsl_ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/fsl_ssi.c +1 -1
@@ -363,7 +363,7 @@ static bool fsl_ssi_is_i2s_cbm_cfs(struct fsl_ssi *ssi) }/** -* fsl_ssi_irq - Interrupt handler to gather states +* fsl_ssi_isr - Interrupt handler to gather states * @irq: irq number * @dev_id: context */
Signature · 1 line
2.25.1
PATCH 7/9 ASoC: fsl: fsl_easrc: fix kernel-doc warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/fsl/fsl_easrc.c:383: warning: wrong kernel-doc identifier on line:
* Scale filter coefficients (64 bits float)
--- sound/soc/fsl/fsl_easrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/fsl_easrc.c +1 -1
@@ -380,7 +380,7 @@ static int fsl_easrc_resampler_config(struct fsl_asrc *easrc) }/** -* Scale filter coefficients (64 bits float) +* fsl_easrc_normalize_filter - Scale filter coefficients (64 bits float) * For input float32 normalized range (1.0,-1.0) -> output int[16,24,32]: * scale it by multiplying filter coefficients by 2^31 * For input int[16, 24, 32] -> output float32
Signature · 1 line
2.25.1
PATCH 8/9 ASoC: Intel: bytcr_wm5102: remove unused static variable
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/intel/boards/bytcr_wm5102.c:216:40: error:
‘byt_wm5102_dai_params’ defined but not used [-Werror=unused-const-variable=]
216 | static const struct snd_soc_pcm_stream byt_wm5102_dai_params = {
| ^~~~~~~~~~~~~~~~~~~~~--- sound/soc/intel/boards/bytcr_wm5102.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_wm5102.c +0 -8
@@ -213,14 +213,6 @@ static int byt_wm5102_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_wm5102_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S16_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_wm5102_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 1 line
2.25.1
PATCH 9/9 ASoC: qcom: q6dsp: fix kernel-doc warning
In reply to Pierre-Louis Bossartmake W=1 warning:
sound/soc/qcom/qdsp6/q6afe.c:1460: warning: expecting prototype for q6afe_dam_port_prepare(). Prototype was for q6afe_cdc_dma_port_prepare() instead
--- sound/soc/qcom/qdsp6/q6afe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/qdsp6/q6afe.c +1 -1
@@ -1448,7 +1448,7 @@ int q6afe_i2s_port_prepare(struct q6afe_port *port, struct q6afe_i2s_cfg *cfg)EXPORT_SYMBOL_GPL (q6afe_i2s_port_prepare);/** -* q6afe_dam_port_prepare() - Prepare dma afe port. +* q6afe_cdc_dma_port_prepare() - Prepare dma afe port. * * @port: Instance of afe port * @cfg: DMA configuration for the afe port
Signature · 1 line
2.25.1
Mark Brown
maintainerQuoted 13 lines · Pierre-Louis Bossart
These warnings get in the way of automation/CI, let's remove them.
Pierre-Louis Bossart (9):
ASoC: cs4270: fix kernel-doc
ASoC: jz4760: fix set but not used warning
ASoC: rt5631: fix kernel-doc warning
ASoC: sigmadsp-regmap: fix kernel-doc warning
ASoC: amd: renoir: remove invalid kernel-doc comment
ASoC: fsl:fsl_ssi: fix kernel-doc warning
ASoC: fsl:fsl_easrc: fix kernel-doc warning
ASoC: Intel:bytcr_wm5102: remove unused static variable
ASoC: qcom: q6dsp: fix kernel-doc warning
Quoted 1 line
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/9] ASoC: cs4270: fix kernel-doc
commit: 8133968501b6d839a3621d553c212b9f3cc1b6ca
[2/9] ASoC: jz4760: fix set but not used warning
commit: af54170f0c1ba84989e0975b6f67e758b472d00c
[3/9] ASoC: rt5631: fix kernel-doc warning
commit: 952b3b9f90a2004b14a90d1fe303600dc8c6a98c
[4/9] ASoC: sigmadsp-regmap: fix kernel-doc warning
commit: de233813778ed0eb8fc8ce03624bcffb29e04564
[5/9] ASoC: amd: renoir: remove invalid kernel-doc comment
commit: 101d1e201fa1d8fd96f7da7a48288c95e2bae6d7
[6/9] ASoC: fsl: fsl_ssi: fix kernel-doc warning
commit: 0c6fbbe5ffd1ff233a84e6e8fbc95f4e6deb6b24
[7/9] ASoC: fsl: fsl_easrc: fix kernel-doc warning
commit: a45c305bbee30506d3bd068b40f6eb8699a88e54
[8/9] ASoC: Intel: bytcr_wm5102: remove unused static variable
commit: ff321d72e7f31e96f92b36f02883fc0a27eb0a9f
[9/9] ASoC: qcom: q6dsp: fix kernel-doc warning
commit: 098acd30d38bd8f5e3aa2544a4bc72942bf8b27eAll being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark