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

Configure Feed

Select the types of activity you want to include in your feed.

resource: correct reallocate_resource() documentation

reallocate_resource() documentation claims constraint is about "the size
and alignment" but the size is provided in another parameter. Instead of
size, constraint has the allowed memory range (min, max) so change the
wording to reflect that.

Link: https://lkml.kernel.org/r/20241009125751.8090-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Ilpo Järvinen and committed by
Andrew Morton
834b251b 5a3c9366

+1 -1
+1 -1
kernel/resource.c
··· 738 738 * @root: root resource descriptor 739 739 * @old: resource descriptor desired by caller 740 740 * @newsize: new size of the resource descriptor 741 - * @constraint: the size and alignment constraints to be met. 741 + * @constraint: the memory range and alignment constraints to be met. 742 742 */ 743 743 static int reallocate_resource(struct resource *root, struct resource *old, 744 744 resource_size_t newsize,