Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2413183pxb; Sat, 25 Sep 2021 06:41:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDniREF+M1GtLM3vEsYQNls6JTgmuTteLTsaJ11499XsQrfb1xpuPZrTVWyhF6QBew/xtG X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr11417369eds.131.1632577260267; Sat, 25 Sep 2021 06:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632577260; cv=none; d=google.com; s=arc-20160816; b=PX7SfRABaOM1Ae//lfNkB7l72o4zCI5Y/WQj7zfiC7FPKR3EgyQqnLzomxMrSB10Ow BxY/16+56nz5VV3Zai9kKk5bEuzKoVd7uVqom3KInzEiKVcp+jOX0yXMnVhGGRx2/97B xtCZ+t2/xkl7nUOG1jkjt+iIqPdNCVyv+6MJWnCSrijEIrpMnwqUQTBX7q9FMfrkiTCM w7EGxT+5VZGOQYUPvOTuhAZh3nn/28PqZ3XtASw1SHUY4BnDGcWkr200URiHBrvjc8zV Z6ZDEUwKNFGS/7srhYytR5ut1QdUITw195fZPZ1/f1kJWfmaMu/44uYhQXSHD4hIv4p+ 1q5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Cv2k95zHxaX0pG2w4+alB47s8FxO3/BryvqarR/cU/A=; b=EOdEOwx/Z/9SVfcFOjCDIsqo1YQH2KHhwBg5yKzKK/ledA5pbUvBln4WNPPuU2/T9o MnSyqY8h+pkgxMYCYHINS9LQ5azu6jRvlzzyGpPJi4aVy583KLB11txPsxFT4pg73m9B BN81sG2bAFoJ0anyfMUO3zpZtmuZpZsl8AwGYjybbPr6q7vSuuSmRP15Clhp4AGdLFBD fblzDYFen25WUGlqP40OdAQKk+uTymw6hZD/GitVpyuB4ZluU+7z+hYEkWdRmhjr8ZC9 AEnjc6eVbvxzDh1n61Ds9HhLaNDE5kyF8i7TRTFHBSqDXlyXdQtRMB68SqONPfciviTE SMoA== 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 d5si16152759ejd.235.2021.09.25.06.40.36; Sat, 25 Sep 2021 06:41:00 -0700 (PDT) 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 S245542AbhIYNkv (ORCPT + 99 others); Sat, 25 Sep 2021 09:40:51 -0400 Received: from mx24.baidu.com ([111.206.215.185]:49280 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S245082AbhIYNku (ORCPT ); Sat, 25 Sep 2021 09:40:50 -0400 Received: from BC-Mail-Ex07.internal.baidu.com (unknown [172.31.51.47]) by Forcepoint Email with ESMTPS id AE9C27F65771C2354875; Sat, 25 Sep 2021 20:50:58 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-EX07.internal.baidu.com (172.31.51.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 25 Sep 2021 20:50:58 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 25 Sep 2021 20:50:57 +0800 From: Cai Huoqing To: CC: Chris Snook , "David S. Miller" , Jakub Kicinski , Michael Chan , Francois Romieu , "Steve Glendinning" , , Subject: [PATCH 2/4] net: broadcom: Fix a function name in comments Date: Sat, 25 Sep 2021 20:50:39 +0800 Message-ID: <20210925125042.1629-2-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210925125042.1629-1-caihuoqing@baidu.com> References: <20210925125042.1629-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex01.internal.baidu.com (10.127.64.11) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use dma_alloc_coherent() instead of pci_alloc_consistent(), because only dma_alloc_coherent() is called here. Signed-off-by: Cai Huoqing --- drivers/net/ethernet/broadcom/b44.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c index fa784953c601..38b465452902 100644 --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c @@ -1200,7 +1200,7 @@ static int b44_alloc_consistent(struct b44 *bp, gfp_t gfp) bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size, &bp->rx_ring_dma, gfp); if (!bp->rx_ring) { - /* Allocation may have failed due to pci_alloc_consistent + /* Allocation may have failed due to dma_alloc_coherent insisting on use of GFP_DMA, which is more restrictive than necessary... */ struct dma_desc *rx_ring; -- 2.25.1