Message ID | 20230810095849.123321-6-krzysztof.kozlowski@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6D32C04FDF for <linux-arm-kernel@archiver.kernel.org>; Thu, 10 Aug 2023 09:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U44yZrW2nq9SiWkAXIRXzGWBSY+PH+DmAu2p0QnWWAs=; b=JlnIs2Pflv2GKl zrXEWiUSaahZgfchOEaPvVvdc3TQ5Dz0W2Bo9z2m0bSH+aX5bWkLq4tIH3AkmigZCnusOXj4JFBPQ 92YliSS5+qWvHjUZZEc9WxcCHXD68E1Y98m2qZ1PCWAovH5sqKGkISO230WhMSPMJ0i1qkgTEUx6M ieDGgz7fYyHnszRdfUdhDLZCtCSa0OC4uuwpQNQKdZ5vKG9Hohs4e9bBqGUC6gSkNfAil3O5eZH95 +k5p9p3cOldCSXP+6F5jvQ1Y77S0iiH5J/Y0jzv2ZIV9/3hh7U55KXh7+crWbddHL178YNn6BHCzR cc6dSEfmuYLX2hqzzYng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU2Ri-0072py-1v; Thu, 10 Aug 2023 09:59:10 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU2Rb-0072l5-2z for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 09:59:05 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fe2fb9b4d7so5955555e9.1 for <linux-arm-kernel@lists.infradead.org>; Thu, 10 Aug 2023 02:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661540; x=1692266340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xFuO5hxxZfdPQonjF+3OJq8vcIVSzlxg9gVUs4JTzVc=; b=s7ppzoSXQLQxBtitHlQtQUbeSWBZt39Nydg9EJcgmTYLu+1Mfx9sgXrzRAYNULlsxM k8DnnJGF1oHjf0125Ac/No6SiAS1nt6h6RWEkG42gs5RBOJbJ43dUKUsJ7bGBuAl87z1 A9e5FRmOl+wM9VxY7+Av/Mz7/RBUbK2TQeyXPSe7dl8caLPOjdWplXwVLQPArjgevCFl 9pW4sUG8b983mK9kAATsVq/gEeWEm2LpnF8m4vIHqM6LucPO0bLwv1oNyi24hrmouByb PDUR8MfR/MhPvH5xGs60/uco2WBE6EA8q+G9QCpop2VodTuQ2wA8rkWoZK+YYOKFq1m0 ESCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661540; x=1692266340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xFuO5hxxZfdPQonjF+3OJq8vcIVSzlxg9gVUs4JTzVc=; b=BiVC5XlBuztSqhqM2QBJCrcaG6negfLOPAirO3e8uTEgtQGZkbxkBRUnk6eVDg3bBj /faDqKJxgw5DAwente6fVN4ymxpRUilWByU8wdkS75e+cs9YeeH0u5nO4XZIuxwO3+bC yqoxZUb9fEYZuYxMn0jtLzUfQQACYWuckTdd9n+Pd9y8A2+3sXHAmHGXyFCPgnzbkIaE ecJjh0dY1vL3RPjXWpBY0RN/kw8hF2/MnMA6jVz6k5VMMLIeTc6EDXLy2cA8PoMWHe+h KWZY/WnKYDROTipPJOvsPz28UyWGT8ElzV/6uEJ3wxKwXxdwqERtduRUdFWof7tF+Vhg RgsA== X-Gm-Message-State: AOJu0YxQo3M5uoqImdTp5FkjwDMsbuNJHOAC8/xDdXUubC4INbjoCXNw NdlKk0dJ9EMSwyTf98wolKL8VA== X-Google-Smtp-Source: AGHT+IForamv537Mzb3auqFWpWhZvSzFSsI6c+QRtf/dRFBJMkYQoT92gxmF1fSxOMILj0xv468ssQ== X-Received: by 2002:a05:600c:450:b0:3fe:16c8:65fa with SMTP id s16-20020a05600c045000b003fe16c865famr1544464wmb.4.1691661540340; Thu, 10 Aug 2023 02:59:00 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:58:59 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Lee Jones <lee@kernel.org>, Chanwoo Choi <cw00.choi@samsung.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, 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 <andi.shyti@kernel.org> Subject: [PATCH 6/9] mfd: tc3589: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:58:46 +0200 Message-Id: <20230810095849.123321-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> References: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_025903_965483_2C36B023 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/9] mfd: stmpe: Fix Wvoid-pointer-to-enum-cast warning
|
expand
|
diff --git a/drivers/mfd/tc3589x.c b/drivers/mfd/tc3589x.c index 16df64e3c0be..1a6ab8e7a614 100644 --- a/drivers/mfd/tc3589x.c +++ b/drivers/mfd/tc3589x.c @@ -340,7 +340,7 @@ tc3589x_of_probe(struct device *dev, enum tc3589x_version *version) of_id = of_match_device(tc3589x_match, dev); if (!of_id) return ERR_PTR(-ENODEV); - *version = (enum tc3589x_version) of_id->data; + *version = (uintptr_t) of_id->data; for_each_child_of_node(np, child) { if (of_device_is_compatible(child, "toshiba,tc3589x-gpio"))
'version' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: tc3589x.c:343:13: error: cast to smaller integer type 'enum tc3589x_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/mfd/tc3589x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)