Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2541516rdb; Mon, 25 Dec 2023 16:46:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVpbOW7QXFHPo4wSM6w8LoWM6scg642y00hP/08BDvnVG3a2qzkytqUIWruGEPqACWdRof X-Received: by 2002:ad4:5cab:0:b0:67a:b1f1:9c57 with SMTP id q11-20020ad45cab000000b0067ab1f19c57mr11957603qvh.26.1703551605347; Mon, 25 Dec 2023 16:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703551605; cv=none; d=google.com; s=arc-20160816; b=ZWnDNWDOwxDVh/qoLLC5SpNHrFUTmHz1CC0tN9mThftNH5b0gMJrdA1+x9ondVutFZ RRyubwowV1I8FF99Mn1ItNolXLaIqCj85Lev7JQ1j2OANn+bLOjltVxHOvDkeUg1tnlm vaKqECxAVDAiBPeqm73OyrkyZDnekViMT81ZmvWzc25yhMdZ1T6X+Z2cU0gI9qW8ZvEJ 44XfrhXqaMPVsO7V+F6iuX3N34PXPPq/sFRVDu/yYV1UEZeHk0J5bq84EtBf09XigW7p 7ZBn7rpvzNMbAzv2PdwOvVYjK0bPEotEb5eiQuH0zOLomIzOkalh+0PVqAgRPfCDjIrg xnKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7i5YHlj31yeF241G60hRWNL2Fj3n6Uq9A1X4lfbaakQ=; fh=SIqD/1LUBz7zdAE5s6hiEwl1oaOA9eV9sxmsg76jMGE=; b=DGEnytodovo+n3tvY+viFiyPjWW22uJiHyx3lPKclWepQII0Qp+BUQxmwiXG6SC+Qt rP3nwpCXuuDnSKprPFfzJibqB8wrPskY2FiNVF6SoGlqAmljy48qUIOe29dBSo/8NDhB AsFGAir/++U10R4dIlLB7ZB2abujidUY4FSnhdmNGSsobr05gW5ZpoE21a0daTLcn5Y+ urxmk+LsevFQ+D0VO6+Pj3a8qDpgLqEyAj8YkdmqrQP32uoLXEMmqth+wqFd+uF6QJSS VFit8+B8CQQ6pN8NMElBEqs07Dw81Dvoqy5lHXv7e/rOtpH6ngMgeaj7Vtojotfl/XSb Oouw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TqMUO2Cu; spf=pass (google.com: domain of linux-kernel+bounces-11285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s26-20020a0ca61a000000b0067f326bd272si11095840qva.145.2023.12.25.16.46.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 16:46:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TqMUO2Cu; spf=pass (google.com: domain of linux-kernel+bounces-11285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11285-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 20E3D1C21B1D for ; Tue, 26 Dec 2023 00:46:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2660E48CE8; Tue, 26 Dec 2023 00:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TqMUO2Cu" X-Original-To: linux-kernel@vger.kernel.org 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 5A36948CDE; Tue, 26 Dec 2023 00:26:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B581C433C8; Tue, 26 Dec 2023 00:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703550413; bh=CvEij6X/CWqgxw9QiqGNV3WFR4h2GUry07fUhC48V44=; h=From:To:Cc:Subject:Date:From; b=TqMUO2Cuz2UOXF9De0cEe1JilOn1W2xP4SGE52c2V7I9MXAzNATT0hnIvMMDJQNlY v0HzIpiZXSzu/44zIWLYkhiTb5WXSbC29Sq3HrOC60Vp3YkDXzXCODZBuboTpy7dfF mC1uYSKOXzRMXKlPIRu+4SqH3PvB74g6lKU8YGOmQXXSgwfav1J41LMHgZ5tii1czc GGj/dgTF15rXC+Uh8ULBxwltUkewYTwlwl2x5fE3rS7Y2OmgSsDOHL+HCoSyKh0n3s GB8lft92m9VsU5wzd4VtW4wsdV2Dootx2zqt5XGGtjGO38Q5tZGH5V9hPFR9D8Fj0q oROGKNq7zAxuQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , Philipp Zabel , Sasha Levin , robh@kernel.org, dlemoal@kernel.org, Steen.Hegelund@microchip.com Subject: [PATCH AUTOSEL 4.19 1/7] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning Date: Mon, 25 Dec 2023 19:26:25 -0500 Message-ID: <20231226002649.7290-1-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 4.19.303 Content-Transfer-Encoding: 8bit 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 d5e5229308f22..d77a7ad7e57a7 100644 --- a/drivers/reset/hisilicon/hi6220_reset.c +++ b/drivers/reset/hisilicon/hi6220_reset.c @@ -107,7 +107,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