linux/sound/soc
Nathan Chancellor 9c28423d3c
ASoC: SOF: Intel: Initialize chip in hda_sdw_check_wakeen_irq()
Clang warns (or errors with CONFIG_WERROR):

  sound/soc/sof/intel/hda.c:423:6: error: variable 'chip' is uninitialized when used here [-Werror,-Wuninitialized]
    423 |         if (chip && chip->check_sdw_wakeen_irq)
        |             ^~~~
  sound/soc/sof/intel/hda.c:418:39: note: initialize the variable 'chip' to silence this warning
    418 |         const struct sof_intel_dsp_desc *chip;
        |                                              ^
        |                                               = NULL
  1 error generated.

Add the missing initialization, following the pattern of the other irq
functions.

Fixes: 9362ab78f1 ("ASoC: SOF: Intel: add abstraction for SoundWire wake-ups")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230809-intel-hda-missing-chip-init-v1-1-61557ca6fa8a@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-08-10 00:27:23 +01:00
..
adi
amd ASoC: amd: acp3x-rt5682-max9836: Configure jack as not detecting Line Out 2023-08-08 13:59:24 +01:00
apple
atmel ASoC: atmel: Fix the 8K sample parameter in I2SC master 2023-07-25 12:10:00 +01:00
au1x
bcm ASoC: bcm: bcm63xx-i2s-whistler: Convert to devm_platform_ioremap_resource() 2023-07-17 06:15:53 +01:00
cirrus
codecs ASoC: Merge up fixes 2023-08-10 00:19:02 +01:00
dwc ASoC: dwc: Add TDM mode support 2023-07-09 22:51:01 +01:00
fsl ASoC: Merge up fixes 2023-08-10 00:19:02 +01:00
generic ASoC: simple-card.c: enable multi Component support 2023-07-17 06:15:47 +01:00
google
hisilicon
img
intel ASoC: Merge up fixes 2023-08-10 00:19:02 +01:00
jz4740
kirkwood
loongson ASoC: loongson: drop of_match_ptr for OF device id 2023-07-26 12:49:45 +01:00
mediatek ASoC: mediatek: mt8186-mt6366-da7219-max98357: Map missing jack kcontrols 2023-08-07 14:32:58 +01:00
meson ASoC: meson: use snd_soc_{of_}get_dlc() 2023-06-20 12:49:25 +01:00
mxs
pxa ASoC: pxa: address unused variable warning 2023-08-08 18:57:27 +01:00
qcom ASoC: qcom: sdm845: Map missing jack kcontrols 2023-08-07 14:33:03 +01:00
rockchip ASoC: rockchip: rockchip_rt5645: Map missing jack kcontrols 2023-08-07 14:33:05 +01:00
samsung ASoC: samsung: midas_wm1811: Fix 'Headphone Switch' control creation 2023-08-09 12:52:36 +01:00
sh ASoC: rsnd: call of_node_put() when break 2023-08-09 12:52:35 +01:00
sof ASoC: SOF: Intel: Initialize chip in hda_sdw_check_wakeen_irq() 2023-08-10 00:27:23 +01:00
spear
sprd
starfive ASoC: starfive: jh7110_tdm: Convert to platform remove callback returning void 2023-07-09 22:47:14 +01:00
sti
stm
sunxi
tegra ASoC: tegra: tegra20_ac97: Use devm_platform_get_and_ioremap_resource() 2023-07-17 06:15:56 +01:00
ti ASoC: ti: davinci-evm: simplify the code with module_platform_driver 2023-08-04 13:30:44 +01:00
uniphier
ux500
xilinx
xtensa
Kconfig ASoC: topology: Add explicit build option 2023-07-18 15:19:03 +01:00
Makefile ASoC: Add support for Loongson I2S controller 2023-06-15 13:53:24 +01:00
soc-ac97.c
soc-acpi.c ASoC: soc-acpi: improve log messagesin link_slaves_found() 2023-07-31 23:24:01 +01:00
soc-card.c
soc-component.c
soc-compress.c
soc-core.c ASoC: soc-core.c: add snd_soc_copy_dai_args() 2023-07-17 06:15:46 +01:00
soc-dai.c ASoC: soc-dai: don't call PCM audio ops if the stream is not supported 2023-07-25 12:11:49 +01:00
soc-dapm.c ASoC: add N cpus to M codecs dai link support 2023-06-13 12:11:15 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops.c
soc-pcm.c ASoC: lower "no backend DAIs enabled for ... Port" log severity 2023-08-07 19:56:06 +01:00
soc-topology-test.c
soc-topology.c ASoC: topology: suppress probe deferral errors 2023-07-06 13:46:31 +01:00
soc-utils-test.c
soc-utils.c