Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2537560rdb; Mon, 25 Dec 2023 16:31:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpkKmu/q3rT2D8/EYbpDwwc93OGMRfzc8kmboC2groE/eZHOE7qhTo9NoVoSj8yEzzPSEY X-Received: by 2002:a05:622a:14d0:b0:425:4042:f45a with SMTP id u16-20020a05622a14d000b004254042f45amr8906390qtx.62.1703550670955; Mon, 25 Dec 2023 16:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703550670; cv=none; d=google.com; s=arc-20160816; b=eGeE9xm3IvKV4FXLXht6FBrLFtSVpwWR3XkM2VeJwG4ZZN5CjFLttHvaRyLI8+5S0O AndbfiLMb9j5OIEJR/vVwEFdOb0ONgpr5tvfuuCOIQeBe7YLcuX4O0/K5VelCjjdP89Y IAd4rcD+VpCA+B3tfGMA5TDCQVH0QfwQjc8AQttoYhU2KF3aNPRvQcpG7ii2FrwmC2Hr +rTLy8FXw5lNbL4m/SPVPSGfK0gqH/dMOlrDMWL/MVX8nt+iXJBeMY6Z7zFZMbPWCmrq jLpodWi6sjYV9AqceDKdp9bVgnnINWgkRoWTMHyfh6dEXXbLDyNh2Ixy9AmufUWGXu/w TqKw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Dy3QiUie8+hhHtvshdgcldAlE/PTBlu8pbhTS0haFtE=; fh=lyfX4KSJM1IHJJkaA1Yu7JmTS/MlQDQwwP5CJoNvRfY=; b=anvrh6DkvZ3ZBRG1muKRIeubtaF4jzYDIQfUWXeIjMwAVcOTdmbkfIfhn41gno8ldT EbiDDkMUhRKyArkj79rwsAIQVRn3yl1nM3v2FT8XhiMRBuOejQRnVG/kieFpQ0u7RAdx y2jiXAKWSOefSHIQ6t9+/cz2vNmeXzgL/ExSvbXQ3gS6T9jTTca9e9YeCVv16O8SVkR3 TaRGUTEEc5YyfIeV8gPB2CHuzKYZql+iLvWojZEiK/1lwPFhMMyx9g8whfUdJEXiHA6G VhW3FdwWJuw32Sw06de8TDQZo/yuuQTVPpY1lyMjYQhs2h/m0zGq+08OgaI9VlI2VRN6 iadw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d3ynbyNG; spf=pass (google.com: domain of linux-kernel+bounces-11234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11234-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 u18-20020a05622a14d200b0042540184032si11791905qtx.336.2023.12.25.16.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 16:31:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11234-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=d3ynbyNG; spf=pass (google.com: domain of linux-kernel+bounces-11234-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11234-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 B3A971C2173A for ; Tue, 26 Dec 2023 00:31:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBA27F4EF; Tue, 26 Dec 2023 00:23:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d3ynbyNG" 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 F28F4EEC2; Tue, 26 Dec 2023 00:23:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B17A5C433C7; Tue, 26 Dec 2023 00:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703550181; bh=IXu3w1hIH5VlHvFJPhN0KkQphUYGmzFOAnbfy8HlK/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d3ynbyNG+lxM6wAhQIWEmwR0EmIg7jhfuYrIg+z2YQpVA4y4SrsARyM+gNWtaupiF yTlPK1Q7hZ/1gmhh9GjW8B5j/vsp+42QsLUuD6s1vi3tak7cg/S1b+1yTmxvH4XXsl ZoKGoXQ9iXBZu1VIjv7SoCO5Ilfu3d7GlQlTchzAK3RuOr7K+BcYEBWL1nfm7gUZ0y CT7M0wmxCRu13n/TcUibNk0Fsu8RCN/YAji6oIMEukthlEbqzKhE56qmg7z5Zni3Z8 dRgVc0uqV//giJVzHr5c+fU/WGVq2BkMc9zv72d3bYlaDdTAcGrMhy9r9/KR5ls+2/ jVgJjEps9/dKA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , Philipp Zabel , Sasha Levin , robh@kernel.org, Steen.Hegelund@microchip.com, dlemoal@kernel.org Subject: [PATCH AUTOSEL 6.1 02/24] reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning Date: Mon, 25 Dec 2023 19:21:55 -0500 Message-ID: <20231226002255.5730-2-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231226002255.5730-1-sashal@kernel.org> References: <20231226002255.5730-1-sashal@kernel.org> 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 6.1.69 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 5ca145b64e63d..30951914afac7 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