Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp568056pxu; Fri, 11 Dec 2020 08:55:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJf9vZP5MmaUknbH+qgbAmuYcseAVvIczpH3vsbizIwTtbEp+VTF66CkqQByM9JgCiSLb9 X-Received: by 2002:a17:906:17d9:: with SMTP id u25mr12025079eje.34.1607705708718; Fri, 11 Dec 2020 08:55:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607705708; cv=none; d=google.com; s=arc-20160816; b=kRlZUxLHkH/8JomNuIhpoTBo+bFGzxRdyRPLdn6rTrEnHtXlDT8EpnK/DvG3MTuXgY 2pfqRzcK3vIM6pgq5g5FXA7fnaOSv34bid3YJ0A4dMNfwr4wFHvRwnktLerKsVqvbHcG QkDw5gjH1j9eoyHVQDHi81RwJxNYLSwyVbZ+NXoN8ZLdCaybnpYM2UCs1us+aAOywumE ATfZfSQMfqr+2JAq1ETBPYfQU4Pi2rKt0Mn8FOC/jam73dGi1pm4LcIMg5srJr31fFfi HUkHxe1mJ/n49Ew+61jOYIEk7tZsdKRjgMa+g0I0vKfXjY7V1jGjIht6wV8v0zvtMGl3 YdcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=CxQ1VOs3loimINjWgl8N/rG+x9gvO57JISMObdUE1gQ=; b=he1WKUGp9BSNgMWsJi3pkb5Z3/dHAVfij9rrwzoOQYeUDgudY576/7eYRtPlLmYcEJ j/aomTDJNa/qFOvaxRgM094/Xu6nM1Dgq3ocXBJ+8MDIigUa9oocCnTXIIH5liTdt8C/ xF76FT7BDtnh+MbC1VI1SFgmWx988wOnf40qYBYMjWcsX2/DvS/s6AwVzRGJLH/cPjGg NC+hfd/k8gbh7NuNpoqfe98otkklisvQiAwsGOjSXgnHTjorjbiScThXYalCb9Emzgej uZi6SWkyU265zwXW81alUF4NqegCr3OVTy7eqb7IJyeJcdHzDEvHbQP0yWICeGBGozBb J4QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si4884937edj.405.2020.12.11.08.54.46; Fri, 11 Dec 2020 08:55:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392172AbgLKIuK (ORCPT + 99 others); Fri, 11 Dec 2020 03:50:10 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:45276 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2392566AbgLKItj (ORCPT ); Fri, 11 Dec 2020 03:49:39 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-05 (Coremail) with SMTP id zQCowAAHRHhoMtNfnSkDAA--.10027S2; Fri, 11 Dec 2020 16:48:40 +0800 (CST) From: Xu Wang To: pantelis.antoniou@gmail.com, davem@davemloft.net, kuba@kernel.org, linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] net: fs_enet: remove casting dma_alloc_coherent Date: Fri, 11 Dec 2020 08:48:37 +0000 Message-Id: <20201211084837.85307-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAAHRHhoMtNfnSkDAA--.10027S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw15CFWrWFyUJryUtr15CFg_yoWfZwcE9r srXrn3Ww47tryFya18KrW3Zr929FWDZa1rXF4jgayaqry7Zrn8X34UXr1fGF13ur48uFZ8 Zw13tFy3A34jgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xYjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4UJVWxJr 1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkIecxEwVAFwVW8ZwCF04k2 0xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI 8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41l IxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIx AIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUxb4SUUUUU X-Originating-IP: [124.16.141.241] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwcHA1z4jporbQAAs+ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang --- drivers/net/ethernet/freescale/fs_enet/mac-fcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c b/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c index b47490be872c..17f757c0bb85 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c @@ -147,7 +147,7 @@ static int allocate_bd(struct net_device *dev) struct fs_enet_private *fep = netdev_priv(dev); const struct fs_platform_info *fpi = fep->fpi; - fep->ring_base = (void __iomem __force *)dma_alloc_coherent(fep->dev, + fep->ring_base = dma_alloc_coherent(fep->dev, (fpi->tx_ring + fpi->rx_ring) * sizeof(cbd_t), &fep->ring_mem_addr, GFP_KERNEL); -- 2.17.1