[PATCH] phy: broadcom: ns-usb3: Fix Wvoid-pointer-to-enum-cast warning (again)

Vinod Koul vkoul at kernel.org
Thu Jan 1 03:07:38 PST 2026


On Wed, 24 Dec 2025 12:55:34 +0100, Krzysztof Kozlowski wrote:
> "family" is an enum, thus cast of pointer on 64-bit compile test with
> clang W=1 causes:
> 
>   phy-bcm-ns-usb3.c:206:17: error: cast to smaller integer type 'enum bcm_ns_family' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
> 
> This was already fixed in commit bd6e74a2f0a0 ("phy: broadcom: ns-usb3:
> fix Wvoid-pointer-to-enum-cast warning") but then got bad in commit
> 21bf6fc47a1e ("phy: Use device_get_match_data()").
> 
> [...]

Applied, thanks!

[1/1] phy: broadcom: ns-usb3: Fix Wvoid-pointer-to-enum-cast warning (again)
      commit: fb21116099bbea1fc59efa9207e63c4be390ab72

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list