Message ID | 20230810111958.205705-4-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp365787vqi; Thu, 10 Aug 2023 05:01:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8fwbpzPV6J0k2w8lnko2HtxvZmsMKmdbGw2twrBg+C8DbxjKD8x8X5TxCoKmu7fZY0jaZ X-Received: by 2002:a05:6a00:1301:b0:687:2e26:9ca9 with SMTP id j1-20020a056a00130100b006872e269ca9mr2667817pfu.11.1691668866451; Thu, 10 Aug 2023 05:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691668866; cv=none; d=google.com; s=arc-20160816; b=zXATbBpvEobpapMcYpUd3zymz4RP74KnpaUMuLqQcuHxprWfEp698AP5mgd0jW5hH1 LDmX7NxOV8gkDZb5Eag/vu3jOA3/Q+PVdH/kSorrnkPIGiOQ5LkPDJWa2aSM7PGvFqHN V9TRoJhDHfVNd38IyJVdMQt3a5LEsBiwOr4yXnnVxcK1AfpyF8ZwjCVd/8KKL1wzefnI SoM0+vOie6pweX2adWNFkAnsZvnL6fsyGoeZ8U6OkxsaWrcIit9ZGMQ+P6is/WouINoj 8p+JHkoUBsNgLo20A96VzGo8f3Xxz/e09yCftCOJ7Jo96Bbkf/PhuPclYqSG80PkopOR wQhQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rjRrPL3giyS12WpTx8mH1BV4cSs+Hb0fY60hyKCefvc=; fh=kQFQCB22WQweP4QZ1s6soPwRQVJuwN8x2UE+xY3y2Hk=; b=egI1qI3qF6e9wTUz/xStrxG44MDF/v4esfBQO5W5dm7P2qFC0Z46d6oG2kDo75jlph AyexJ8YnKNFpZgMQoT/NaCAHWS5lJxFLdIeAf6hmQwn2PooHE6UL4H0r9kU+k71wUFjB RhUyzztpmMCWZg1KrfyyGh/p6Vz86ZX/LnHqJSlYfs89dPIwRdOU5UMmo090Zxu0QMrI acyoA0+UvEXFsV1i1E5dpwR7X6JqmjVylehWaeWAkmZdiDV+jUx0SCb0xZb8ZHfoMER4 bVMdUEczmtYAwQe5LGm/iJQGGOxxZorVjkHlNW3rQYeDMDjGhmVbXGFFIPpW7JEfV67G Ge/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DdSvEMf1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a6380c1000000b00565360b8eb3si1418475pgd.391.2023.08.10.05.00.05; Thu, 10 Aug 2023 05:01:06 -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=DdSvEMf1; 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 S235196AbjHJLUa (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 07:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234619AbjHJLUP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 07:20:15 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4437C26A5 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 04:20:06 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5230ac6dbc5so991075a12.3 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 04:20:06 -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=dBT8jC/JwMxrgqfSzI3HEBKh3qceEkgfoZ2PBSUWX3vLd9wvRF3XKKkjTuFftRpoUo RgikEBUYPQk3VLqviQwKXnbfbvixk75VWnctiJmg7RjZBXxbM3JlKqH4JD2Ag69Nj2t9 /JG3aLEdAz4kPYZMRSQmpLyYaA7Td/aZntMyMte4SlaFdYQJjdJaQ0gXduPAdvES8otm jLIO5pWyk/1eBbt1NhiPaPX1gOBRCHv+sothB9sJXm92IrrPx4mVxxLkYomZkDatuiRA f4ESQH0uz8UXfpam/cG+Ks3cjRVsqUGjQ5TYG+Vd2SRPuQOgJrpyMVQJqmiy9Gv90aWt oH3w== X-Gm-Message-State: AOJu0YxOSLiCPTHSq9l9gIaTlgKmv5mOlTmbc2lPWNjhLQu47k2eoECl DkkebIqZPWILLLtPbR8UKPz1JA== 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 <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 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 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=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773843373189824262 X-GMAIL-MSGID: 1773843373189824262 |
Series |
[1/4] phy: broadcom: sata: fix Wvoid-pointer-to-enum-cast warning
|
|
Commit Message
Krzysztof Kozlowski
Aug. 10, 2023, 11:19 a.m. UTC
'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 <krzysztof.kozlowski@linaro.org>
---
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;