Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2496967rwl; Mon, 27 Mar 2023 00:38:08 -0700 (PDT) X-Google-Smtp-Source: AKy350ZA5gLn40Mz7b+Lm/CaEDdHRt4nbzKAy2GVmy6zI3eJEIdtfreV2qNkKVYfserViXHu9/ob X-Received: by 2002:aa7:c1d7:0:b0:4fa:ba31:6c66 with SMTP id d23-20020aa7c1d7000000b004faba316c66mr12047671edp.42.1679902688689; Mon, 27 Mar 2023 00:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679902688; cv=none; d=google.com; s=arc-20160816; b=cSxvSbOrXBd1txxpjAAmtkmBpkltrYNuiz8EdOXKFr5ZXnZT6ZLDcrtiuV2jn7Ek08 TOLqYzpzpsotEQvZYBe7KbzA0Twn71d7zs6Y4jBXgbhyOi9sSijGUY0xEeHBkmsaiy1E pakLLO6IC6rflAlOfGc0iikyeQvxRj2qBE5AneD4v0flDrlR1jD2TvgRnUlItsjZ1SXZ nZb8yxxZErSDVmCB692mtdWVA4xhpNP0rug0n05z24S1JuutEJvQaUrje9NkHrXSTOh6 v992qE4vFB/tHN+s7BGnrGJX3i8XDg0NN8qICf2D5JnXmZmHL/koCtAUqe+HvPnM9mrK SDbA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020aa7df08000000b004aab6380df0si10397352edy.548.2023.03.27.00.37.44; Mon, 27 Mar 2023 00:38:08 -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 S232613AbjC0Hgy (ORCPT + 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 ); 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 ; 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 To: cai.huoqing@linux.dev Cc: Bjorn Helgaas , Logan Gunthorpe , 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: X-Mailing-List: linux-kernel@vger.kernel.org Use pci_p2pdma_map_segment() instead of pci_p2pmem_dma(), because pci_p2pmem_dma() is already removed. Signed-off-by: Cai Huoqing --- 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()) * @clients: array of devices to check (NULL-terminated) * @num_clients: number of client devices in the list * -- 2.34.1