summaryrefslogtreecommitdiff
path: root/include/bloblist.h
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2024-02-03 08:36:22 -0800
committerTom Rini <[email protected]>2024-02-29 09:24:22 -0500
commit1ef43f3bf20a4a9508c299a738d01faa3dc3ce95 (patch)
treef433886d55930ffe50ed879f8bb3f60dc4ef9884 /include/bloblist.h
parent67254214930cd2cb52279b01690c1f820a7f83db (diff)
bloblist: refactor of bloblist_reloc()
The current bloblist pointer and size can be retrieved from global data, so we don't need to pass them from the function arguments. This change also help to remove all external access of gd->bloblist outside of bloblist module. Signed-off-by: Raymond Mao <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include/bloblist.h')
-rw-r--r--include/bloblist.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/bloblist.h b/include/bloblist.h
index cc78259e5a9..0ae079d62aa 100644
--- a/include/bloblist.h
+++ b/include/bloblist.h
@@ -426,11 +426,11 @@ const char *bloblist_tag_name(enum bloblist_tag_t tag);
* bloblist_reloc() - Relocate the bloblist and optionally resize it
*
* @to: Pointer to new bloblist location (must not overlap old location)
- * @to_size: New size for bloblist (must be larger than from_size)
- * @from: Pointer to bloblist to relocate
- * @from_size: Size of bloblist to relocate
+ * @to_size: New size for bloblist
+ * Return: 0 if OK, -ENOSPC if the new size is small than the bloblist total
+ * size.
*/
-void bloblist_reloc(void *to, uint to_size, void *from, uint from_size);
+int bloblist_reloc(void *to, uint to_size);
/**
* bloblist_init() - Init the bloblist system with a single bloblist