[PATCH 1/7] ASoC: mt8365: Open code BIT() to avoid spurious warnings

Alexandre Mergnat amergnat at baylibre.com
Mon Sep 9 05:50:36 PDT 2024


Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

On 07/09/2024 02:53, Mark Brown wrote:
> 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 << /

-- 
Regards,
Alexandre



More information about the Linux-mediatek mailing list