Message ID | 20230810111958.205705-3-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 424D4C001B0 for <linux-arm-kernel@archiver.kernel.org>; Thu, 10 Aug 2023 11:20:41 +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=28MQlSk8G759FnYuSpj+VrKgiErgQiDgG0dlXuqQ1vI=; b=l2D/fEoN7xgR3+ 106alR0vnXLahzEMBYPUwrzYPBPvMUScga9wiamM8PxWAU54s4FVPJwP0y1nq7G3LZHPt3nFm7QkZ qAwoCNxFuEMBrMeAgeE3zfLYTy1yBJ/ESOLqPnZxY/arppnTwtHfPBT2g5EOues5TmbmyTNCGZRVT oW/QEGj/yvt+6pPnPK5S4flMQ8/Ywr3P41WgHwNf6zQxEGleD075a4xmmtO2qRex5gxTjbQyy6U60 DYk8Ny2Tsh7iyu/LHH5IcyIuWnKOemaGiq2dx17QX3zxB3cspCdPkrIbD033Saz/3g9pJXKsgML4A eJiAzOl5F4U7x5YeF87A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU3iA-007PMH-0y; Thu, 10 Aug 2023 11:20:14 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU3i0-007PGg-2G for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 11:20:06 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-522bd411679so972534a12.0 for <linux-arm-kernel@lists.infradead.org>; 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=Tp+PawIaXS26OVs/Xrgo7bdA1dJFJ1j9/qMmYhFzGFwvQyzrHecXPCasVknKzeJXU5 GHF+l7D1aTDAAKaxaTZElAHLRGBL40wbmd0RGjoHVpA9vnMl7prhtDnUlqgkev+T4ie9 nDT05qzAn0WctUfDf1U0KBw/fQJbuwgY9ZKT1/jLX6TNLQgn9xk9PWMjB6p70pxhl2RJ 9xPg45lN9Adundg7n5EdG9PPeGe7G5bUi6LpW4CXTN8aYAj0Zk1Bd1Z4+mGTR6B1fprB PqB91hE3Es9R/z4r7rXvQQbZgXb9h2BuJl7CNWzV7sBwyxff/p+otSzxAuR5P9xV9gET x8jQ== X-Gm-Message-State: AOJu0Yxx+Hp5u0uXmS4bBGu4jrOhr/khjnP2WYdfOkTwo10La8FdgU2S wlhIYihH4nz2Fqgf2r9y+hcMDA== 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 <krzysztof.kozlowski@linaro.org> To: Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Lubomir Rintel <lkundrak@v3.sk>, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti <andi.shyti@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 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_746376_D6C6DD36 X-CRM114-Status: GOOD ( 12.29 ) 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/4] phy: broadcom: sata: fix Wvoid-pointer-to-enum-cast warning
|
expand
|
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;
'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 <krzysztof.kozlowski@linaro.org> --- drivers/phy/broadcom/phy-bcm-sr-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)