Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2384573pxb; Sat, 19 Feb 2022 09:45:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLv26urpcVLKT/8nh4HMpOluDtZD54Vawbgm/Xf6PvWS1q2YjSRMnWcSt4zznj55PzYLqw X-Received: by 2002:a17:906:3708:b0:6cf:bb34:9d2e with SMTP id d8-20020a170906370800b006cfbb349d2emr10302965ejc.665.1645292718543; Sat, 19 Feb 2022 09:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645292718; cv=none; d=google.com; s=arc-20160816; b=dpVj2n4Fs0uzjz5wnkOzWjZGZKj7F+dWRgtG+1DxdkAVajx33Pbt/q/Rd6qvgshGbt m7VyLUa7oNPjEZodsdkMWsh/6G51zzz49rM+cwEDPNnsCM8mPN5dRujA1EeFbrtokfsR uDeErEhn2lau8txW26c+cOT0WgTxKKDf0+J2fHGhDhwScV3ol9Z4FPxE9B5bfU/XK1wq OBvwRdf/KkTpWPumMVormdQgEltxEf0X2CPvOetMOuS7hoV0tGznWp+ntVII9QPs30bJ BNG/wbIBT4U+bpFbt6Wfwa9/F34PdcZCSnWliVPQSwmOuX4r72ed5h32HorlfBfrPo62 Gb+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=/y0XKs0dIaXiTJCDs4pP0SCRY3JMgE3839iRkTVhm8s=; b=1FqpMoY4j1Af5rL2/wojAz/lXztT+sdCvd7CZtjhY/FvslNyKmvJFxyGmtb9Newzw3 Fcd+fUBJCEJkVFWDyTApRtDGwtlMzlpILsjLygpjH/UOFsfhZsDVBbtrm1SMlBd1iR8a a5tA+EECRFD6wCAZcNc/9K/yo8oWs2iT9pyCoGxkLWGGO+uLi4Dh84LO78oW7TMkOq7H QfEFvEiSRfxfI8mIwC+7WahtrGXiDLsHIDSpDbVzU+kZeZcCWL+CpaUC8wCtGMUoxGjc /h/sJWhDoz8UzKYhEppUZS8FpTuwudat/ShtXZyPwPV9Kr03oNclj1I3XCV9erS+aUAw x8Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B82Gyxmk; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8si7752964edv.509.2022.02.19.09.44.52; Sat, 19 Feb 2022 09:45:18 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=B82Gyxmk; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241076AbiBSA6R (ORCPT + 99 others); Fri, 18 Feb 2022 19:58:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241049AbiBSA52 (ORCPT ); Fri, 18 Feb 2022 19:57:28 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1FF902804ED for ; Fri, 18 Feb 2022 16:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645232204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=/y0XKs0dIaXiTJCDs4pP0SCRY3JMgE3839iRkTVhm8s=; b=B82Gyxmkfy2SqRdkCwxfRjN417yqk8pq9S5683KjeVPDnj/lxWTU6RA3tZF/0w5DE67T10 l7jQauckz8xrj59yH96TCviTLeK6N+YUzuYTcWBKqI4/pMibX2C4LK9CTz3Z9M3NdwszOc VGtQwHKxV1LtQ49uW3qfbmEpteT5ZXo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-187-d1x5YKnqPheP2aWNdoPuLg-1; Fri, 18 Feb 2022 19:56:40 -0500 X-MC-Unique: d1x5YKnqPheP2aWNdoPuLg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7E74E1006AA3; Sat, 19 Feb 2022 00:56:37 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id E55B062D4E; Sat, 19 Feb 2022 00:56:28 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, hch@lst.de, cl@linux.com, 42.hyeyoo@gmail.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, David.Laight@ACULAB.COM, david@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, steffen.klassert@secunet.com, netdev@vger.kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, linux-s390@vger.kernel.org, michael@walle.cc, linux-i2c@vger.kernel.org, wsa@kernel.org Subject: [PATCH 18/22] net: ethernet: mtk-star-emac: Don't use GFP_DMA when calling dmam_alloc_coherent() Date: Sat, 19 Feb 2022 08:52:17 +0800 Message-Id: <20220219005221.634-19-bhe@redhat.com> In-Reply-To: <20220219005221.634-1-bhe@redhat.com> References: <20220219005221.634-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dmam_alloc_coherent() uses struct dma_devres to manage data, and call dma_alloc_attrs() to allocate cohenrent DMA memory, so it's redundent to specify GFP_DMA when calling. Signed-off-by: Baoquan He --- drivers/net/ethernet/mediatek/mtk_star_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c b/drivers/net/ethernet/mediatek/mtk_star_emac.c index 89ca7960b225..55b95f51ac75 100644 --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c @@ -1533,7 +1533,7 @@ static int mtk_star_probe(struct platform_device *pdev) priv->ring_base = dmam_alloc_coherent(dev, MTK_STAR_DMA_SIZE, &priv->dma_addr, - GFP_KERNEL | GFP_DMA); + GFP_KERNEL); if (!priv->ring_base) return -ENOMEM; -- 2.17.2