From patchwork Thu Aug 10 11:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349303 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 2FD44C001E0 for ; Thu, 10 Aug 2023 11:20:06 +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=234f7fUaE+amY7kwjMjA79o01vT6MDipmTP9lljR7kE=; b=uxDkX3/ApuDSK9 uUglBPIUaQZa5GXUPC0Nll7DLccmOaojlaGPYDvIj8cZb1i+CyRp7y8IEX3h7zuaVgeo29lXDine8 TmJYwtP286Cjo+I7iNVflcCCyeAze0AIF6OOwJh2CIKFPbgg0wFZIszuPDgTMVRQxK/FNTeeLvTZp S7JOGPpjdUiyR9AjEVcqp2LNvgz/QQUtjqOJ57663RRyXfMNcOxNorJOvGByYlhz1A4Yajm4gDbUM LTAjX714ADsshA+ReFzwBFcq/kk1GxTN/lKYsSdtIBSCjDS7yGXvRncWckg8BmVEAOWusuTaRk8C8 xmrtwLFt36PjoNg7knDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i1-007PIN-2t; Thu, 10 Aug 2023 11:20:05 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU3hz-007PFE-10 for linux-phy@lists.infradead.org; Thu, 10 Aug 2023 11:20:04 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5234f46c6f9so996090a12.3 for ; Thu, 10 Aug 2023 04:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666400; x=1692271200; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1UVeu2Vv5taFKAYD/0MyJDQO4Vei8wwY49dAsoAUbBI=; b=GaS0OiypQfO7c2N6lrMtUELzqhh0hwcvcP5tbOJmrE0KkY5OemOqSs0Q/Y2HyzaZQx 8uS94SAAXLzzHVVw4wKspvQOqjVQUFBtGgmL0J0Rp4dpwLfBL+KSrvFvZFF5oOPdqvGv 473VAEJSejFFnkiNDxyoAzjmhzEgFTamNOJ9NT2FfsLWqjnILtLviGF+bPF4f8sTwRcB TfN1CVAUqxEohtc6nTqieXA9/1Gs2ZP7p1Jinz3ncUby2368+EwEvr95r7SgwfJvfTrF Rdydpvnv9NXV1Dy9H8QZqMaVq6BKIOAOt7sNAFkbUZNMd7htzIAPmiyWNMaGgTxX3GGm 1g4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666400; x=1692271200; 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=1UVeu2Vv5taFKAYD/0MyJDQO4Vei8wwY49dAsoAUbBI=; b=We78DhpGp+0k3W4HVzrZGCtRv0Uq9sPTAZh3hokpAuAUXqpjcMXH+dqEW5A272un/0 AplNhqdC86RIjrSWMivzXXXebkPO7pWeX3ygjDO6O+aqWtKQs1WpqbqPyw3fiHVGPhP5 fXZKC9/H9UrWDzOxg1HvOFQ9TD9+lNsyFkH3dMYe646i/XeNX2BuFb3xbLUMCYcviOvR hT5/LH/llPlgwc8t6QKybx/7C0/61BYF6HXlQwe04+/CVeWCP9o1g431LM189lfRcz4e EYhv1YsOniraLIeTkB4IYqentgIVCYSFjoo9qfRQSXat4POBdJHAPAbLvDGm1438yvKa yr4Q== X-Gm-Message-State: AOJu0Yz5plyYblISCRSLpJfRbwc1cYI5arTY1/W5clRy9ke0iBVqLXlF Bacht3rbcDo81aU0h5LJl2WH5jUA4CsBlA40gA+ahQ== X-Google-Smtp-Source: AGHT+IE+/JXX6dWHY8t8osAFBHjh3S7EUWZJudr4+gH89YF9Ru/wR/Q59FEe5Hxs7Oi+9jjhxy8t6w== X-Received: by 2002:a05:6402:5152:b0:522:2af1:1ffe with SMTP id n18-20020a056402515200b005222af11ffemr1797584edd.9.1691666400714; Thu, 10 Aug 2023 04:20:00 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id l10-20020aa7d94a000000b0051a2d2f82fdsm672190eds.6.2023.08.10.04.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:20:00 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Lubomir Rintel , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 1/4] phy: broadcom: sata: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 13:19:55 +0200 Message-Id: <20230810111958.205705-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_042003_345917_7D98166F X-CRM114-Status: GOOD ( 10.09 ) 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 'version' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: phy-brcm-sata.c:775:19: error: cast to smaller integer type 'enum brcm_sata_phy_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/broadcom/phy-brcm-sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-brcm-sata.c b/drivers/phy/broadcom/phy-brcm-sata.c index 769c707d9b71..ed9e18791ec9 100644 --- a/drivers/phy/broadcom/phy-brcm-sata.c +++ b/drivers/phy/broadcom/phy-brcm-sata.c @@ -772,7 +772,7 @@ static int brcm_sata_phy_probe(struct platform_device *pdev) of_id = of_match_node(brcm_sata_phy_of_match, dn); if (of_id) - priv->version = (enum brcm_sata_phy_version)of_id->data; + priv->version = (uintptr_t)of_id->data; else priv->version = BRCM_SATA_PHY_STB_28NM; From patchwork Thu Aug 10 11:19:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349304 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 98128C001B0 for ; Thu, 10 Aug 2023 11:20:06 +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=gI2Hv+M35jmY7TQqCTO7folLmJ6dH7Jp7KFC8tk5BsE=; b=Eq1aCUjPsE9Pak EdxUrh2B39F1ASpoGb2rsHDXaQVF98zNnwwJ1xp8ynXgsiiHfJTz9cjhRk+WVHffvdpcyAc852m1/ 34gl8Me3E59Nbxyhl+Z2hYu9XEcVic6MXbife2Od9R5Jz99v1GDHRHrzszzlOr6ncFknAGni9Ftx3 mOI53G79BPzLo2SMLynNI7udzmUYpNwyUb4FLWx0LFBi7UbThgXqGJtkym46IeCFrkyqsoBELr1PV LcljfpVCo0KZd9XuAurT7j8QQxcXqbCINJv11BuxQ4T2JgmzAbs+GU2yq8ipuRyCKZ4Cx64raZ6AK yRYsN5GTCilpAa1lNFGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i2-007PIt-0n; Thu, 10 Aug 2023 11:20:06 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU3hz-007PFx-28 for linux-phy@lists.infradead.org; Thu, 10 Aug 2023 11:20:04 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-523225dd110so1028711a12.0 for ; Thu, 10 Aug 2023 04:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666402; x=1692271202; 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=rZOeWP2uVJNQooQGaWrKsom5vyBYi2Cs+dRQqMbSinA=; b=uhoOcvUVe0bA9VDaUDB4CZbwjc5LjFePldDAsSpXK/ssG/QT0MLJREbMIGY33+qJIq VkUuYjbOa+iNIk6eFCWlUwc463Mk0BbV5tnKsxPA7l0FjZGRtj+lyuMFEliYLbCpbNaq FjDJ7xIbMOJLCoJeVrYiwbo7q0M8NtkjaoyAXbxx1q8MTvy2Pug1EUgprmo6nAmkXIbC baHYZcn9h0ph6NxdatVgHCgdjmnyBV8MCEAlwmaOXNMQt8IduJOKuZIk3XEe4sw+bM2Z z/DvTBh0iG6Lj8magBqNfYKtBRfUAF2AJFV0Qy+FspzQRLDeCnMCQ1Wz0xBBmdbBF/r6 jY0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666402; x=1692271202; 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=rZOeWP2uVJNQooQGaWrKsom5vyBYi2Cs+dRQqMbSinA=; b=kpso26x7keTUlUBFa0QFOJS3OeOKCu8e9zAl3f1mQbenbQVl6NaXdTqnSU4eMBQvU+ zkW1NXchF/YxMLttdttUWOvFFMtzvbL+WqsK1C31RLI4UB7byIx2SGE1xEHdDkWFtLX/ yMB3uOtTPNudnp/FXcnT0TBRyw9wV8nud/WiQuNcxI+9olBojKMoayww/wmkapkMxEGk sbA5K1v67siPz+RfzfyEYrqdJ1bxO7YsY9T+IKr+8PwJ6jBK4ic03fg/9NQ311mru25M W7MLPe5WL93mgAMiufHFKdJ4lz5JEPVxtAS0AtaS8H5WJ2W3tbMKRckJNKv+odxtA1Io 3iaQ== X-Gm-Message-State: AOJu0Yz0v0CU740i2aeeCmZrVj2CjrG4R9twgZbJkvxtNsueRa0Up5ah wMWDLcyL2JxYEhdRJUykZlKjGg== X-Google-Smtp-Source: AGHT+IEb7M7bOgezkAsIz5lgjpCqtLrCj++G22+kk8Us63mXo1tAqwqs1h6gIoztO+7rG9pP/dFhIg== X-Received: by 2002:aa7:c148:0:b0:523:6c47:56f8 with SMTP id r8-20020aa7c148000000b005236c4756f8mr1903226edp.18.1691666401948; Thu, 10 Aug 2023 04:20:01 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id l10-20020aa7d94a000000b0051a2d2f82fdsm672190eds.6.2023.08.10.04.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:20:01 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Lubomir Rintel , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 2/4] phy: broadcom: ns-usb3: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 13:19:56 +0200 Message-Id: <20230810111958.205705-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810111958.205705-1-krzysztof.kozlowski@linaro.org> References: <20230810111958.205705-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_042003_699937_26154D82 X-CRM114-Status: GOOD ( 10.30 ) 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 'family' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: drivers/phy/broadcom/phy-bcm-ns-usb3.c:209:17: error: cast to smaller integer type 'enum bcm_ns_family' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/broadcom/phy-bcm-ns-usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-bcm-ns-usb3.c b/drivers/phy/broadcom/phy-bcm-ns-usb3.c index bbfad209c890..69584b685edb 100644 --- a/drivers/phy/broadcom/phy-bcm-ns-usb3.c +++ b/drivers/phy/broadcom/phy-bcm-ns-usb3.c @@ -206,7 +206,7 @@ static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev) of_id = of_match_device(bcm_ns_usb3_id_table, dev); if (!of_id) return -EINVAL; - usb3->family = (enum bcm_ns_family)of_id->data; + usb3->family = (uintptr_t)of_id->data; syscon_np = of_parse_phandle(dev->of_node, "usb3-dmp-syscon", 0); err = of_address_to_resource(syscon_np, 0, &res); From patchwork Thu Aug 10 11:19:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349305 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 2BDF8C001E0 for ; Thu, 10 Aug 2023 11:20:11 +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=vQCYBZrktzuUjlfwRBg7R5Sndvfvi+n2VMVkF2lIiTM=; b=bJKmvO6OyXZeAu MxBAb56ri8FfCaJWaAfF0KiRqITeTqZhBCCsznaxDh4S5nt8aEVWvkW+5vg+RI2wiL3BQl2nOMe6a PdFky2b1knwn/01njYCsFb7kBQX+Y7ZiwmaQ1HNmYW+k0FK/92thzV9O00/xAHRieu9ZRcIYtMGuE 1uHIC/LEAwBj8TPLuDYo22b9dVqhSXwVTKlusY8+xDNILKURxics9NYsnpz8IT5HcJ+nGb5sEyLQX /iaL8KxH3O4d9xvdG7NQgD7qZOC5LpLgYuJhHqm0zj83N68WpOPyDjx2NXqUUsl8VuDUXDQWtQPMy TqTZNk53Io5eiZF0prpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i6-007PLD-2q; Thu, 10 Aug 2023 11:20:10 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i0-007PGf-2H for linux-phy@lists.infradead.org; Thu, 10 Aug 2023 11:20:06 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-523100882f2so952856a12.2 for ; Thu, 10 Aug 2023 04:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666403; x=1692271203; 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=ktcs5NdTv2cCWAPg+nMpm3PUtm7rQSXE36l7Rn+flIg=; b=QSIhYdpdako5VYTZrsQt+ObZhMajMDlSo2PgCENCIMK0yRWLTDjCYs1qjNoEfGviwh oTjljpxyfQblKRN/m0swdnmQzVlZ+EceTO0aEWV0VOPctl51zss0Wkf1Drq3PlE786iF myAXejODadpaPJsrvq0IwLodeT3sNKBNXUyk/ScecsGYRpXnHzjA8skfym6ueIjCGS2H g8fpfPOK1cZMGfEYStA8etmijTDZ6jxhrALVb/HINLGrVaP4Z8sXv6c6TpqDeWJ6E3Og bn7QF0KxwVOQ+oKGWyHDP0d7F5RC78wrn50RBvKw2ORq9zL8q7D+3hEc4c5b/Ve+D2Jm pcQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666403; x=1692271203; 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=ktcs5NdTv2cCWAPg+nMpm3PUtm7rQSXE36l7Rn+flIg=; b=Gy2KY2MgJkJwUDZNGzo67/BgAW7JDpMMcQsOCWg4RHslym3C52bpsShBA06X+JgjR9 zmoz22PJT939svG3NwMfWrU8Cjs0eneK0dKPNWnaTUr6eEKndcZF5xKHREhIibXbfpQe OPbdDMSJpj1NtwpY2UPa7RB33pi9VVUOTufO/5cPCm5MgavUXY6xltCdaBCmNsorYg8I rnOHnQngoWJOjdSRZmlihgUm0UX6mFY+MKe7HHLTH0SVyR7HwTbbA1gBWhLVj5b/CW4i 8ywlRUH0v+x364cGVYBIS1pwzP2tPqVL+xGp5qsYjAPe+UixO6PSI4PKhpVq01ZbfwVb YEYA== X-Gm-Message-State: AOJu0YxcMg00dy5nY93uDC26l4I5U7/45wL/vc9Vi96RXKLVYTXsKqfh tWify2ZikQoLxMk457BAhK1U0Q== X-Google-Smtp-Source: AGHT+IFUPx4e6WTIaWFS8XfPyJLCyfbqVQwy1oe+1dz/OcKdK+SDb+aWckxRLLJOvALWF+MJz4Fnqg== X-Received: by 2002:aa7:d4c3:0:b0:523:4922:c9c4 with SMTP id t3-20020aa7d4c3000000b005234922c9c4mr1886784edr.11.1691666403284; Thu, 10 Aug 2023 04:20:03 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id l10-20020aa7d94a000000b0051a2d2f82fdsm672190eds.6.2023.08.10.04.20.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:20:02 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Lubomir Rintel , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 3/4] phy: broadcom: sr-usb: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 13:19:57 +0200 Message-Id: <20230810111958.205705-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810111958.205705-1-krzysztof.kozlowski@linaro.org> References: <20230810111958.205705-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_042004_753671_CC97D89D X-CRM114-Status: GOOD ( 10.72 ) 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 'version' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: phy-bcm-sr-usb.c:314:13: error: cast to smaller integer type 'enum bcm_usb_phy_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/broadcom/phy-bcm-sr-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-bcm-sr-usb.c b/drivers/phy/broadcom/phy-bcm-sr-usb.c index 0002da3b5b5d..b0bd18a5df87 100644 --- a/drivers/phy/broadcom/phy-bcm-sr-usb.c +++ b/drivers/phy/broadcom/phy-bcm-sr-usb.c @@ -311,7 +311,7 @@ static int bcm_usb_phy_probe(struct platform_device *pdev) of_id = of_match_node(bcm_usb_phy_of_match, dn); if (of_id) - version = (enum bcm_usb_phy_version)of_id->data; + version = (uintptr_t)of_id->data; else return -ENODEV; From patchwork Thu Aug 10 11:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349306 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 88DBAC001B0 for ; Thu, 10 Aug 2023 11:20:15 +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=jtALTjof1F/h+0y4/R9pm+LHueQoE+mkFKJG5CyrT9I=; b=TaJPDyjLkTf21V F3u9YoNfTqXKaMlVB68CzCfVjwLS6auipvZB4Js+Qdq0WMUy5aojSyOpcQoktb7GHa+6NTiapfpDg vmZHznd44rsUF2EcB2PnDgOjHNi99aMOzJUW62+NMGN8X8tKVnkVlsMsSoL6sp85OykOxP1kvPVmr 0XXpHqRcQQWEj/+85vepeOVLQFwpCpTdOMnmRD1bDOH4UjaCgIyyYWGro4ag/Fsn1BtG9OOaTLfx0 D4/8iySt5Rg9/Pw8Mn/e1M0tGW47z0G6f+XPW94rQ8Q6fS3TxHrQGqdIF5QDqt58C8bL8+h145slD fThNncoAAw1osDkWgTOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU3iB-007PNG-0t; Thu, 10 Aug 2023 11:20:15 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i2-007PHy-16 for linux-phy@lists.infradead.org; Thu, 10 Aug 2023 11:20:07 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-523ba00a581so42747a12.2 for ; Thu, 10 Aug 2023 04:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666405; x=1692271205; 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=rjRrPL3giyS12WpTx8mH1BV4cSs+Hb0fY60hyKCefvc=; b=DdSvEMf1eAnZGQZ/9FRALSlwt2iOxo0rsPe/51k5UmLZFZkfvRKyxDesDZJPtx1B3z gAoXq9TPVCrsGvLbpZa6pmuYaR01wFBmwLR2ywQLYx1qCsv8skIzEhY5Ly0yUz3A0eeL zFlow1dIoZehUAqK2IJJ0sjuHxFJJj9leFHGxKifnkNt8erRcth+VTHV2vmk2VVqFLhO t/SGdaHkoPTjgPmH39xSqQ2ToQHaEwjh06L/E001KoaKbeEx6DiwCJzd3YPQ06AZj+lN Fp0dy/7H2ZjikrjL7K9+BCrDi03SGanWkYhVRohDYS3DqPAJuQpHqtowUkPZdScryF6j svVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666405; x=1692271205; 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=rjRrPL3giyS12WpTx8mH1BV4cSs+Hb0fY60hyKCefvc=; b=jXppAeVYot7uvnVD6LlozUVHknjzyOnnu767gzGTyPEUEFxE5JS+Gj9gTwfek0gAxT u13wTukFuOw96biKKUTTwynhSWl7xQKbPWI5e1wT4mhdCik8eZLQ17rUHlF/aTaICQm5 baXOtaYRN9dtwVLK2mk/Rm9Dtr9BV4hlH1N/AQgRHMjOWOvxdPOdxNZYJ9pFhQHAM8KU zI1qgh9ChKgOpoIBYX+ESnW9akfWXTmf6nP1L9OlTUZo/IoslE+Xxu6iACAbkG85Z3+/ k1UhUyyJwYOEaZscvd5iimShp4VYmnokuawSzhy9pYr2AdTx8zdJbYGK6O9Jb2ixQwRk sWhQ== X-Gm-Message-State: AOJu0YwiVSxQy2RrCVjm1FzO33Z3Kvc1YATZoRjL2v+JU1UovH1I6j5c iJg6BjxwF1s3mW+b+oEFoRANDQ== X-Google-Smtp-Source: AGHT+IF958xthNASZUnlwJzqA0yJJGOR4I6Ld0t/wpSlG0seA0JNDjX1vM/bUIDiHFnWWkwvzjn0mQ== X-Received: by 2002:a05:6402:1343:b0:522:28fa:3009 with SMTP id y3-20020a056402134300b0052228fa3009mr1646737edw.13.1691666404836; Thu, 10 Aug 2023 04:20:04 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id l10-20020aa7d94a000000b0051a2d2f82fdsm672190eds.6.2023.08.10.04.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:20:04 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , Lubomir Rintel , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 4/4] phy: marvell pxa-usb: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 13:19:58 +0200 Message-Id: <20230810111958.205705-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810111958.205705-1-krzysztof.kozlowski@linaro.org> References: <20230810111958.205705-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_042006_392650_C9199069 X-CRM114-Status: GOOD ( 10.56 ) 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 'version' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: phy-pxa-usb.c:299:26: error: cast to smaller integer type 'enum pxa_usb_phy_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/marvell/phy-pxa-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/marvell/phy-pxa-usb.c b/drivers/phy/marvell/phy-pxa-usb.c index ffe889893ff4..6c98eb9608e9 100644 --- a/drivers/phy/marvell/phy-pxa-usb.c +++ b/drivers/phy/marvell/phy-pxa-usb.c @@ -296,7 +296,7 @@ static int pxa_usb_phy_probe(struct platform_device *pdev) of_id = of_match_node(pxa_usb_phy_of_match, dev->of_node); if (of_id) - pxa_usb_phy->version = (enum pxa_usb_phy_version)of_id->data; + pxa_usb_phy->version = (uintptr_t)of_id->data; else pxa_usb_phy->version = PXA_USB_PHY_MMP2;