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: 13349075 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 3B6F7C001B0 for ; Thu, 10 Aug 2023 09:13:20 +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=2AM5UHkSoJcFk/330UhlvApkenCzcy8ZrA28yKsYDgg=; b=UOya+v/Clrx1Qk 0Sp1/aC8dbjdPGNxrWpn+7+/luT+bVEYrw9ZKxAqpoDOknezmR7LC/zjGqmx2OYyKymcvu6ZzUEd4 WE8Lw1msOgXED3nq65Q7eHRUBPVkKMLySuiYBc59+tMgCWf9yGhzL93KhWfKbR0a1Jefdd/1wh8sQ 0oKSRrD2Hn8ylr4KsYAAwGPbs4Le6/Iz4ST/50uxk46WEP5TTBV+rz6NMq94wRTut29OtqcNk+INs BA2T3tUesbKbN/fbyUYdDN/KppFf3zq2G3rOrPVv5uOFc+U2CzWSJ9EqW0m1xDqGsl4i2pja4K0KF 7e44OSNUknJEyb2J+XEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jL-006x5c-2z; Thu, 10 Aug 2023 09:13:19 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU1jI-006x2L-0z for linux-phy@lists.infradead.org; Thu, 10 Aug 2023 09:13:18 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99bf1f632b8so105074266b.1 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=fuUCeyTsr8vyGTb7rj+wjlZolBnivNGrNeXPqI+qzbIYz/SiU2BuBQqaWZ/h6HP+yx VXhxBHDz/jsphOQ8oo2/N9kFIL0R7seI8vVvv2Y2KoPpANdw/PrQq8QeQf9P6HqTXRKt NkHXQeYLMldzUcZCArMER0IhE2HbYCJR9YBLBOILV+tNqfBmPvhATRgPPNE5A4FhRwE1 fcWtz+Xho6S296WkV54nLX1lRmlY4r6Arj45klPMzl3bF0fR7LcfyYWVRaoddiXLvRxw MYaoL/Hg9vACGU/QvhBpBBeMaX+KcKLaHLzcqswXqrMCDvFRrewFAVSCTn275OnZvCWl fdIg== X-Gm-Message-State: AOJu0YxV9TpAgushNq2XzLUZqqCGThRjWVkIYiWVz+q4TgWhpfv2lyG9 UjEqLa/fAbViTrIwX/cUQpIz6g== 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_360428_F3D44CD4 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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);