From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEBE4280A3B; Wed, 4 Feb 2026 14:43:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216198; cv=none; b=ccoQZvn+iNVa7Vs/zR6ioSCFhvZMzAwcUnsfSaKH9xGtPN22VjayA7SqSElgrqE5frbe9CWX36Jq10i9RPf/Yca59Ek2PSaCoyTH2NMipxCGF5ta8poa/21G0VwTP5Up+NKQhtoQLYiX/PKEBsHy2jRbxbhKYvSY6v3DP2MPIfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216198; c=relaxed/simple; bh=KM3GKyGob4DSP7wMC5LVLr5kRg7ZNmF5K/V5pBru4Eo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C5sLEqSa8TVfgKQ9u5srS0C4x6GOTo5NE3TGhhagXu0cK2kV3hPKWaMc44w5Hia7vQaHxeKx4KjYvs0Vfr546gacd7C1+IOTyTAZ//xidvV7a9zcfgV7LRRNo9xdeZ1vs7XJY9JK8vBCnT9XJ9efA6NAM2Biq9vPUBQrp9GziKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2XucmhrP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2XucmhrP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B6BEC4CEF7; Wed, 4 Feb 2026 14:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216198; bh=KM3GKyGob4DSP7wMC5LVLr5kRg7ZNmF5K/V5pBru4Eo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2XucmhrPm4WJ4sUHIrGehqmm2hT7kcFZO83BqrkE1rsqxGk5IeJ6NqiBClP969Cf3 VRj3SZbtlvWDBrKYAwBZd3M86jcG9bVL/3geKMQ8auKr0wMsb99RS/utMpQWBdxLxr sPKsGxcyuD7Nri9wBq7mGvRixIhGZNf8ZCAh4akI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 017/161] phy: broadcom: ns-usb3: Fix Wvoid-pointer-to-enum-cast warning (again) Date: Wed, 4 Feb 2026 15:38:00 +0100 Message-ID: <20260204143852.384862682@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143851.755002596@linuxfoundation.org> References: <20260204143851.755002596@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Krzysztof Kozlowski [ Upstream commit fb21116099bbea1fc59efa9207e63c4be390ab72 ] "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()"). Note that after various discussions the preferred cast is via "unsigned long", not "uintptr_t". Fixes: 21bf6fc47a1e ("phy: Use device_get_match_data()") Signed-off-by: Krzysztof Kozlowski Link: https://patch.msgid.link/20251224115533.154162-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/broadcom/phy-bcm-ns-usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-bcm-ns-usb3.c b/drivers/phy/broadcom/phy-bcm-ns-usb3.c index 45b366855e80d..e04a42fe6b654 100644 --- a/drivers/phy/broadcom/phy-bcm-ns-usb3.c +++ b/drivers/phy/broadcom/phy-bcm-ns-usb3.c @@ -203,7 +203,7 @@ static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev) usb3->dev = dev; usb3->mdiodev = mdiodev; - usb3->family = (enum bcm_ns_family)device_get_match_data(dev); + usb3->family = (unsigned long)device_get_match_data(dev); syscon_np = of_parse_phandle(dev->of_node, "usb3-dmp-syscon", 0); err = of_address_to_resource(syscon_np, 0, &res); -- 2.51.0