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 03A7F60274; Tue, 23 Jan 2024 00:47:22 +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=1705970843; cv=none; b=L6JXQCes14+KiH85ZMecggN6WfE9KDIaSVTQnRl5RtvIG+w42TXuoB/2FnY+EpOZ8Z8qZ8ltlwUFmx8ft2PIxGTfT6FRBE810p/U/lMxbMG0jIm+SiEdvS0aua7vT/YXB2aKfPxMZA+OU3Y+qyTdAMHCI8kk9nFVihZhxT77Spg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705970843; c=relaxed/simple; bh=sfhbHz2jLcfiG8f/l72BA+iE2McRbCGAmgF+JytUtFg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lGfxnSg355k+F+QPeYlk34F/Ow7aMKUMtY1O/8NqrQwcA5Ir5cyz3zYC6uZjXsUtKd6pbyqaG2/RBXoROD/zlQmKG1LBoLKGuGwh+MokxGOl8vh4rMlZZ9V0dFQxbhtFnFc7mazW3m4M4/v88NrtpnqmOhXPSsRJIBSKOTGkDVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nJ8OCKD4; 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="nJ8OCKD4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5168DC433A6; Tue, 23 Jan 2024 00:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705970842; bh=sfhbHz2jLcfiG8f/l72BA+iE2McRbCGAmgF+JytUtFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nJ8OCKD4AHV9dFw5C+vZPciIBgHtj+6wwyEzQEzxMlu6EB4fH3af3bwMVyVBcVjGo y7hvMRd+5QGp6G4HCi2P0SddHjxp0qMskWshSirQRPBiNplx8PB+03dnHCcAznXwXE YVyFx8ilxt4pWWTBfhsxWM5yLN+wy8A9YAejilcc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krzysztof Kozlowski , Philipp Zabel , Sasha Levin Subject: [PATCH 5.10 029/286] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning Date: Mon, 22 Jan 2024 15:55:35 -0800 Message-ID: <20240122235733.148038237@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122235732.009174833@linuxfoundation.org> References: <20240122235732.009174833@linuxfoundation.org> User-Agent: quilt/0.67 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 b5ec294472794ed9ecba0cb4b8208372842e7e0d ] 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: hi6220_reset.c:166:9: error: cast to smaller integer type 'enum hi6220_reset_ctrl_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230810091300.70197-1-krzysztof.kozlowski@linaro.org Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin --- drivers/reset/hisilicon/hi6220_reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reset/hisilicon/hi6220_reset.c b/drivers/reset/hisilicon/hi6220_reset.c index 19926506d033..2a7688fa9b9b 100644 --- a/drivers/reset/hisilicon/hi6220_reset.c +++ b/drivers/reset/hisilicon/hi6220_reset.c @@ -164,7 +164,7 @@ static int hi6220_reset_probe(struct platform_device *pdev) if (!data) return -ENOMEM; - type = (enum hi6220_reset_ctrl_type)of_device_get_match_data(dev); + type = (uintptr_t)of_device_get_match_data(dev); regmap = syscon_node_to_regmap(np); if (IS_ERR(regmap)) { -- 2.43.0