Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/memblock: fix comment for memblock_isolate_range()

The isolated range is [*@start_rgn, *@end_rgn - 1], while the comment says
"the end region inside the range" is *@end_rgn.

Let's correct it.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240507075833.6346-4-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>

authored by

Wei Yang and committed by
Mike Rapoport (IBM)
3aca2cea f6df89c3

+2 -1
+2 -1
mm/memblock.c
··· 777 777 * Walk @type and ensure that regions don't cross the boundaries defined by 778 778 * [@base, @base + @size). Crossing regions are split at the boundaries, 779 779 * which may create at most two more regions. The index of the first 780 - * region inside the range is returned in *@start_rgn and end in *@end_rgn. 780 + * region inside the range is returned in *@start_rgn and the index of the 781 + * first region after the range is returned in *@end_rgn. 781 782 * 782 783 * Return: 783 784 * 0 on success, -errno on failure.