Message ID | 20230327073604.5449-1-cai.huoqing@linux.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1333233vqo; Mon, 27 Mar 2023 00:38:44 -0700 (PDT) X-Google-Smtp-Source: AKy350abRoCvxBE3z89UtBF4nMIoqHsVR9R8Dew4ZJwnFz0pHTUVcljKdTotcLh1/iWgigqBt1q1 X-Received: by 2002:a17:907:8b88:b0:925:f788:d76d with SMTP id tb8-20020a1709078b8800b00925f788d76dmr11638031ejc.27.1679902724302; Mon, 27 Mar 2023 00:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679902724; cv=none; d=google.com; s=arc-20160816; b=LWe4blL026oQ3bSyCDvGL2T2SlIStbAogtsy9ubm22ttN5NVzTG/Xm5X1C4wDY24/k VXTWNawCN3pFZF5SDe7XF49ZmV/P3fDE7JsE362J9DiMWi/EosZ9uaQKVHlLrW/CRPnV R2m5qCKNsHL2bpMfZyEcjhuNAd6KNfnLN22jZxDVJQsLQ0LhQS0fGyzv88Vvuwq1h1Mw mOI5mmb3Tm1FuEpD6YGZrLXeN7IiNhqFX+bOFE222QgVk5sG4PWK9jSk9+Wf8vuEbwgk KdQsn549k0qsoKzeiptyD518ewkJc+K+wADo27y13mL1enUuip7We1li4wqRPlGiKqnF BYBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fp2UGoKTvW/kaP4d5q8HelXdsHSzblTbfWgf46WTYd0=; b=B+/Syw0neViNbu0viuEodY7+CQLWj9BTvm+//O9NXLnj6ZuIAmjC8en9k0Uogyw9Ln FLnRFd7KJ2W0QrtBAyMwpqKSXKXgoFKD0K+D9WuFDy9EA5hq5/Xfcn51Onoh7Yiq5VL/ +MMSSNm0y7oof0zImNM4MYxGMyoynLRK+cbfICyEFvGEtrIwv0FSVEP5UoM/4i04lic3 2HlPnwWEg/KlJy1t4KguCczid+LhGTcTunEX3QJO7UWNrddcox17GnqoSMGj+m26m6UK vpPD0uJVCa1lvtVGvVmmBFtJSGczZ1K0aKqW121obpstyHUr6WXGFXkECS15Dcm0JP1d eHEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EH8MBW5P; 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=linux.dev Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id op25-20020a170906bcf900b0093afba24ff1si5528430ejb.11.2023.03.27.00.38.20; Mon, 27 Mar 2023 00:38:44 -0700 (PDT) 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=@linux.dev header.s=key1 header.b=EH8MBW5P; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232276AbjC0Hgy (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Mon, 27 Mar 2023 03:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjC0Hgs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Mar 2023 03:36:48 -0400 Received: from out-7.mta0.migadu.com (out-7.mta0.migadu.com [91.218.175.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4734C4EF7 for <linux-kernel@vger.kernel.org>; Mon, 27 Mar 2023 00:36:27 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1679902568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fp2UGoKTvW/kaP4d5q8HelXdsHSzblTbfWgf46WTYd0=; b=EH8MBW5PJCzwaboGFaolhM2uo+0sG3UzIlZCJxOEZ/XMw35SH4MR16wtNAF0kuxnf2jOP4 +LCSpY9kaEWd4ro/i2bdKhkyuo7uus9rsd4jpeT4oYQAvR08wTiNUpvJuqu3ex93D4+oxD aHFZxxCWLdV7pbO4/12fdQYM+u18c0U= From: Cai Huoqing <cai.huoqing@linux.dev> To: cai.huoqing@linux.dev Cc: Bjorn Helgaas <bhelgaas@google.com>, Logan Gunthorpe <logang@deltatee.com>, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI/P2PDMA: Fix the comments on pci_p2pmem_find_many() Date: Mon, 27 Mar 2023 15:36:04 +0800 Message-Id: <20230327073604.5449-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TO_EQ_FM_DIRECT_MX autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761505678921256977?= X-GMAIL-MSGID: =?utf-8?q?1761505678921256977?= |
Series |
PCI/P2PDMA: Fix the comments on pci_p2pmem_find_many()
|
|
Commit Message
Cai Huoqing
March 27, 2023, 7:36 a.m. UTC
Use pci_p2pdma_map_segment() instead of pci_p2pmem_dma(),
because pci_p2pmem_dma() is already removed.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
---
drivers/pci/p2pdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 2023-03-27 01:36, Cai Huoqing wrote: > Use pci_p2pdma_map_segment() instead of pci_p2pmem_dma(), > because pci_p2pmem_dma() is already removed. > > Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev> Thanks for noticing this! > --- > drivers/pci/p2pdma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c > index 9e8205572830..4f1798ecf38f 100644 > --- a/drivers/pci/p2pdma.c > +++ b/drivers/pci/p2pdma.c > @@ -747,7 +747,7 @@ EXPORT_SYMBOL_GPL(pci_has_p2pmem); > /** > * pci_p2pmem_find_many - find a peer-to-peer DMA memory device compatible with > * the specified list of clients and shortest distance (as determined > - * by pci_p2pmem_dma()) > + * by pci_p2pdma_map_segment()) Maybe we should just remove the reference to pci_p2pdma_map_segment() completely. I don't see how that function helps the reader any more and is really different section of the API anyway. Logan
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 9e8205572830..4f1798ecf38f 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -747,7 +747,7 @@ EXPORT_SYMBOL_GPL(pci_has_p2pmem); /** * pci_p2pmem_find_many - find a peer-to-peer DMA memory device compatible with * the specified list of clients and shortest distance (as determined - * by pci_p2pmem_dma()) + * by pci_p2pdma_map_segment()) * @clients: array of devices to check (NULL-terminated) * @num_clients: number of client devices in the list *