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 79FD6262FF3; Tue, 30 Sep 2025 14:57:47 +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=1759244269; cv=none; b=djVGQ0H7UUu0ZvHIPidxxMs60mVPDzfcLla7r0+Wr9gPKukI/JGDDxoYLWn3rNAdFPXh6Fbn/vJAb2315R7+ck47VMM9FH2iNPacWXA3VPSwP6xeF7swIBYb80NHy5QM/WJ6hvXK7uCi4yL9MOyMavKlXyFmWgZFIZ1rXBfvWg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759244269; c=relaxed/simple; bh=r3/Zb73f+fAzRm7lX0Gem9wUiiwA54howe4J1V7iEjI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JmOPZZd5B1ViMl0JRpsxNb6e72dXJeXQpw2PyyUYD77ul7q5qR1ZP9mQl6I2ax1Q3uEc0IDMPpV112mGle+dIZ8eLnEBln1NVhf0Wyq1hXefA0C4UlpvazegW6ZXK8lpD9Gm1LLrsyIy+9/tZbVgsGmZ15lmjBp7lcr2VDN7TQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eW3iYFMZ; 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="eW3iYFMZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96BC5C4CEF0; Tue, 30 Sep 2025 14:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759244267; bh=r3/Zb73f+fAzRm7lX0Gem9wUiiwA54howe4J1V7iEjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eW3iYFMZ4LtL/eQ0pda41MGauzELiCtKK4yUeInv3fhXq8dUxE7woap3amXfW56XT TgT7BvDBA+pqB28UXgIPlcu4bCb9XmYEMBhtoNtDi6Pi4LDimTY5flDM1vckril50R i+ydtpBtVZ72YEbcMXcAtp37i5lzYn49ddowIEWc= 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 077/122] phy: broadcom: ns-usb3: fix Wvoid-pointer-to-enum-cast warning Date: Tue, 30 Sep 2025 16:46:48 +0200 Message-ID: <20250930143826.152234477@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143822.939301999@linuxfoundation.org> References: <20250930143822.939301999@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev 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 bd6e74a2f0a0c76dda8e44d26f9b91a797586c3b ] 'family' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: drivers/phy/broadcom/phy-bcm-ns-usb3.c:209:17: error: cast to smaller integer type 'enum bcm_ns_family' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230810111958.205705-2-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul Stable-dep-of: 64961557efa1 ("phy: ti: omap-usb2: fix device leak at unbind") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/phy/broadcom/phy-bcm-ns-usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/phy/broadcom/phy-bcm-ns-usb3.c +++ b/drivers/phy/broadcom/phy-bcm-ns-usb3.c @@ -206,7 +206,7 @@ static int bcm_ns_usb3_mdio_probe(struct of_id = of_match_device(bcm_ns_usb3_id_table, dev); if (!of_id) return -EINVAL; - usb3->family = (enum bcm_ns_family)of_id->data; + usb3->family = (uintptr_t)of_id->data; syscon_np = of_parse_phandle(dev->of_node, "usb3-dmp-syscon", 0); err = of_address_to_resource(syscon_np, 0, &res);