[PATCH 1/4] phy: broadcom: sata: fix Wvoid-pointer-to-enum-cast warning

Vinod Koul vkoul at kernel.org
Fri Aug 11 01:30:39 PDT 2023


On Thu, 10 Aug 2023 13:19:55 +0200, Krzysztof Kozlowski wrote:
> 'version' is an enum, thus cast of pointer on 64-bit compile test with
> W=1 causes:
> 
>   phy-brcm-sata.c:775:19: error: cast to smaller integer type 'enum brcm_sata_phy_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
> 
> 

Applied, thanks!

[1/4] phy: broadcom: sata: fix Wvoid-pointer-to-enum-cast warning
      commit: d35c12b7db15e2c1316c32bad24dea2255c5f7b3
[2/4] phy: broadcom: ns-usb3: fix Wvoid-pointer-to-enum-cast warning
      commit: bd6e74a2f0a0c76dda8e44d26f9b91a797586c3b
[3/4] phy: broadcom: sr-usb: fix Wvoid-pointer-to-enum-cast warning
      commit: 2bc00b9b9001329792b14ce20141f334b6debcbc
[4/4] phy: marvell pxa-usb: fix Wvoid-pointer-to-enum-cast warning
      commit: 7451eecf1ef8be9911749e927ce5690262cc9197

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list