From patchwork Thu Aug 10 09:13:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349080 Return-Path: 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 4F56DC04A94 for ; Thu, 10 Aug 2023 09:13:40 +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: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:In-Reply-To:References: List-Owner; bh=Mw4mMWrhjJJLSNirj/LN6lwwaGaWfVpxWQRxoE3n9MM=; b=PtZg2iPack5g7S zZLgijG3G+kdANanXTh/gC3iK6g2z6Fl9o5MNvsr/qTf2JrvWpelkGoBsFpp6u4j5PAvOn5ltfrjR pRyh1xB7QfQPV/HWa/mqO1vht0+C1pj5zsbnpLUBACYksXi4aR+8Jann4ZYi+/kY8Oz3fPUrSzLyA nLyL0gWUp3fLsEEJHcKlCq8/7GjqbwLFFgkwhgINlhZaJYbeMcdTtfhlC9EapLX8UpQtwXwtn+dae b2FgVU9RH2R9+cSD+XxKxt/DoufsPNSRbwIKgzGf4BdMLqQZzy2JMS5fn5dRYdYvl7HyNO+kjr6YY +iaNAUSdq7OFMWCPMrvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jL-006x55-0y; Thu, 10 Aug 2023 09:13:19 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jI-006x2M-0z for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 09:13:17 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99bccc9ec02so103444666b.2 for ; Thu, 10 Aug 2023 02:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691658794; x=1692263594; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cXtGVjQOMnic1+0ei+lZLPytdxhtK171VprnemCbHig=; b=cg6oXYkJ1EEcITsyqXe57SyZm+KYFc6S4rQMLzpAexMoHNj1gI81VjfWpuPjP/g354 siPiscVUA3VXZRWgdQIOU4GjMK/+ABhuv+iQUGV4pBud5d+EPmOPRHgUytm9aatVj5Zh vmkh2tYOfHzKer69WVpJP3FJOu84r0N4p2F+dxRLUsSEDKX64g3vlZzeFQcieD25rfG5 +FNjSnjV4Mr5X5+/3CRgXL5D7gxcGs14XhKLkBDyIR7G/JBUgONESsS/KokXoeBpUap3 p7WaXyos7ZoPK2w35GJJP7l0tPM4S8c8Kl6cK6bh0XSIHFyylS3Lt/FhK40yg2Zq4+W/ pryw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691658794; x=1692263594; 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=cXtGVjQOMnic1+0ei+lZLPytdxhtK171VprnemCbHig=; b=KADvc04XxmMXusGCDADeHdcnhkHkhQmauq5968cxckLDgeGLobkPNK2AjrfZHsMWZA epBHiZApnTFVU/UiPtIb8xL1EEqRQm8JRTkr5vm9eas7rCde0OHwnNuRGMzI0REAhu3w ba8gEtlkLdYW2fYDOuPcofB1EFXxynhZy93/fYZlYueFYgGJJf3hRZFnC2DEezHKQrhv AHA77mPgx5AXHT3H7rIiYWWMvX/n9A9N1MzJxckwk8zUYkBaoyPDEPzZvsJt8h/+MN6B uGDdvrqMECtiuldRLOlDG/DWH2xe0RQpE+NxCwuT8Z1hnANz/FeBawxLnK210TWt3sS8 aUAg== X-Gm-Message-State: AOJu0Yxr07bQo01YQ08Thw7FXgoPy5IQgffKg13ToZV8490c6zq2kz+9 flhP67DytTsR3bFSBQ//scr7gw== X-Google-Smtp-Source: AGHT+IFGeEvXqMvDY3+sQ3I/t8okkCSs/dqOrA9AWjerSX9C5S3HbS/ruj8SGoKA/0hkHxQUZ30KEQ== X-Received: by 2002:a17:906:18d:b0:97d:ee82:920a with SMTP id 13-20020a170906018d00b0097dee82920amr1723205ejb.74.1691658794233; Thu, 10 Aug 2023 02:13:14 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id o16-20020a170906861000b0099bd5d28dc4sm643984ejx.195.2023.08.10.02.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:13:13 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH net-next] phy: amlogic: meson-g12a-usb2: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:13:10 +0200 Message-Id: <20230810091310.70231-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_021316_362481_DF2A5340 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 'soc_id' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: phy-meson-g12a-usb2.c:322:17: error: cast to smaller integer type 'enum meson_soc_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Neil Armstrong --- drivers/phy/amlogic/phy-meson-g12a-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/amlogic/phy-meson-g12a-usb2.c b/drivers/phy/amlogic/phy-meson-g12a-usb2.c index a628c59e5cf0..0e0b5c00b676 100644 --- a/drivers/phy/amlogic/phy-meson-g12a-usb2.c +++ b/drivers/phy/amlogic/phy-meson-g12a-usb2.c @@ -319,7 +319,7 @@ static int phy_meson_g12a_usb2_probe(struct platform_device *pdev) if (IS_ERR(base)) return PTR_ERR(base); - priv->soc_id = (enum meson_soc_id)of_device_get_match_data(&pdev->dev); + priv->soc_id = (uintptr_t)of_device_get_match_data(&pdev->dev); priv->regmap = devm_regmap_init_mmio(dev, base, &phy_meson_g12a_usb2_regmap_conf);