Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp878688rwl; Thu, 10 Aug 2023 03:08:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2tXOx/I7hLhhE74ZpnwXROhK4F9btFrij45gIRFL7MV64RkqAJa0QgvNWcBcx3w1iJMsC X-Received: by 2002:a17:906:3ca9:b0:99c:f47a:2354 with SMTP id b9-20020a1709063ca900b0099cf47a2354mr1760511ejh.70.1691662090779; Thu, 10 Aug 2023 03:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691662090; cv=none; d=google.com; s=arc-20160816; b=Ib9YcF5kAGzq/xwGWV8Oerp+K7G7I6bGYIpmPuJbE5xP48e7J2gXKeN/RzE7u6dc9e IrSIw555y9zEj2mhXBNW58YGKIy9QPRcm9D82wak8gjPqE/rgzwzdK8JA8W80lgjsK7D f9/gLxbbpMPpnXA9GRedXbn49vm3I/bpwVcEn3VChkt4RF6KvlP9NT3FW6cS1uJIKxQ2 wYtQihEOGHimLROMhID9SiaOIYP8w8z0jSyxNt3Kt3Gz+bSHinzPFk3fxmxLfchTWxIQ UsMQZWyV6p+04ZqvV2TKJagiYsMgQ2fL+KCYjOQvcWRWqCpeJKsbAwU+Tt6Yf54Igmmf uhfw== 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=VJXvTg58XDbx4i4A8NrA1fC2E4j4PcqR0iCH6KEa268=; fh=FlfkyCtFtXmDT98KQI4rFXkeSL/B7sp2EGQUoJ6NyQw=; b=wiZAYtRVKe1mZ6wEjlruiMx6zOKanTyeJrsBoA5btz+TSRk5RgSE+lmAlBDp8njDrm W0+vixdEjO9ADizt4X0rrcCeBdBQAFx9S/YBa62t79xJp4zkgwp1CRDVFnyJenLcKwZP sVf+EuiC7zWKLapwaupwWiNjfP593wgEwRpMegtZ6jIxd4oYZWlpHCTIIKgeNe4Ra42p H8vP9X1mKi9jBnDMtYWGZuEeeCuv44jEBNC46m9qmquWBFTMJlGxr0S1wtA2lLPhs4sy PghRSG9KDHn3vb7/8GzYwzASIGM48YoUymz4UQlgrKlg2OTUYQBB9MXqhXrWcMOyZcOE sOcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XKMjJDmM; 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 x3-20020a1709065ac300b0099302221714si1225868ejs.790.2023.08.10.03.07.45; Thu, 10 Aug 2023 03:08:10 -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=XKMjJDmM; 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 S235277AbjHJKB2 (ORCPT + 99 others); Thu, 10 Aug 2023 06:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235201AbjHJKAn (ORCPT ); Thu, 10 Aug 2023 06:00:43 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6EF3A9B for ; Thu, 10 Aug 2023 02:59:53 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe5eb84d43so6429895e9.3 for ; Thu, 10 Aug 2023 02:59:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661592; x=1692266392; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VJXvTg58XDbx4i4A8NrA1fC2E4j4PcqR0iCH6KEa268=; b=XKMjJDmMFUurPthBODl+2KlNLRPYXp0+KFyY2I0nZpzv46ZY3yxvoRHCZN1uF8Z0qc rO5a0FBDVJvowNnwdG97IzkweVNR7xNg07G1a5v5O5cqJ1zNtyNiFENJnyGMVGADfTY5 rsAoPqIRDxI9TZIMGg5b0bOT0Nr01yBllk66CpItzTI6nBYOeyv05OjCCuA43MsZOSX1 ymHXT8nnAhJ9C3z9PSma9zOK36h1Rk/UtnqewAP/308c8C6ZzB1x7ELNhJoOg7snmPea idYVj40m4Orzjk2YXhB6svg6za9Q6OLf3cjQqJKK5r/KUnP6s/NrnkVrJyFJaAQKg1NH nRtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661592; x=1692266392; 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=VJXvTg58XDbx4i4A8NrA1fC2E4j4PcqR0iCH6KEa268=; b=AJaB4ORw41xmNY7Ngl/eRM/jgaKI6/4Qn/f/ehrUZpfZXAZZdbaWGeze4jubqLz7Yt B68dtWimcwBEZUbQDXvhq0sjY74JhhU2P4g0fRjMnHC/bq/qA06zj9Nx0SBJKagWMqnL 8Z2b+PQAPmbhbR3NJUSP0KwxXRCMDA9/vX3Molpv8WqLLdODCvzMEWQ6Cmxwf3FGab33 YyDDOxg6JKNKjTINSJ00Fxc4dEbd8Rp6zd8yuVWt8UbBVHjinZShnsSk/DUk5oZmDBue iVsz9oZPoIluCHoziU9mdgGfeDUcT6C0eXzjRXWcw0P/hhlkfsaxPHTZis6ol0BNziw2 QbHA== X-Gm-Message-State: AOJu0YyxTeKke6IGarZKfCkOjFkC9ZbTZ3LSpghu3BgoJYVmQeEvRDk/ pw0P7BLky7aiEpLgoa4QFpjOXA== X-Received: by 2002:a05:600c:2113:b0:3fe:1fdb:cf5 with SMTP id u19-20020a05600c211300b003fe1fdb0cf5mr1652257wml.1.1691661592083; Thu, 10 Aug 2023 02:59:52 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id k17-20020adfe8d1000000b0031455482d1fsm1640069wrn.47.2023.08.10.02.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:51 -0700 (PDT) From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH] gpio: mxs: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:49 +0200 Message-Id: <20230810095949.123473-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=unavailable 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 'devid' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: gpio-mxs.c:274:16: error: cast to smaller integer type 'enum mxs_gpio_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/gpio/gpio-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index 8e04c9c4b5a2..024ad077e98d 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c @@ -271,7 +271,7 @@ static int mxs_gpio_probe(struct platform_device *pdev) port->id = of_alias_get_id(np, "gpio"); if (port->id < 0) return port->id; - port->devid = (enum mxs_gpio_id)of_device_get_match_data(&pdev->dev); + port->devid = (uintptr_t)of_device_get_match_data(&pdev->dev); port->dev = &pdev->dev; port->irq = platform_get_irq(pdev, 0); if (port->irq < 0) -- 2.34.1