Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2541926rdb; Mon, 25 Dec 2023 16:48:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIqU15drA43BaetUwfzgodigN4XWhHvHLW9qCSc+qtU+gTk6xrEyjwFeOl41+GOHMpbLaN X-Received: by 2002:a50:c089:0:b0:553:499f:391c with SMTP id k9-20020a50c089000000b00553499f391cmr5085310edf.69.1703551717952; Mon, 25 Dec 2023 16:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703551717; cv=none; d=google.com; s=arc-20160816; b=KaWgLMoZI/veRKZvwddiG9q/N6FmQTAcg+le6zupFvGMS8ndHBdEWtIOZmVmxh11MU PV2QCjxdzzLuvkJKkqMSK1n+TPl/E+SnG5LM3Kk7zqmsZl/niUf7WQpTVag0OnVb1xg8 ABTVTQKJAk3cUZi26sGTUXzzr5uhJxQEdvjutWLi/KPetbquV2kOyZGmXEDprY/yj3+x l1ehglym8c5tI0njqCgY5Jp5picgG43Z9Ch0AOazntK1IYd8ymuD7vUwmXWMdAdv+430 sXc06h++L1rclpPczxIQ6qT1MMSlpCzUFE9IfIi7YPylg//s6owHH9SEguPJMAaMchLN vueg== 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=0jvHmF8DWK8ob9v8vz0iSbeqIep6x/+2gxGz4Q5sFd8=; b=bn8Ho/Rp08sc+rzgAwFQPtn9jwssa+psuGkR/auYyJZUwEmz/UsZ2SD4rWME/oNBaU MFpfajJz2skpLftsbmyRfW5tbH/dYOfrpw6ISLcQdjfbw53raNnw8fRWysZvusPhOwfP m4nb3gi4xwzglDbzuucG9F3udwf473bhyybDuM/pkBV5hk2bXwJrTeg8Ogw8LGQAbsLQ lpR9KC+vxktOhUoB0Xd2waeSACWSX4KyRl16RuPK/bwAVa2DCEcNdAKWtMl2ARA1V7Lc BVlYbbi4G1tm8XgafRvZcx4zCxXodO6oIAVw2j5aP4tWJ/Yjbl4IOfobzjHGU3TMCTYq O+Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R06HqYtz; spf=pass (google.com: domain of linux-kernel+bounces-11292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dk27-20020a0564021d9b00b0055391931c32si4813747edb.134.2023.12.25.16.48.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 16:48:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R06HqYtz; spf=pass (google.com: domain of linux-kernel+bounces-11292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11292-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A3C911F224DB for ; Tue, 26 Dec 2023 00:48:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50F5A4AF92; Tue, 26 Dec 2023 00:27:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R06HqYtz" 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 847BF60B8D; Tue, 26 Dec 2023 00:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F50BC433C8; Tue, 26 Dec 2023 00:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703550448; bh=CvEij6X/CWqgxw9QiqGNV3WFR4h2GUry07fUhC48V44=; h=From:To:Cc:Subject:Date:From; b=R06HqYtz0zhuVqG2EtrYXCH/xpoy7Omxu7iCoT/7VDZWnWPJlPu8ZFk1Ef8cA/AAb m30kl/JGb52lv5qOq0Gfg47e1TUx5vfp53MDigsRUmFaBYhtFCYvpOf7iL3LUZjuPc fJ0DUelfsGUWes5lwBDKojL1Z9BM/1iU6Sg8/U6u43cgrH7YfCdtgRADJnv0WQ8TDB GUHJoZSpSOLVahQOwqNQh9jDYTnsuojleOMKNDckl1UwusZUlkXv53C9dWL7bggAW1 9a0haNOrplFy6j6LGroIFfLJBNJ64FOO2z+XRvCQa2xfA88IEy+6kaK/nKQeOyWOEE PN8bd9pp2jOzQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , Philipp Zabel , Sasha Levin , dlemoal@kernel.org, robh@kernel.org, Steen.Hegelund@microchip.com Subject: [PATCH AUTOSEL 4.14 1/6] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning Date: Mon, 25 Dec 2023 19:27:08 -0500 Message-ID: <20231226002725.7471-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.14.334 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