[PATCH 00/19] driver: add devm_ support
Sascha Hauer
s.hauer at pengutronix.de
Mon Nov 23 23:00:49 PST 2026
On Wed, 28 Oct 2026 10:14:34 +0100, Ahmad Fatoum wrote:
> We currently have only devm_ macro fakery that leaks resources on device
> removal. This is flagged by static analysis and requires modifications
> to ported kernel code that uses devres-managed actions.
>
> Implement destructor support into talloc and use it implement a subset
> of the Linux devm functionality.
>
> [...]
Applied, thanks!
[01/19] commands: devunbind: refuse to unbind devices that were never bound
https://git.pengutronix.de/cgit/barebox/commit/?id=2f3cd537f711 (link may not be stable)
[02/19] commands: devunbind: don't poison the active list entry
https://git.pengutronix.de/cgit/barebox/commit/?id=516d8b18e000 (link may not be stable)
[03/19] talloc: remove unused talloc_steal() and talloc_steal_children()
https://git.pengutronix.de/cgit/barebox/commit/?id=608185e1b26b (link may not be stable)
[04/19] talloc: free children in a loop
https://git.pengutronix.de/cgit/barebox/commit/?id=583dff63c5c3 (link may not be stable)
[05/19] talloc: add support for destructors
https://git.pengutronix.de/cgit/barebox/commit/?id=97a3e539694d (link may not be stable)
[06/19] test: self: talloc: add destructor tests
https://git.pengutronix.de/cgit/barebox/commit/?id=8a9d90d47fe4 (link may not be stable)
[07/19] talloc: add talloc_run_destructors()
https://git.pengutronix.de/cgit/barebox/commit/?id=72ca334c8648 (link may not be stable)
[08/19] mfd: pca9450: don't free device-managed memory in probe error path
https://git.pengutronix.de/cgit/barebox/commit/?id=b0acfeb7be50 (link may not be stable)
[09/19] video: backlight-pwm: allocate brightness levels with devm_kcalloc
https://git.pengutronix.de/cgit/barebox/commit/?id=e4cdb5d02ffc (link may not be stable)
[10/19] driver: implement devm_ allocation helpers on top of talloc
https://git.pengutronix.de/cgit/barebox/commit/?id=1d626b92b4e4 (link may not be stable)
[11/19] devres: Provide kmalloc_obj*-style API for devm_kmalloc
https://git.pengutronix.de/cgit/barebox/commit/?id=237b2c2b0955 (link may not be stable)
[12/19] memory: atmel-ebi: use generic devm_kzalloc()
https://git.pengutronix.de/cgit/barebox/commit/?id=f1302bba9a41 (link may not be stable)
[13/19] driver: add devm_add_action()
https://git.pengutronix.de/cgit/barebox/commit/?id=82bcb51620df (link may not be stable)
[14/19] test: self: add devm_ selftest
https://git.pengutronix.de/cgit/barebox/commit/?id=a1ba6e668264 (link may not be stable)
[15/19] driver: add devm_request_mem_resource()
https://git.pengutronix.de/cgit/barebox/commit/?id=7d647338f155 (link may not be stable)
[16/19] driver: make dev_platform_ioremap_resource() device-managed
https://git.pengutronix.de/cgit/barebox/commit/?id=01c980e30a33 (link may not be stable)
[17/19] treewide: rename dev_platform_ioremap_resource() to devm_platform_ioremap_resource()
https://git.pengutronix.de/cgit/barebox/commit/?id=d168aa2f7b12 (link may not be stable)
[18/19] driver: make dev_platform_get_and_ioremap_resource() device-managed
https://git.pengutronix.de/cgit/barebox/commit/?id=15f1ac31b61c (link may not be stable)
[19/19] serial: stm32: request the registers with devm_request_mem_resource()
https://git.pengutronix.de/cgit/barebox/commit/?id=eea493319a0a (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list