From nobody Mon Sep 29 21:18:47 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD157C00140 for ; Tue, 16 Aug 2022 00:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351655AbiHPA2d (ORCPT ); Mon, 15 Aug 2022 20:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356341AbiHPA0z (ORCPT ); Mon, 15 Aug 2022 20:26:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A08E17FCA8; Mon, 15 Aug 2022 13:34:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2583CB80EA9; Mon, 15 Aug 2022 20:34:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52487C433D6; Mon, 15 Aug 2022 20:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595669; bh=y/bInWyFKZVDU65kZV7FD3r2Ev7sY5TftZHOe75oV2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pb4Hr5UfVXzq9Qp0LMUZo05Bf36PeysQwYLI8d9MNk83frm0Wx6h9DM5Z5NAR29Kt W/AqdNNocQewEDVcJBDENbm6LXtZ6uZCqc/dzBegNZ4Wvv0G452ZtPiL3rnj7ZIMP2 KpNMMW+sX4+vCrLdFc2TS902B9xD6Xsx2FgGuIIo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabio Estevam , Vinod Koul , Sasha Levin Subject: [PATCH 5.19 0838/1157] dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t) Date: Mon, 15 Aug 2022 20:03:14 +0200 Message-Id: <20220815180513.018946534@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Fabio Estevam [ Upstream commit c3266ee185b59e5aab3e0f982e5b7f95d31555a7 ] Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum = imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot Fixes: 0ab785c894e6 ("dmaengine: imx-dma: Remove unused .id_table") Signed-off-by: Fabio Estevam Link: https://lore.kernel.org/r/20220706111327.940764-1-festevam@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/imx-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index 3bffe3ecbd1b..65c6094ce063 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -1047,7 +1047,7 @@ static int __init imxdma_probe(struct platform_device= *pdev) return -ENOMEM; =20 imxdma->dev =3D &pdev->dev; - imxdma->devtype =3D (enum imx_dma_type)of_device_get_match_data(&pdev->de= v); + imxdma->devtype =3D (uintptr_t)of_device_get_match_data(&pdev->dev); =20 res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); imxdma->base =3D devm_ioremap_resource(&pdev->dev, res); --=20 2.35.1