Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3088423rwb; Mon, 15 Aug 2022 17:50:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DogMzeELdyvmge6IFlShMt7cPzVSGd22AAFckvkYt3hnefnCxHvv2wHKVpoQyBQWyiCbh X-Received: by 2002:a17:907:7388:b0:730:fd1f:3564 with SMTP id er8-20020a170907738800b00730fd1f3564mr11374596ejc.576.1660611045853; Mon, 15 Aug 2022 17:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611045; cv=none; d=google.com; s=arc-20160816; b=mvMcgK2poOQGiYMAR4jsp0ZlRL/kCIjofFznzUS8WUBulCHqkWfP2qgM0P5VIQGZBo E52ChDpM2MfYK8dtTeNeInPwEtGCGQDsbeg3Awr13iEG7Ivw7rOr5N6eZEyFldg2EP2x XKrayoAgB0e590+QjdEyQZvol7EixxQay7qLrKEyWyqBkMsWrKl6xAyLlYuI1sSpdjBr NY6c8ATvlAwsHisXfH6G1pU6R26vtGzeXXLSzVbaVVZJFvaDWbv6xxFUIbjMKZ1AiYkG R0oU77FTGPM1e4uggd9BTIS+L6JwPuj38ATiN8rGhk4LOr+CHKg1xifI94FMW5c56wW9 eENQ== 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=ckuJC8VvILqRoWSFAZQQd6YkohoTbHFG7g731TBrXEY=; b=i5OrtqqJAh9S3+2kwPsF1QUUVXieeSSx4vSM+TmvPcRv4/o2wHU7NZe/6k+AZsKjCo /OzbHzFeZ2mLZtZ0xeKyQznrtNeTGeO4fqsS+J+Ik9LLFJaD5DZPOwb8o3Jaivku8lRr FXxSgSsG7Zl+t+bCeWXPQK7kklC0LmTa4HKoE3IgzY7Cjy3/Xu2VM7/rWs5Ze6ZZCrmw Cd6m0esU0CBFV7ZwEad0F7FjjPqNU9q8dazXOXLyR6wsbufNFzoI82Hr7Jz1J5E6HF/5 XCbhPpkKqRUc0iDHqCS/nHZb6utRfACjFlWu5RskdK1a7PTptU/Dk53LLBGyf0y3Enh4 HpWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pb4Hr5Uf; 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 9-20020a170906200900b0072b4b197fa4si8897903ejo.88.2022.08.15.17.50.20; Mon, 15 Aug 2022 17:50:45 -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=Pb4Hr5Uf; 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 S1351454AbiHPA2c (ORCPT + 99 others); Mon, 15 Aug 2022 20:28:32 -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-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 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; 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