From: "Zi Yan" <ziy@nvidia.com>
To: "zhaozhengzhuo" <zhaozhengzhuo@uniontech.com>,
"Andrew Morton" <akpm@linux-foundation.org>, <linux-mm@kvack.org>
Cc: "David Hildenbrand" <david@kernel.org>,
"Matthew Brost" <matthew.brost@intel.com>,
"Joshua Hahn" <joshua.hahnjy@gmail.com>,
"Rakie Kim" <rakie.kim@sk.com>,
"Byungchul Park" <byungchul@sk.com>,
"Gregory Price" <gourry@gourry.net>,
"Ying Huang" <ying.huang@linux.alibaba.com>,
"Alistair Popple" <apopple@nvidia.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mm/migrate_device: fix function name in kernel-doc
Date: Tue, 01 Sep 2026 21:57:24 -0400 [thread overview]
Message-ID: <DL4GHQ8J08N5.6G85VESOPSTY@nvidia.com> (raw)
In-Reply-To: <7D206FC95BDCAA0F+20260901065131.1759298-1-zhaozhengzhuo@uniontech.com>
On Tue Sep 1, 2026 at 2:51 AM EDT, zhaozhengzhuo wrote:
> The kernel-doc for migrate_device_range() says that migrate_vma_setup()
> is similar to itself. Refer to migrate_device_range() as the subject of
> the comparison, making the distinction between virtual-address-based and
> device-PFN-based migration clear.
>
> Fixes: e778406b40db ("mm/migrate_device.c: add migrate_device_range()")
> Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
> ---
> mm/migrate_device.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/mm/migrate_device.c b/mm/migrate_device.c
> index 009bfa8b212d..4a614a3488ed 100644
> --- a/mm/migrate_device.c
> +++ b/mm/migrate_device.c
> @@ -1398,9 +1398,9 @@ static unsigned long migrate_device_pfn_lock(unsigned long pfn)
> * @start: starting pfn in the range to migrate.
> * @npages: number of pages to migrate.
> *
> - * migrate_vma_setup() is similar in concept to migrate_vma_setup() except that
> - * instead of looking up pages based on virtual address mappings a range of
> - * device pfns that should be migrated to system memory is used instead.
> + * migrate_device_range() is similar in concept to migrate_vma_setup(), except
> + * that instead of looking up pages based on virtual address mappings a range
> + * of device pfns that should be migrated to system memory is used instead.
While at it, can you also drop the last instead? Since the sentence is
... instead of ... instead.
> *
> * This is useful when a driver needs to free device memory but doesn't know the
> * virtual mappings of every page that may be in device memory. For example this
With that fixed, feel free to add:
Reviewed-by: Zi Yan <ziy@nvidia.com>
Thanks.
--
Best Regards,
Yan, Zi
prev parent reply other threads:[~2026-09-02 1:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 6:51 [PATCH] mm/migrate_device: fix function name in kernel-doc zhaozhengzhuo
2026-09-02 1:57 ` Zi Yan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DL4GHQ8J08N5.6G85VESOPSTY@nvidia.com \
--to=ziy@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=apopple@nvidia.com \
--cc=byungchul@sk.com \
--cc=david@kernel.org \
--cc=gourry@gourry.net \
--cc=joshua.hahnjy@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=matthew.brost@intel.com \
--cc=rakie.kim@sk.com \
--cc=ying.huang@linux.alibaba.com \
--cc=zhaozhengzhuo@uniontech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox