WSL2-Linux-Kernel/sound/soc/atmel
Nathan Chancellor fecd236ef6 ASoC: mchp-spdifrx: Fix uninitialized use of mr in mchp_spdifrx_hw_params()
[ Upstream commit 218674a459 ]

Clang warns:

  ../sound/soc/atmel/mchp-spdifrx.c:455:3: error: variable 'mr' is uninitialized when used here [-Werror,-Wuninitialized]
                  mr |= SPDIFRX_MR_ENDIAN_BIG;
                  ^~
  ../sound/soc/atmel/mchp-spdifrx.c:432:8: note: initialize the variable 'mr' to silence this warning
          u32 mr;
                ^
                 = 0
  1 error generated.

Zero initialize mr so that these bitwise OR and assignment operation
works unconditionally.

Fixes: fa09fa6038 ("ASoC: mchp-spdifrx: fix controls which rely on rsr register")
Link: https://github.com/ClangBuiltLinux/linux/issues/1797
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230202-mchp-spdifrx-fix-uninit-mr-v1-1-629a045d7a2f@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:28 +01:00
..
Kconfig ASoC: atmel: ATMEL drivers don't need HAS_DMA 2021-07-11 23:48:35 +01:00
Makefile ASoC: mchp-spdifrx: add driver for SPDIF RX 2020-10-02 20:45:35 +01:00
atmel-classd.c ASoC: atmel-classd: Remove endianness flag on class d component 2022-06-09 10:23:10 +02:00
atmel-classd.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel-i2s.c Merge remote-tracking branch 'asoc/for-5.14' into asoc-next 2021-06-25 14:08:03 +01:00
atmel-pcm-dma.c ASoC: atmel-pcm: remove unnecessary include 2020-09-30 16:12:13 +01:00
atmel-pcm-pdc.c ASoC: atmel-pdc: Use managed DMA buffer allocation 2021-01-13 11:36:15 +00:00
atmel-pcm.h ASoC: atmel: atmel-pcm-dma.c: use devm_snd_dmaengine_pcm_register() 2019-06-28 15:08:38 +01:00
atmel-pdmic.c ASoC: atmel-pdmic: Remove endianness flag on pdmic component 2022-06-09 10:23:10 +02:00
atmel-pdmic.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Handle errors for clk_enable 2022-04-08 14:23:19 +02:00
atmel_ssc_dai.h ASoC: atmel_ssc_dai: Remove wrong spinlock usage 2019-09-18 11:12:24 +01:00
atmel_wm8904.c ASoC: atmel: use asoc_substream_to_rtd() 2020-07-23 19:07:33 +01:00
mchp-i2s-mcc.c ASoC: mchp-i2s-mcc: Use devm_platform_get_and_ioremap_resource() 2021-06-14 14:59:14 +01:00
mchp-spdifrx.c ASoC: mchp-spdifrx: Fix uninitialized use of mr in mchp_spdifrx_hw_params() 2023-03-10 09:39:28 +01:00
mchp-spdiftx.c ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion 2022-09-15 11:30:07 +02:00
mikroe-proto.c ASoC: atmel: Fix error handling in snd_proto_probe 2022-04-08 14:23:21 +02:00
sam9g20_wm8731.c ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek 2022-04-27 14:38:51 +02:00
sam9x5_wm8731.c ASoC: atmel: Fix error handling in sam9x5_wm8731_driver_probe 2022-04-08 14:23:22 +02:00
tse850-pcm5142.c ASoC: atmel: fix spelling mistakes 2021-07-11 23:48:33 +01:00