aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2022-08-09 18:08:09 -0700
committerMark Brown <broonie@kernel.org>2022-08-15 01:19:59 +0100
commiteab9100d9898cbd37882b04415b12156f8942f18 (patch)
treeb25070586637d0b22d07dec8bd39d591e455c4d3 /sound/soc/mediatek
parentASoC: dt-bindings: fsl,sai: Convert format to json-schema (diff)
downloadlinux-dev-eab9100d9898cbd37882b04415b12156f8942f18.tar.xz
linux-dev-eab9100d9898cbd37882b04415b12156f8942f18.zip
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: 06ca24e98e6b ("ASoC: mchp-spdiftx: add driver for S/PDIF TX Controller") Link: https://github.com/ClangBuiltLinux/linux/issues/1686 Link: https://github.com/llvm/llvm-project/commit/82afc9b169a67e8b8a1862fb9c41a2cd974d6691 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>
Diffstat (limited to 'sound/soc/mediatek')
0 files changed, 0 insertions, 0 deletions