Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3450025rdh; Mon, 27 Nov 2023 14:56:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuVFxSqAHr9BXaY0mOiN0qO3L4QtsqRWjtRYsX7pmh1afOjbeXH6uE9G/gY8aA7YKyIMHh X-Received: by 2002:a17:903:234c:b0:1cf:f624:a659 with SMTP id c12-20020a170903234c00b001cff624a659mr363464plh.22.1701125807039; Mon, 27 Nov 2023 14:56:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701125807; cv=pass; d=google.com; s=arc-20160816; b=zFskAtUFsECxqouZNkfRs2te0KVnesT4BVcg1P8XLAD+vUI80mJ68BwEKTtSKsWqxa RbL7wWYDSUt1r9aY0nNWfpI432rIik1MhRsDj19rZHpNra8rNJgBoXsL3zLwgzVTzs3J 4Wnb7zNxyWHHj4Ovd42UX3GYqyoqHxvpAOiU8ukubTJFmZ952zXdkMXypp4VdE2e3ybd ilW6qeEaUgnFAGTe68PHzxy+uPZf8gZqQq+Es+iq8bdT+4U3WYpBAobAzDtf0SR2Jfpc yYM4Kq3eyFjQFucefE+F7Z9xusb+votDzi385H6wM6+tIzXLx4CXh1+H0rkz+cvdtPQD nCuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; fh=WwdwxswekiDlcDQNcHvu2C9Zy8N9YQStHu/6mj4Dj6c=; b=SYDz3aI51EIGJjOT2x/ZtokTLNCIUZ2EeZqW9efsL0QzIAHSHLjkG7a+5ZTZYoM3Ot t/LQs+Go4bbcEv9J4Oi1rwq0nKQq7VZDyqyyYq3wGFwcDniY0H19XFC4TR72CFxtSG2L 64H+Zs3Bwbppwo4YH9SB+SNxn00yDJAxtONUxL0TbwJEMK2felHLTjxs0IG0qCujU84n jp9r1z9oHY8kwr3neApUODT9AJW2zGJ8Tt/dANMKfPMvHMsDgV9wkczmAWYC0W0f/clE gcIpIqovPDtHyBo03GM0ArL/+3qb3VzMpjexf6LqxCruMs7wqeitDIJyxTIUQA+n0NG6 NNQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gvsuQzuQ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j18-20020a170902da9200b001c9b15bf936si10364347plx.220.2023.11.27.14.56.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 14:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gvsuQzuQ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8659F81112E3; Mon, 27 Nov 2023 14:56:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233793AbjK0W4H (ORCPT + 99 others); Mon, 27 Nov 2023 17:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233400AbjK0W4C (ORCPT ); Mon, 27 Nov 2023 17:56:02 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A0C137; Mon, 27 Nov 2023 14:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nDy0poR0kzWEOHLkD1GgNlU1MwZsJkF8/DoVCW2O+wdQp6Fle5m6QhIXpMCUW8wLqqEr0X3SPMEiZgbRMBLQRuFQIefGpoX7432qacVBLlAhUMtJLHXs203xnAwlqIf0jyGI/njlqPoToEvspx03awZOaJQV/cx5Dm8xTEzxyTcq6oqYJx0lp2/u8eMzvsGldci7FPQo50A5P93o3pV7/KiyrSsr/smD9MyC2YQW07fHbzDsjjHbrVDDhWK6KdsKwoh6JmddubONF1svPkMhFO9C4+lleNaCgI098i57eFDuC9FycWTsURivMLkV+WIfCRtd8/6SWXF9kVSu3KySMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; b=QZ1JX8Qgus9WFOYBfQ0WYSMDomNs+SJbA0kQfv9xu/KV211yXlxwBSOr5lH094YNEpN5hTwVK3ku3+NBj1uuYO1Zos3ljuA6i5hOw5pJGbp8nJB9YLRiBbZK8WVGpRNBrqnUtGdWdSZK316NStDZ/Yn0HNkWCgnYyJzhsn4YXwJ+ydNXIteu7NmpsZwI+SaHR2hWchqe7pPnbOHdwr5RsVXd8uzgJaZd88PikbL9lundqdMVW0n3K0hzyo2rVdko03zx2OEw3iBJtUVjE4ccRAMfJGkCfyA6uYkX9FDFiDDGOoqbnNnoAl2274g67I5vZJ2rrsR3DalzxQI/X1qcng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qds3eitbV+VPVhcvy3TxSQajrWZgbp8jt8fKBn/jmZg=; b=gvsuQzuQy9R07Y+CwPPYqFE89cauLz1Nmnyd6761FIFV4EZUPdB8fR7FGXCJeVsdoVVCt2VhRBYiWAqI+Vfvh8sm0zwBAreC2S40AeQjE6wegYatcGxIIPumqywCHmq6crI9EOgr+lKwEPkPP6Sw8GNL2Dh5S9F6cuor4GqrmiU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by AM8PR04MB7858.eurprd04.prod.outlook.com (2603:10a6:20b:237::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.21; Mon, 27 Nov 2023 22:56:07 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::95f5:5118:258f:ee40%6]) with mapi id 15.20.7046.015; Mon, 27 Nov 2023 22:56:07 +0000 From: Frank Li To: frank.li@nxp.com, vkoul@kernel.org Cc: devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, joy.zou@nxp.com, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, peng.fan@nxp.com, robh+dt@kernel.org, shenwei.wang@nxp.com Subject: [PATCH v3 2/6] dmaengine: fsl-edma: fix spare build warning Date: Mon, 27 Nov 2023 17:55:38 -0500 Message-Id: <20231127225542.2744711-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231127225542.2744711-1-Frank.Li@nxp.com> References: <20231127225542.2744711-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0116.namprd05.prod.outlook.com (2603:10b6:a03:334::31) To VI1PR04MB4845.eurprd04.prod.outlook.com (2603:10a6:803:51::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM8PR04MB7858:EE_ X-MS-Office365-Filtering-Correlation-Id: b69202a7-6150-4691-6630-08dbef9c0a96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BpzL5kr+9yYT707s0AC1FRVGw6/b/uzZ4ZFcQPV0HFSchwLArgLLJEmybRr3Y+X+n8yO8SfD2MZGffdAr32RQOkYzA8M+pfGlTWHeHpl+QfmRvWFy6/A9k+fqQ/ylFupucyf8UV2nf+mJ5AHilwOzmaiZAScuFPKGwXMJOg0JVTGAlHkIuYgGpPc2mZBfS+IkgOMZS4CqaUafRjFnPqDA+VYzYnmaTlS2uK3s1Kz8zbjEYmV1oGQJroEr0oEGQtTy3KkzrlftK2re7j76TIdrLyBDyGdWZApSkwOrybeZ+9tTHT3OIHbb6fCZxC7S6Cxmn6CsGrdwdP/1G6gRnT+evssznLHAORTAX4UR/PoXYjKMiem0co/RkQcO4C+hqcXYHxH2WrS6Bzax8JLie4TNMr174/tL/ySnO38id882s6dlaO401LovyRTbyk3IrWHQUggD3G1U5wlrREqPilKPA+tvHHbGl/FidpXcXFrAtUEVVjx10xJA75/m5v21sQLi5LjItlp7OZtRgTwNmT8ys+VQbXJyrMYDaoYWKmCvuBHmoOIvsTQwIa9umpX9Wgrnr/QkBsUp33SOfuP5kpK12vwUAn3x/z5z7Ksl28txybXhSybFjtD+iAyGHHU1rz/Tc+ZADxKrfUNYYDzDmXGmgx5D17gqVIbPJsRJpGdmXs= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(396003)(136003)(346002)(366004)(376002)(230173577357003)(230273577357003)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2616005)(26005)(1076003)(6666004)(6506007)(8676002)(52116002)(4326008)(8936002)(6486002)(86362001)(5660300002)(478600001)(316002)(66946007)(66476007)(66556008)(38100700002)(83380400001)(6512007)(38350700005)(2906002)(41300700001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?a478hrzihM+oRmpZ+Eh7cv/0je8B6CzAVb1GAmBkkHuPOtebUaRwwlwm/pjq?= =?us-ascii?Q?c6Ojwame4XOI3xGlkQDEgphPTol6F0mKZTbd18QQny+vSzf3aPH0qNsLoHxh?= =?us-ascii?Q?AzuQEd85SzkPOy3SixF1/UOAQ2BAzDGaxBrEN97mnECkHn+rVJv5rbDwUckf?= =?us-ascii?Q?nJnAlVr0W6RlTazJHXsktd1B4aJ5TEW1uMQaBCwLeTC2Rcr5YqM361F8RuIf?= =?us-ascii?Q?5Vc5KNPhlJVU/TO2eT8PX4vZHJSmyHYK/hUa552H+h23MyX+iM5XdawNPRSs?= =?us-ascii?Q?dTDLqdMQPCoQYbirLmHqUxfrP7eoanv3vnnt8JH26wqIjoHINrsK7XxpYejr?= =?us-ascii?Q?EwZfRu9mHpjP0LcuF4AD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ii?Q?wnGiXsv9sTrj9QiOIMV39e+pH2wdqQPFccg6LPdUWcFDABFwZ2gi5ZVcz4ZV?= =?us-ascii?Q?6qC3OWkZ8cU7Zgd+1VNrLhK11NxyrXsUBahn1J4fIWSIVR/PLr7a1jTCwDTz?= =?us-ascii?Q?hHy3SHEW37xjLV5zJLLUIm539xVmEX8zBNHFOmEhmJcjyD/xa8VwFV+j3yfJ?= =?us-ascii?Q?YkkOhMBx6alKhTeQzelm+vMxPdbcUuj2zGxrUt9b34a9PAQZL8eNorigBGl5?= =?us-ascii?Q?FmmTN7Y0NnjEjclDFdyTNxwSfJbuL6ZZkugjYP1+Qui5qrXe4htffG/cCBy5?= =?us-ascii?Q?6EVyrK28fX8Kz/3/q4g=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b69202a7-6150-4691-6630-08dbef9c0a96 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4845.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 22:56:07.8650 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lC4fXkTvtstSODC2gEa3xpsDPixkOt7z379ttgSIEmQvUdOs0rTIMuULfW2yczNvfRw97q+r12y0xU8vrdn8Zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7858 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 27 Nov 2023 14:56:42 -0800 (PST) ../drivers/dma/fsl-edma-common.c:93:9: sparse: warning: cast removes address space '__iomem' of expression ../drivers/dma/fsl-edma-common.c:101:25: sparse: warning: cast removes address space '__iomem' of expression ... ../drivers/dma/fsl-edma-main.c:557:17: sparse: got restricted __le32 [usertype] Signed-off-by: Frank Li --- drivers/dma/fsl-edma-common.h | 6 ++++-- drivers/dma/fsl-edma-main.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl-edma-common.h b/drivers/dma/fsl-edma-common.h index ce779274d81e5..fb45c7d4c1f4c 100644 --- a/drivers/dma/fsl-edma-common.h +++ b/drivers/dma/fsl-edma-common.h @@ -243,11 +243,13 @@ struct fsl_edma_engine { #define edma_readl_chreg(chan, __name) \ edma_readl(chan->edma, \ - (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name)) + (void __iomem *)&(container_of(((__force void *)chan->tcd),\ + struct fsl_edma3_ch_reg, tcd)->__name)) #define edma_writel_chreg(chan, val, __name) \ edma_writel(chan->edma, val, \ - (void __iomem *)&(container_of(chan->tcd, struct fsl_edma3_ch_reg, tcd)->__name)) + (void __iomem *)&(container_of(((__force void *)chan->tcd),\ + struct fsl_edma3_ch_reg, tcd)->__name)) #define fsl_edma_get_tcd(_chan, _tcd, _field) ((_tcd)->_field) diff --git a/drivers/dma/fsl-edma-main.c b/drivers/dma/fsl-edma-main.c index f53b0ec17bcbc..86b293eba27c2 100644 --- a/drivers/dma/fsl-edma-main.c +++ b/drivers/dma/fsl-edma-main.c @@ -537,7 +537,7 @@ static int fsl_edma_probe(struct platform_device *pdev) fsl_chan->pdev = pdev; vchan_init(&fsl_chan->vchan, &fsl_edma->dma_dev); - edma_write_tcdreg(fsl_chan, 0, csr); + edma_write_tcdreg(fsl_chan, cpu_to_le32(0), csr); fsl_edma_chan_mux(fsl_chan, 0, false); } -- 2.34.1