summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-08-24 13:57:15 -0600
committerTom Rini <[email protected]>2026-08-24 13:58:00 -0600
commit4d757bfe8ee09da03f215abd71cad73e123405d6 (patch)
tree0e6522aa7a415d6fbbbbef4783835addb56999e5 /include
parentfb79a4fcb09b49c6d6ef0a9a030e1abef32358e9 (diff)
parent94a09715bf4c8dfdefbefcd341d0c9da04c5a6c1 (diff)
Merge patch series "boot: image-fdt: Restore suppression of irrelevant ERROR message"
Jonas Karlman <[email protected]> says: This series changes the returned error code for lmb_alloc_mem() and lmb_free() may return to help restore suppression of the verbose ERROR messages when FDT memreserve and reserved-memory is being processed. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include')
-rw-r--r--include/lmb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/lmb.h b/include/lmb.h
index ed472e9ef2e..157a24baf97 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -124,7 +124,7 @@ struct lmb {
* Return: 0 on success, -ve value on failure
*
* When the allocation is of type @LMB_MEM_ALLOC_ADDR, the return value can
- * be -EINVAL if the requested memory region is not part of the LMB memory
+ * be -EFAULT if the requested memory region is not part of the LMB memory
* map, and -EEXIST if the requested region is already allocated.
*/
int lmb_alloc_mem(enum lmb_mem_type type, u64 align, phys_addr_t *addr,
@@ -168,6 +168,8 @@ int lmb_is_reserved_flags(phys_addr_t addr, int flags);
* @flags: Memory region attributes
*
* Return: 0 on success, negative error code on failure.
+ *
+ * The return value can be -EFAULT when the region has not been allocated.
*/
long lmb_free(phys_addr_t base, phys_size_t size, u32 flags);