Message ID | 20221017032205.2210188-5-damien.lemoal@opensource.wdc.com (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 68B66C4332F for <linux-arm-kernel@archiver.kernel.org>; Mon, 17 Oct 2022 03:23:57 +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=6oulD/zXN2LkAklgqrkA0ZHc/Awlvd6NwkSTn790eoM=; b=bno0sZyEVeDSxn uIC5r4KqS4H/MIrQbe4je2cSyWIRXf7wKcAdpAnbUWTpytuLinPBAaLcq345XuXBuhhEDrvqWZYsN 6IAam22tbx28IAwvYorEPExorKmtcY3/7h7Wos33BmZZfXW/K2LGpGjeOXa/B+D9tLy/F6qWYeGdz M3zdcF+wyRRDkj3zwj1ASyUQ7Tdfn6xaJOqBUtdxK0591b92Bin3O4DZ2gQy3JMqh3o+LPh82/b4o A0YBTCuS0P6p3LcLPTqKFLhNALEdDwdOeK+8W4YmsJJtRn1kk93lKcl/gPgV4h6fy+7a2TJ8CblqO I9x95h0EJFMtprS5osDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGiP-006Qk7-Fm; Mon, 17 Oct 2022 03:22:57 +0000 Received: from esa6.hgst.iphmx.com ([216.71.154.45]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGhk-006QMA-G2 for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1665976936; x=1697512936; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9oVd3kKUW3BD9R22KKr2B93jbr7Wn+zAbmF4qTKLCcU=; b=BeN29Pj2EL3R2FY1G2UXc34fEPysHI034fhMy9o8jLVDLiWw5KdgpYlb AjR4pMD0WCBFxQAdqlyZsBe+cShC9FGcXww5rIlexE2r9XgdU/Kcv6DyA PMf7czhszZS1QOgGyFyPYs2auktBmAcOZD1aBNrukqOKtFMh1X0ymIe24 nRePMLvVOHmFKDkXGGVIwebBHhH3OdsiNzyO+xcw0EGexxkH4BZ05ZeIO qlv2mEPu9jXV68OfMBq0MAv3gadEEaCGMJiTtyQ7xZ2D1pVbZhOYY+r84 Xu7li8A9p/4mFf0nCkU05DpUPtujfSM3MBpYkuAMyAK8HXfK0uXM7qdRF w==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366019" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Oct 2022 11:22:16 +0800 IronPort-SDR: ydA40sbXuGWBzLuSK/QnuXkYvr6BGwqXb/FGggGDMoCZEzQaEn96W9bGO1asYKTyIe5hsubvgs OlW/yj1Jd+B1QfV7bwZt3xAXQk73zNHPY+gzNRNFvR5iNUKdvY0hpihMA9Ztt04EvA0JtzgMub bcjHrMBBdpzVc7c624hbwOGDKG6yqsf2PJWD+rvTNZLdcOGm069PNtDSqPXaKfh24gT2SwXvUC pkJ/d5KGcKPAHxNPznHRDE9riOvcknK08/qfUpahVHs1wwy9tO5wtinaskOhd9rLjlY258DsOQ KSBy5/wki5VNMNeNGx6rlaXH Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 19:41:49 -0700 IronPort-SDR: nKmmHJrQMWeN1rbbfYESytmaz+BqxJANwpKwQ4ColU3zTCdZdy0jRYUa/SlCDGdcgIh8QQ/HbT AI0leap7tuzxgX09c9MXZg6vsvLTpbZVyuSxoODfi4M482Rupf3keLMLRajLSGQTaBg3X9MdzX 616FgLpbcp43fu/wWU9agWTCLrLrxrvTmMSW1x/aaSCFPQdzH1OG4wnKLeqXVdJU0n+Xeru/f5 iFfPJMG/ME/xLrlQamMM2uBR6uJpebNc3vIqqCWEdSZNMYEaReaJmswGGhBKFncuoxU6jBvbvp H04= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 20:22:16 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MrMjz6Vflz1RwvL for <linux-arm-kernel@lists.infradead.org>; Sun, 16 Oct 2022 20:22:15 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :references:in-reply-to:x-mailer:message-id:date:subject:to :from; s=dkim; t=1665976935; x=1668568936; bh=9oVd3kKUW3BD9R22KK r2B93jbr7Wn+zAbmF4qTKLCcU=; b=rF2LdUjZnJtL/Exkv3BjRLjLgXR0Qsi2ks X839gYzxXeTVjtVrsSqZmVtYhbB3rLOBr8UV2ZaOsW+Mr5lvjm3tHec8Tdqw20ly 0AdVo87lQxcGX1sUbNLWyYV00uG3MhrBiLRnHLd8v/KAz3nEHd02gYsjKm7S1+ET KBEIk8I6iN6fRZUPtkDVRiDlec4Mur3jfSkyXpu0wEvwr+g9attNMVVfR+bqNLCG UyrsC6UrC5D/T/lLv+VOnaoX0H95aeoljggjfuPzZ0hzwiOOFs17D8iQJg7pUCRd 62tyoLb2CWnRD40q9X9NVZwDeis9ij8vcvpRakte5QfxNtTdAwrg== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KFq41lZkzNLu for <linux-arm-kernel@lists.infradead.org>; Sun, 16 Oct 2022 20:22:15 -0700 (PDT) Received: from washi.fujisawa.hgst.com (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MrMjx74PXz1RvLy; Sun, 16 Oct 2022 20:22:13 -0700 (PDT) From: Damien Le Moal <damien.lemoal@opensource.wdc.com> To: linux-ide@vger.kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, linux-arm-kernel@lists.infradead.org, Patrice Chotard <patrice.chotard@foss.st.com>, linux-renesas-soc@vger.kernel.org, Sergey Shtylyov <s.shtylyov@omp.ru>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de> Subject: [PATCH 4/6] ata: ahci_xgene: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:03 +0900 Message-Id: <20221017032205.2210188-5-damien.lemoal@opensource.wdc.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> References: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221016_202216_619889_0589B432 X-CRM114-Status: GOOD ( 16.30 ) 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 |
Fix compilation warnings
|
expand
|
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 7bb5db17f864..1e08704d5117 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -785,7 +785,7 @@ static int xgene_ahci_probe(struct platform_device *pdev) of_devid = of_match_device(xgene_ahci_of_match, dev); if (of_devid) { if (of_devid->data) - version = (enum xgene_ahci_version) of_devid->data; + version = (unsigned long) of_devid->data; } #ifdef CONFIG_ACPI else {
When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_xgene.c:788:14: error: cast to smaller integer type 'enum xgene_ahci_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] version = (enum xgene_ahci_version) of_devid->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_devid->data. Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> --- drivers/ata/ahci_xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)