summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-10-09 14:57:51 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-11-06 02:12:31 +0100
commit834b251b1db6b88b9364955196e5e32746e5ccc7 (patch)
tree751f310a5f5cdb198c37d48b06020ebf30440f0e /kernel
parentlist: test: check the size of every lists for list_cut_position*() (diff)
downloadlinux-834b251b1db6b88b9364955196e5e32746e5ccc7.tar.xz
linux-834b251b1db6b88b9364955196e5e32746e5ccc7.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/resource.c b/kernel/resource.c
index 55bc09f50e21..2d4208b2f62f 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -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,