Page MenuHomeFreeBSD

LinuxKPI: devres: divorce dem_kfree from lkpi_devm_kmalloc_release
ClosedPublic

Authored by bz on Aug 21 2025, 9:00 AM.
Tags
None
Referenced Files
F149008828: D52082.id161642.diff
Sat, Mar 21, 5:42 PM
Unknown Object (File)
Mon, Mar 16, 9:54 AM
Unknown Object (File)
Thu, Mar 5, 8:04 AM
Unknown Object (File)
Sun, Mar 1, 8:30 PM
Unknown Object (File)
Sun, Mar 1, 2:48 AM
Unknown Object (File)
Feb 7 2026, 8:24 PM
Unknown Object (File)
Feb 7 2026, 5:14 PM
Unknown Object (File)
Jan 30 2026, 7:09 PM
Subscribers

Details

Summary

dem_kfree() is called from all over the place and should actually
do something; contrary to lkpi_devm_kmalloc_release() it can also
take a const void *. We have to __DECONST() that though as the
entire devres framework does otherwise not take a const argument.

This was discovered during the rtw89 upadte to 6.16.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable