On Tue, 22 Sep 2026 12:47:51 +0200, Ahmad Fatoum wrote:
> The cleanup infrastructure was added to barebox a while back in
> commit 332e3542e5ed ("Port Linux __cleanup() based guard
> infrastructure"), but without any DEFINE_FREE() handlers, so nothing
> could be passed to __free() so far.
>
> Let's start with malloc and kmalloc, so buffers can be tied to the
> scope they are used in:
>
> [...]
Applied, thanks!
[1/5] commands: rksecure: exit if invalid integer passed to -b
https://git.pengutronix.de/cgit/barebox/commit/?id=4daf5bda08bb (link may
not be stable)
[2/5] firmware-zynqmp: don't ignore the kstrtouint() result in parse_reg()
https://git.pengutronix.de/cgit/barebox/commit/?id=654e1801d6fc (link may
not be stable)
[3/5] include: compiler: make __must_check a yes-op
https://git.pengutronix.de/cgit/barebox/commit/?id=46ba4067337e (link may
not be stable)
[4/5] malloc: add __free() cleanup handlers
https://git.pengutronix.de/cgit/barebox/commit/?id=ec28aeaedf8f (link may
not be stable)
[5/5] test: self: add cleanup selftest
https://git.pengutronix.de/cgit/barebox/commit/?id=b303ec45203e (link may
not be stable)
Best regards,
--
Sascha Hauer <[email protected]>