[PATCH] phy: freescale: imx8qm-hsio: Include bitfield.h for FIELD_PREP

Vinod Koul vkoul at kernel.org
Thu Jun 20 09:38:51 PDT 2024


On Thu, 20 Jun 2024 08:21:15 -0700, Nathan Chancellor wrote:
> In various configurations/architectures, bitfield.h may not be
> transitively included, which results in a compiler error because
> FIELD_PREP is an unexpanded macro:
> 
>   drivers/phy/freescale/phy-fsl-imx8qm-hsio.c:459:8: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>     459 |         val = FIELD_PREP(HSIO_MODE_MASK, val);
>         |               ^
>   1 error generated.
> 
> [...]

Applied, thanks!

[1/1] phy: freescale: imx8qm-hsio: Include bitfield.h for FIELD_PREP
      commit: aefa036be8c216c8b344d34c9f35ff907b9c315a

Best regards,
-- 
Vinod Koul <vkoul at kernel.org>




More information about the linux-phy mailing list