[PATCH next v2] phy: mediatek: fix build warning of FIELD_PREP()

Vinod Koul vkoul at kernel.org
Wed Sep 28 22:42:43 PDT 2022


On 28-09-22, 15:07, Chunfeng Yun wrote:
> Change the inline function mtk_phy_update_field() into a macro to
> avoid check warning of FIELD_PREP() with compiler parameter
> -Wtautological-constant-out-of-range-compare
> 
> the warning is caused by mask check:
> "BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \"

Applied, thanks

-- 
~Vinod



More information about the linux-arm-kernel mailing list