Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2981139rwb; Mon, 15 Aug 2022 15:23:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FHcu9ieA4TYAZUoWuj4la7xcec1FNJtFyX4u+NIP74CipOnfI6YmlYzKDCIJ+NmUzUK9j X-Received: by 2002:a17:907:8a01:b0:731:4316:b0ad with SMTP id sc1-20020a1709078a0100b007314316b0admr11951335ejc.477.1660602185510; Mon, 15 Aug 2022 15:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660602185; cv=none; d=google.com; s=arc-20160816; b=cVmObvydei0cPAYKfiKdCPREzQVEC8rL8BQR5bnL2s8OycSIX1ZfHVzB9QN295BYTK KNGLgXO/Ku6ilSfA11Hoart6hc4hL/TD2LYdjzxBZcrak7EQHLim828tQeut7Qp01ZPN wG+Lr4LqI2MVcsEeUZCD+MBpymOghcAPJ22ET9Eyp5ItPaTkqHFn6Db9uj3so/SvhesP FoNvdHFstTaLm9ucA+zx3FF/h6rWgZnT8fTjCCwAFvbQpgmcae8ZXroEIZQwJeYiqlGM qRqgQnSXOcrMhdnibwyhJD3dmJzSOtVqqwkwLSNDApeJqW2xjnIwDITXiklAf8yd5AY1 nP9g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x9TQ2/0grKYVofjoEoeKNQ93tgBRw+8vvOUyGrGDibQ=; b=0A3O7DmKka7QSn5LKLg86pzgP1BqJtdbOvBqFp0wOvOm2E5sXQjHZu1DchlTphwL1z 3E4ITSACsRn+HkyFWeColFSfTfpJlmFp1xBS1iWfV9gDKin6p3ftriRNcrXZSjcK9T3S RCpb1qCB+Le3Q/LQcSsjLWXu9yPSa7UT3nchsCCyC6q2KhXiSkpH1Pb2ivsCDgO/lOfg rPee1ySx8lBgVqFpv83jHEbSESjYyLW37iFcCyoUnZvHV3IWVcbBzYShIxNYbKDL40ZP 2inyThiVoBq+a2R3ngtJktiW/mfV4cITwkl1O6Ruihse2IGA1bL/UWIY1i8KwHie7LMS DrzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iy7sLEYO; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a056402511300b0043d31095588si9794272edd.240.2022.08.15.15.22.39; Mon, 15 Aug 2022 15:23:05 -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=@linuxfoundation.org header.s=korg header.b=iy7sLEYO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239634AbiHOWUd (ORCPT + 99 others); Mon, 15 Aug 2022 18:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348418AbiHOWQf (ORCPT ); Mon, 15 Aug 2022 18:16:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BC71ED; Mon, 15 Aug 2022 12:40:14 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EDDA0611E0; Mon, 15 Aug 2022 19:40:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBAA8C433D6; Mon, 15 Aug 2022 19:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592400; bh=dnDxbrsHDl7j52sf7NppzBaeDhtDkuLyAP/XkSnlv1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iy7sLEYO9G7c104lMD//cT7+5CdOGH09/slfDqjMLJFokLyIobadWZp9flxPiGk6k 3GynYQWqZVxms8KJ8tdxMkSzySIbBvfQBzgDA6jcK9xWlG8ZXpLoF2d60whEnaVnTI KT5w4sv0AimVZhfZt6f2V/V22/O7LXjQQFK9qQHw= 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.18 0781/1095] dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t) Date: Mon, 15 Aug 2022 20:03:00 +0200 Message-Id: <20220815180501.569404789@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 2ddc31e64db0..da31e73d24d4 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; imxdma->dev = &pdev->dev; - imxdma->devtype = (enum imx_dma_type)of_device_get_match_data(&pdev->dev); + imxdma->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); imxdma->base = devm_ioremap_resource(&pdev->dev, res); -- 2.35.1