Message ID | 20230810111914.204847-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp387263vqi; Thu, 10 Aug 2023 05:34:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU/infA9CZP8i1EDzyNpjlzc+0emcxd0d/pJicTOxQVTchVLglWuWkEVlxNxDgYJ6J35UA X-Received: by 2002:a05:6402:cc:b0:522:7eaf:c0c0 with SMTP id i12-20020a05640200cc00b005227eafc0c0mr1973918edu.16.1691670897244; Thu, 10 Aug 2023 05:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691670897; cv=none; d=google.com; s=arc-20160816; b=FLxNBUAJx13PmCduIKb0Q0EBsjIM7RswC/9uqY1eNYfz5PEcyT5U+6FTmFzAKK+CL/ +4FfHbwSGijqOEqTfKfBiCBXCei1b1O6Hi0n+xb/sOc/zcwHf7J9xPyO40Z4ATKI4/YR Vj10zzl/avWU8wdbAWatJzhlGpyyB8HPEEKZX+j2Szep47S3lBmdtE2kXA5hr/+jaF2A YW5nilCxrzAZplcfnu0qlAHgq8OPNtzvVl2iZ2EjEVe428uChgONV3KiQwDodyIcSlyR JHHzjqqlsEWnfozdSEgMMi4NZ6YOtP1OrNBbq+ilY6A2bp/CgMcuhPMsBTWZaNp5/lOV 4sbg== 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=08PCzZQV+ZzJaaurE/RdZbmv1tOgJOzqlJ5y/EyoZXc=; fh=pD509Kx81Hq13rq6vuHZTdAfz5IzH5Fz1bREDMmC8yw=; b=GUU9Fr8mwJm3hmE5TD3bYi9QrLINtt9RuNl1eXN0xKscYazxkqZ0tI+idrAlyETs6t Qcon4Oer8xy74uIY0Cur/24Pvb2gbuwctnZ6m+hnAhzqstxpywFXS+pG8EeXiEkwz0tZ r38UGGictJdsQMD+DlDSXqYbUm89UEEiu5IaKFoe8L3T3NqwwkrICLDJptOLs218wFPL aAff1h1THeWdeaifWcIJsc0H5kCvJKyND96LDNjMgfMV4HVmktd9Z637/WRWAy3NylVd PxUA1Z2oOkRiOVz7M4mYj/FDkGbXBDGHv5k+Vy/of/KI0cTWrsEYMJy1HZpm3CPMnBn5 SLiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vHdFjJRb; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020aa7d04e000000b005233f41fd49si1360686edo.92.2023.08.10.05.34.24; Thu, 10 Aug 2023 05:34:57 -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=vHdFjJRb; 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 S233645AbjHJLTV (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 07:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbjHJLTT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 07:19:19 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B789E10D for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 04:19:18 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-52256241c50so997856a12.3 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 04:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666357; x=1692271157; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=08PCzZQV+ZzJaaurE/RdZbmv1tOgJOzqlJ5y/EyoZXc=; b=vHdFjJRb8trHQShMGZCVQJ85MPqOTAUqBNacs8Vxmk8XZqTKMqxYkKpmJot4GVENtS Yl4JGTkorhlrIHZ0IimFMiCUmT5tAD1p5C3c+DoC9Gf3uZIZG4/HOm5pMFaHN/w8HHnY IWNckQ+MVy2UQDebo0XzncFIWeRFwApg6kSi7l/4Gvf2yGlctE6kc51yyKEbmBuUxW2y 0pxAjp/q1+w6e/GVTiv7a2IvbZB536U/bQbhib72k32rzRGn26kovpxjP2qn6npEsCRl Rgtdpy7L0+DbRnTRO3TSxDiPMhce4VQdToN64eo6HHAD2YeqgbAGMfHHlEXRp9maCymZ MQag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666357; x=1692271157; 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=08PCzZQV+ZzJaaurE/RdZbmv1tOgJOzqlJ5y/EyoZXc=; b=BJs7iAQvZZy9BjMtX1Th9yGGM0sROufSIhKwcaEzgNGMGj01MGF9pG9buutUZG350K gZgDhgxCGyT8ZmY+QY+ZcPtjTEGhscXd9kiHP0yf5j0nyJF2biDhsG7Wg5Is6ZOpNW8M FGL/IG5JdynwhfRCYm64RfWXbgBtNyeNpTK7aaAf+F6C3xf46AinywdIM0v8sa1eqryI xNr8boEarqa9yhzWw7ii4wFrTYUQBnvDRNns/GwKDG9zSNEZHNXfssqjcAuBk7Goysdo RfAMSSUCP7g/NXX0wh+wLhyWuy1fQ5yDOJEiUxRpfWVDyONOftKtJpAnnwRESLMp9I/I MMkA== X-Gm-Message-State: AOJu0YzmS/rzLOHfNkJ5CfKXCb9OyF1um/4G9Wi+NXU28GyD0dQYk/Wv 3l385mJjDRC6k0kJPfN/OupWClPwrdeJDs0QWvLBnw== X-Received: by 2002:a17:906:32d4:b0:99c:ac84:663b with SMTP id k20-20020a17090632d400b0099cac84663bmr1884473ejk.65.1691666357104; Thu, 10 Aug 2023 04:19:17 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id qn17-20020a170907211100b00992b510089asm797018ejb.84.2023.08.10.04.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:19:16 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, linux-kernel@vger.kernel.org Cc: Andi Shyti <andi.shyti@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 1/3] regulator: ltc3589: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 13:19:12 +0200 Message-Id: <20230810111914.204847-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773845503152023025 X-GMAIL-MSGID: 1773845503152023025 |
Series |
[1/3] regulator: ltc3589: Fix Wvoid-pointer-to-enum-cast warning
|
|
Commit Message
Krzysztof Kozlowski
Aug. 10, 2023, 11:19 a.m. UTC
'variant' is an enum, thus cast of pointer on 64-bit compile test with
W=1 causes:
ltc3589.c:394:22: error: cast to smaller integer type 'enum ltc3589_variant' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/regulator/ltc3589.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Thu, 10 Aug 2023 13:19:12 +0200, Krzysztof Kozlowski wrote: > 'variant' is an enum, thus cast of pointer on 64-bit compile test with > W=1 causes: > > ltc3589.c:394:22: error: cast to smaller integer type 'enum ltc3589_variant' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/3] regulator: ltc3589: Fix Wvoid-pointer-to-enum-cast warning commit: fddc9bb6e277b99b0410410794d156e963aa8f0b [2/3] regulator: max77857: Fix Wvoid-pointer-to-enum-cast warning commit: b29f42c6629bb3bd3d479592d40a7e4c73461a01 [3/3] regulator: lp872x: Fix Wvoid-pointer-to-enum-cast warning commit: c418920567ae6101826cc05cda042f71435830d0 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index cf931b8c36dc..d892c2a5df7b 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers/regulator/ltc3589.c @@ -391,8 +391,7 @@ static int ltc3589_probe(struct i2c_client *client) i2c_set_clientdata(client, ltc3589); if (client->dev.of_node) - ltc3589->variant = (enum ltc3589_variant) - of_device_get_match_data(&client->dev); + ltc3589->variant = (uintptr_t)of_device_get_match_data(&client->dev); else ltc3589->variant = id->driver_data; ltc3589->dev = dev;