From patchwork Tue Mar 28 11:06:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cai Huoqing X-Patchwork-Id: 75984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2127739vqo; Tue, 28 Mar 2023 04:08:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ax55PuJMOvmNKkKRljdqxN8MsEu4hhqEt5MR7RL2Gkzo7Z5lkDNrYtnRt8I2/jXZtCqPno X-Received: by 2002:a17:906:9bdb:b0:93c:81b9:a2b1 with SMTP id de27-20020a1709069bdb00b0093c81b9a2b1mr15488740ejc.62.1680001731334; Tue, 28 Mar 2023 04:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680001731; cv=none; d=google.com; s=arc-20160816; b=WeiVQgi8r1WOMEdHZqneuONsSpA1pg2s5HYGmo98y7M67F9xTmZ51VXlYRN1hl/p05 l+bx3UgbB3Tw27PuGCMf1BETl7ptRqKQ4Q7OoGhTeNqxy16TD9gDj5gtqEV500XkPBrL ZAe+HiZH6QAY4iL8k69oUpnqecHBnbfSASHvF+P/S08ApOWgY17YCC4lD7so3m9Rf8UV D/UPDFBTcLNxCz/DQtb99kcJJbvQi+bzdvp4EatJgJOA97sTaCl8S3H/pbRO4qDwMjil lA1gXGkpLUQhxCwPXhWx9cJuXs2e/N+SQjnhD3bxBS3r8J3heILZpW1+iqGnYAoUmn47 dSOg== 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=Y8D9sO9I+gaBvRQLJtfXH/K5nhza2Ci/mHxkKAkahbg=; b=SjGTXnwc4egYq89bKTob8lc6bJsPyetGSJMewdIGiSYQif9adh6y0OWKj5Mr3jix29 XS49m8Fqbt3wd4e0S3EqWNQr1Y/w1qsHFI2ZRdWNIPKnPyisoiBsCo4n/yLmyW4aMeEz Ff8B6lcDpFFQ2AO0ZbBSjyDJS13S4Z6YUJCofFvo1+gREcp8YvoKrs0oEvZ3TgPFsZWK 1cE0H88Nkqsycahu6oxbzom3nO1d/IkIV9wOAV+p2xwBobwlyLRJvAENg8xTkKSJOH1z yXN1TXPWYI3VJDkcvOei1S+JBIWJ54JIzBJD8cPex7/F4qa7wsJqnGga2/V34RzMvSsm c1DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=euwok7u6; 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 pg9-20020a170907204900b0092b61cd298asi30101083ejb.87.2023.03.28.04.08.27; Tue, 28 Mar 2023 04:08:51 -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=euwok7u6; 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 S230328AbjC1LGV (ORCPT + 99 others); Tue, 28 Mar 2023 07:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbjC1LGS (ORCPT ); Tue, 28 Mar 2023 07:06:18 -0400 Received: from out-63.mta1.migadu.com (out-63.mta1.migadu.com [95.215.58.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC6F272A for ; Tue, 28 Mar 2023 04:06:16 -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=1680001573; 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=Y8D9sO9I+gaBvRQLJtfXH/K5nhza2Ci/mHxkKAkahbg=; b=euwok7u6FQ4r8zkspXkYk0fOnl51bx0DY9e/YFW5p2M2HHij3/WdGDk3xEH9moRFvGDbRO E1N/fBuMI8FcMqoRD80EIZz7ypznK2jYnraCQlEPXrQLq8glpi59pxtzJkI9Nl0Ku/Wr/7 1L3vaMfz4di8biob1tbQAEkc19SUpx4= From: Cai Huoqing To: cai.huoqing@linux.dev Cc: Bjorn Helgaas , Logan Gunthorpe , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] PCI/P2PDMA: Fix the comments on pci_p2pmem_find_many() Date: Tue, 28 Mar 2023 19:06:10 +0800 Message-Id: <20230328110610.3824-1-cai.huoqing@linux.dev> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761609495414323713?= X-GMAIL-MSGID: =?utf-8?q?1761609495414323713?= Remove pci_p2pmem_dma() reference, because pci_p2pmem_dma() method is already removed. Signed-off-by: Cai Huoqing Reviewed-by: Logan Gunthorpe --- v1->v2: 1.remove pci_p2pmem_dma() reference directly instead of using pci_p2pdma_map_segment(). v1 link: https://lore.kernel.org/lkml/eea970cd-d781-9d4c-e020-9086505a4ba7@deltatee.com/ drivers/pci/p2pdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c index 9e8205572830..6cd98ffca198 100644 --- a/drivers/pci/p2pdma.c +++ b/drivers/pci/p2pdma.c @@ -746,8 +746,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()) + * the specified list of clients and shortest distance * @clients: array of devices to check (NULL-terminated) * @num_clients: number of client devices in the list *