[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241009125751.8090-1-ilpo.jarvinen@linux.intel.com>
Date: Wed, 9 Oct 2024 15:57:51 +0300
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Cc: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Subject: [PATCH 1/1] 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.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
---
kernel/resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/resource.c b/kernel/resource.c
index b730bd28b422..41747431b822 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -746,7 +746,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,
--
2.39.5
Powered by blists - more mailing lists