]> www.infradead.org Git - users/willy/linux.git/commit
ASoC: mt8365: Open code BIT() to avoid spurious warnings
authorMark Brown <broonie@kernel.org>
Sat, 7 Sep 2024 00:53:26 +0000 (01:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2024 15:58:12 +0000 (16:58 +0100)
commitd01c6a398750aae265c17859b57d7409a6d9181d
tree13f33fc882bd9a40ae920b3fc975e50c8ab11c6a
parent241c044e743f9c55886828763c99b51b0392c21d
ASoC: mt8365: Open code BIT() to avoid spurious warnings

The mt8365 driver uses bits.h to define bitfields but BIT() uses unsigned
long constants so does not play well with being bitwise negated and
converted to an unsigned int, the compiler complains about width reduction
on a number of architectures. Just open code the shifting to avoid the
issue.

Generated with s/BIT(/(1U << /

Reported-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-1-7ad0bac20161@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8365/mt8365-reg.h