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
Unknown Object (File)
Mon, Jul 20, 3:50 PM
Unknown Object (File)
Sat, Jul 18, 4:50 PM
Unknown Object (File)
Sat, Jul 18, 10:20 AM
Unknown Object (File)
Wed, Jul 15, 6:40 AM
Unknown Object (File)
Wed, Jul 15, 6:40 AM
Unknown Object (File)
Sat, Jul 11, 1:49 AM
Unknown Object (File)
Thu, Jul 9, 7:44 PM
Unknown Object (File)
Wed, Jul 8, 7:47 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