Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp942585rwl; Thu, 10 Aug 2023 04:15:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEBX93T01OVuxUhDcoWzK7crK0Ypm1uuH3c2RaxfBHbiEpC/xDmeHAmZTXwQHvtEBC8LX1 X-Received: by 2002:a9d:65d5:0:b0:6bc:88dd:4f0c with SMTP id z21-20020a9d65d5000000b006bc88dd4f0cmr2154276oth.20.1691666146465; Thu, 10 Aug 2023 04:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666146; cv=none; d=google.com; s=arc-20160816; b=LQyRdCd9rFhgetYLoyMkuQBLi7dtWExjIQqmwmPf3rfG3fRNgeI6dN0jpunxuqYRkd Wo9+Q8dbZ1eBNzTRE52PUqutVXIeDP8OZte2n5GvOb6VCGsvuRd0uSV9czY7QzrLzLwu a0vCfpj+9iohdNdV4bEYdABAeHoly3uEWBSvNi8oEY80olrHWSF/FdurD/MX2Fzl4ak6 7l7NfwtlwcUsTM0QrJcpIoap3GiyicZEQ56+xloY49+n16f645fSU3gEVbaptgZqh/Ed oBBzhcTz7lO8FXUWVvSHpg7j+gnRag6yWECEJY+ITHYizjRRkxDH8dS/fWpN3qZ0DKes 3q6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FkvqrMOXwmTcAnreaYq76I2AZtMUkMuF0vVGwhitEBY=; fh=WBlI1L+yoQSe31GwwUqQVKDOBZlMUDrlf/nUBWAshIs=; b=DbZr7iX3D8iTqqad/LjehKTi9pYoi8SOkpF1ScrulteAX7UiqqFfCAOTQp2UBNwZfV FdwJBrIewO7U8SLN1qN1hxDrjSXnDhzmLvprXNXYorIx3L+u+tQaAWNzBKoop0r16Yrs SM/1+eVythfuCgikMz0UzydDsZGobCmx04cQzXiFGB7WFsv3mwhdJJCkzA+IBSrjpxuG QF2zG0SUl9LG0oW2YiYVPHZY5ptilbmNWXfdaHtTaMTgVDEhF5Q6MoZgrt98PZ8AiEdx 9dVSwG8iwDtQ5f1phyLIKqWVIyT9lwv/6u8+Z/jPki4WdkFxsoTzNkl9o7WrPuCtq83z 9LeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g/N1DWT5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 63-20020a630042000000b0055379a7131csi1395230pga.721.2023.08.10.04.15.34; Thu, 10 Aug 2023 04:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g/N1DWT5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235085AbjHJJ7R (ORCPT + 99 others); Thu, 10 Aug 2023 05:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235114AbjHJJ64 (ORCPT ); Thu, 10 Aug 2023 05:58:56 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E600F9F for ; Thu, 10 Aug 2023 02:58:53 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31771bb4869so703879f8f.0 for ; Thu, 10 Aug 2023 02:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661532; x=1692266332; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FkvqrMOXwmTcAnreaYq76I2AZtMUkMuF0vVGwhitEBY=; b=g/N1DWT58qicPn7aM797a838CAd0plUzi2BJWNf6ENVZomSjPXW96FFjXdcqIPtGZA BD2ihtG76tzRLS2QdSMjMUBQKnIHTxGmuBP78cqDNu07vqDTWPH1maafZMCdE5PeY5BF 673UABS0RzviQvrOKhpsOJZ085Yzz9tuwo7QyPMBaywSxJMZ/0sSEjBFNDkq08f/CfHm yBeU1fg8oWVHc0jKQPonwe7w4LrFo4shzFaxzZGKLobN5K2BysRlSs2iT8/gqBGuOhVX g4Osxd3++ssQbMdARZhvPXtmiP7+eh3xqNEyXCHS/ilTIusiG9AFAovZlOCppQ2xnLng dM5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661532; x=1692266332; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FkvqrMOXwmTcAnreaYq76I2AZtMUkMuF0vVGwhitEBY=; b=I/Amk/aN/zJjYhE0/AHBsdSJKoomXTIKGA6C9xLE3iY4JBf8bsQQlB8wX0s3tH03w8 8SHwRUwXM7s7y4mAqewvnLEO5dC3kOYqb4/gK98dxdTNLfDfiZtY1vRmNM8nPa/x9JrU 0nmAXsWA8+IyD2DncEN2AR5yxbic70O7P+EdulP2RMPGfngNpSR5wIvCtMWttnQI46Rs aI0gT27O32zsWUWhUKdGi7eFyQS0WFzZG7YYBXLx1C1X9McYD1uYcL3OIl6mCYG8POqw E9SaDEaCJrROrxgAQFhLes5XLgpQXelZ5T8efnj6A2QV4DDEZzgN6Yy7qiGz80Eo1BHs H3TQ== X-Gm-Message-State: AOJu0YxfTkQ6vWHn6QrGPRbFa9vrV8bhAwCfAa3tBYGii8gY0d0AsRGj mOfFvwQeByezoNEL4GTFboSDgA== X-Received: by 2002:adf:f74c:0:b0:313:f5e9:13ec with SMTP id z12-20020adff74c000000b00313f5e913ecmr1581022wrp.68.1691661532380; Thu, 10 Aug 2023 02:58:52 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id p1-20020adfcc81000000b003179b3fd837sm1621372wrj.33.2023.08.10.02.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:58:52 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Chanwoo Choi , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, patches@opensource.cirrus.com Cc: Andi Shyti Subject: [PATCH 1/9] mfd: stmpe: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:58:41 +0200 Message-Id: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'partnum' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: stmpe-i2c.c:90:13: error: cast to smaller integer type 'enum stmpe_partnum' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/stmpe-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 1d7b401776d1..fe018bedab98 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -87,7 +87,7 @@ stmpe_i2c_probe(struct i2c_client *i2c) dev_info(&i2c->dev, "matching on node name, compatible is preferred\n"); partnum = id->driver_data; } else - partnum = (enum stmpe_partnum)of_id->data; + partnum = (uintptr_t)of_id->data; return stmpe_probe(&i2c_ci, partnum); } -- 2.34.1