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
F170055436: D52082.id160736.diff
Thu, Sep 3, 9:27 AM
Unknown Object (File)
Wed, Sep 2, 11:17 AM
Unknown Object (File)
Wed, Sep 2, 7:46 AM
Unknown Object (File)
Mon, Aug 31, 10:32 AM
Unknown Object (File)
Mon, Aug 31, 7:40 AM
Unknown Object (File)
Sat, Aug 29, 7:38 AM
Unknown Object (File)
Fri, Aug 28, 2:10 AM
Unknown Object (File)
Tue, Aug 25, 3:46 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66420
Build 63303: arc lint + arc unit