diff options
| author | Tom Rini <[email protected]> | 2025-09-26 11:55:55 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-09-26 11:55:55 -0600 |
| commit | 14b784aaf2a96b0f597b4fc3c5a3b4cb70f18182 (patch) | |
| tree | 7b9e64d5b5c8bbceda412f94d2fb18bd18f9e4ed /include/malloc.h | |
| parent | edce3c2905a2a9561d10bdb03e587a93e273758d (diff) | |
| parent | 07588f4ad9b80e73726fd7ecb8e17e21785322a0 (diff) | |
Merge patch series "exports overhaul"
Rasmus Villemoes <[email protected]> says:
This all started from me wondering "why does this standalone app end
up being so huge"? Oh, it essentially links in its own standard C
library to get strlen() and snprintf(). Which then led to asking "why
don't we export all those standard C functions when we have them
anyway?".
CI has chewed on these and seem happy - it was CI which told me about
the necessity of [1/9]: https://github.com/u-boot/u-boot/pull/813
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/malloc.h')
| -rw-r--r-- | include/malloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/malloc.h b/include/malloc.h index 9e0be482416..3979fc62830 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -904,11 +904,11 @@ void *realloc_simple(void *ptr, size_t size); # define mALLOPt dlmallopt /* Ensure that U-Boot actually uses these too */ -#define calloc dlcalloc +#define calloc(x,y) dlcalloc(x,y) #define free(ptr) dlfree(ptr) #define malloc(x) dlmalloc(x) -#define memalign dlmemalign -#define realloc dlrealloc +#define memalign(a,x) dlmemalign(a,x) +#define realloc(p,x) dlrealloc(p,x) #define valloc dlvalloc #define pvalloc dlpvalloc #define mallinfo() dlmallinfo() |
