linux/sound/soc/atmel
Nathan Chancellor eab9100d98
ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion
A recent change in clang strengthened its -Wbitfield-constant-conversion
to warn when 1 is assigned to a 1-bit signed integer bitfield, as it can
only be 0 or -1, not 1:

  sound/soc/atmel/mchp-spdiftx.c:505:20: error: implicit truncation from 'int' to bit-field changes value from 1 to -1 [-Werror,-Wbitfield-constant-conversion]
          dev->gclk_enabled = 1;
                            ^ ~
  1 error generated.

The actual value of the field is never checked, just that it is not
zero, so there is not a real bug here. However, it is simple enough to
silence the warning by making the bitfield unsigned, which matches the
mchp-spdifrx driver.

Fixes: 06ca24e98e ("ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller")
Link: https://github.com/ClangBuiltLinux/linux/issues/1686
Link: 82afc9b169
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20220810010809.2024482-1-nathan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-08-15 01:19:59 +01:00
..
atmel_ssc_dai.c ASoC: atmel_ssc_dai: remove #ifdef CONFIG_PM 2022-07-15 12:35:12 +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
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
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
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: atmel: one fix and one cleanup 2022-07-28 01:21:40 +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: Use dev_err_probe() for snd_soc_register_card() 2022-05-09 19:46:35 +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