acrn-kernel/sound/soc/atmel
Nathan Chancellor 9eecb446fa 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:33:19 +01:00
..
Kconfig ASoC: wm8731: Factor out the I2C and SPI bus code into separate modules 2022-04-04 08:39:32 +01:00
Makefile ASoC: atmel: mchp-pdmc: add PDMC driver 2022-03-08 13:38:59 +00:00
atmel-classd.c ASoC: atmel: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:31 +01:00
atmel-classd.h
atmel-i2s.c ASoC: atmel: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:31 +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
atmel-pdmic.c ASoC: atmel: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:31 +01:00
atmel-pdmic.h
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Remove the unneeded result variable 2022-08-23 13:04:51 +01:00
atmel_ssc_dai.h
atmel_wm8904.c ASoC: atmel: Convert to new style DAI format definitions 2021-09-16 14:11:30 +01:00
mchp-i2s-mcc.c ASoC: atmel: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:31 +01:00
mchp-pdmc.c ASoC: atmel: mchp-pdmc: remove space in front of mchp_pdmc_dt_init() 2022-07-11 16:16:12 +01:00
mchp-spdifrx.c ASoC: mchp-spdifrx: Fix uninitialized use of mr in mchp_spdifrx_hw_params() 2023-03-10 09:33:19 +01:00
mchp-spdiftx.c ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion 2022-08-15 01:19:59 +01:00
mikroe-proto.c ASoC: core: Make snd_soc_unregister_card() return void 2022-06-22 13:39:34 +01:00
sam9g20_wm8731.c ASoC: sam9g20_wm8731: Simplify some error message 2022-08-15 01:20:05 +01:00
sam9x5_wm8731.c ASoC: atmel: Fix error handling in sam9x5_wm8731_driver_probe 2022-03-16 16:39:19 +00:00
tse850-pcm5142.c ASoC: ateml: Use dev_err_probe() helper 2021-12-20 12:47:12 +00:00