]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
resource: correct reallocate_resource() documentation
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 9 Oct 2024 12:57:51 +0000 (15:57 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Nov 2024 01:12:31 +0000 (17:12 -0800)
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>
kernel/resource.c

index 55bc09f50e211a180bfe50ba21b1958d98e3ec21..2d4208b2f62fa39c3098b96626f287ce1fe502f0 100644 (file)
@@ -738,7 +738,7 @@ EXPORT_SYMBOL_GPL(find_resource_space);
  * @root: root resource descriptor
  * @old:  resource descriptor desired by caller
  * @newsize: new size of the resource descriptor
- * @constraint: the size and alignment constraints to be met.
+ * @constraint: the memory range and alignment constraints to be met.
  */
 static int reallocate_resource(struct resource *root, struct resource *old,
                               resource_size_t newsize,