Skip to contentSkip to conversation

resource: correct reallocate_resource() documentation

PATCH Applied Ilpo Järvinen 1 participant 1 message Oct 9, 2024

lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c +1 -1
index b730bd28b422..41747431b822 100644
@@ -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,
Signature · 1 line
2.39.5