From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 2/3] malloc: define malloc_add_pool outside of TLSF
Date: Thu, 11 Dec 2025 21:24:28 +0100 [thread overview]
Message-ID: <20251211202435.1626910-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20251211202435.1626910-1-a.fatoum@pengutronix.de>
This function is currently being used by the EFI payload init ode.
Define a stub to allow allyesconfig to build it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2:
- new change
---
include/malloc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/malloc.h b/include/malloc.h
index 31a2ff1b3d8e..bee998cd9079 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -26,6 +26,9 @@ void *malloc_add_pool(void *mem, size_t bytes);
void malloc_register_store(void (*cb)(size_t bytes));
bool malloc_store_is_registered(void);
#else
+#include <linux/bug.h>
+static inline void *malloc_add_pool(void *mem, size_t bytes) { BUG(); }
+static inline void malloc_register_store(void (*cb)(size_t bytes)) { BUG(); }
static inline bool malloc_store_is_registered(void) { return false; }
#endif
--
2.47.3
next prev parent reply other threads:[~2025-12-11 20:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 20:24 [PATCH v2 1/3] fixup! efi: add option to generate vfat file for barebox.efi Ahmad Fatoum
2025-12-11 20:24 ` Ahmad Fatoum [this message]
2025-12-11 20:24 ` [PATCH v2 3/3] efi: payload: enable build for sandbox Ahmad Fatoum
2025-12-15 7:34 ` [PATCH v2 1/3] fixup! efi: add option to generate vfat file for barebox.efi Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251211202435.1626910-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox