Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2407590pxb; Sat, 25 Sep 2021 06:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoSe1H6KtMziCKZpbsRAmDUiuOQItKkv5xUrpGTbDZ1/FGZXhcDh0YctMRXN0ZIQxChs9k X-Received: by 2002:a17:907:209a:: with SMTP id pv26mr5905455ejb.407.1632576709015; Sat, 25 Sep 2021 06:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632576709; cv=none; d=google.com; s=arc-20160816; b=tcbJqCbNN4bwBnMUtapt7mQgPp++dPA8Xr1tLFtP5j2uNQ4tbuh0DwK5arAtFiBR9L JUSRpO4AVYlQY6bfti0rsKqc7Gf+ywQ3tujUQD1WytcDvrQsBO5On0fs95ryajXPc2OC rLlaRpzB7KctBFBMNRYNuVVqIF4vp4tugSTqqcPqncgH0e76gMXEqk+ukTnMDn5E3Zvb +x4cKpLSE3zfOKTPNYNItFnzBjGDhLExXsghnNaaGScQ1npIi0FpYV9/0cmABFjmH4eV F7tMr51dgQ0eK71bpGkiAc9/1OJk+PRlOki7SN8i+et8lX9k1AgpkCGehaYfwP76xXSP 1lCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=nU742y8ElH8i1O5nqHn1GdKie2AkUoJfpxzj0weCv5A=; b=sbJge8QE85H3rNB5PaqNLBffu20zXUv77wgasaDA3m+d6hnaEZELqm1XMVrM9CHMXJ 7o5aTQrRDC8qYVKjVPj9/1BXuNOD9pgHU3n8azzbdtepj39ARJtNvm0oZXuXCrmosT1K Sp1eR8/Mfsf3eYxfL6y4RrRfqUNHF/ynXq323vXR6jFdTSXlm0HJmHCFPB/aiH7ef1DK iX1j8uaOKnGKm6vDhNiMtdu9vrgXFAznzOBEeiB4i7NxMR4jEtlXPG8RckVozkfH+MrK ym6FGy45ZixR3J1Bg3L22/gCzNsozMxPI7tX8Ag/9o8cCfBZMxag0D1V867FyXLdn/o9 vRHw== 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 m7si2631424edc.242.2021.09.25.06.31.24; Sat, 25 Sep 2021 06:31:49 -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 S245241AbhIYNbO (ORCPT + 99 others); Sat, 25 Sep 2021 09:31:14 -0400 Received: from mx24.baidu.com ([111.206.215.185]:42702 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S245011AbhIYNbN (ORCPT ); Sat, 25 Sep 2021 09:31:13 -0400 Received: from BC-Mail-Ex07.internal.baidu.com (unknown [172.31.51.47]) by Forcepoint Email with ESMTPS id 4C28FA83C15D8E117A83; Sat, 25 Sep 2021 21:29:37 +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 21:29:37 +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 21:29:36 +0800 From: Cai Huoqing To: CC: Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , , Subject: [PATCH v2] scsi: aic7xxx: Fix a function name in comments Date: Sat, 25 Sep 2021 21:29:30 +0800 Message-ID: <20210925132931.95-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex24.internal.baidu.com (172.31.51.18) 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 --- v1->v2: *Fix dma_alloc_consistent() with dma_alloc_coherent(). drivers/scsi/aic7xxx/aic79xx_osm.h | 2 +- drivers/scsi/aic7xxx/aic7xxx_osm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.h b/drivers/scsi/aic7xxx/aic79xx_osm.h index 35ec24f28d2c..08dbca690975 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.h +++ b/drivers/scsi/aic7xxx/aic79xx_osm.h @@ -196,7 +196,7 @@ int ahd_dmamap_unload(struct ahd_softc *, bus_dma_tag_t, bus_dmamap_t); /* * XXX * ahd_dmamap_sync is only used on buffers allocated with - * the pci_alloc_consistent() API. Although I'm not sure how + * the dma_alloc_coherent() API. Although I'm not sure how * this works on architectures with a write buffer, Linux does * not have an API to sync "coherent" memory. Perhaps we need * to do an mb()? diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.h b/drivers/scsi/aic7xxx/aic7xxx_osm.h index 53240f53b654..bd9632a2f681 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.h +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.h @@ -209,7 +209,7 @@ int ahc_dmamap_unload(struct ahc_softc *, bus_dma_tag_t, bus_dmamap_t); /* * XXX * ahc_dmamap_sync is only used on buffers allocated with - * the pci_alloc_consistent() API. Although I'm not sure how + * the dma_alloc_coherent() API. Although I'm not sure how * this works on architectures with a write buffer, Linux does * not have an API to sync "coherent" memory. Perhaps we need * to do an mb()? -- 2.25.1