mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
LinuxKPI: add devm_kfree()
mt76 calls devm_kfree() directly, so alias it to our lkpi_devm_kmalloc_release() function. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44589 (cherry picked from commit 170c2e0e2bb1b2d9a7661ba729f8264381c9d9d7)
This commit is contained in:
parent
25e0847ef7
commit
24293e9f97
1 changed files with 1 additions and 0 deletions
|
|
@ -281,6 +281,7 @@ int lkpi_devres_destroy(struct device *, void(*release)(struct device *, void *)
|
|||
void lkpi_devres_release_free_list(struct device *);
|
||||
void lkpi_devres_unlink(struct device *, void *);
|
||||
void lkpi_devm_kmalloc_release(struct device *, void *);
|
||||
#define devm_kfree(_d, _p) lkpi_devm_kmalloc_release(_d, _p)
|
||||
|
||||
static inline const char *
|
||||
dev_driver_string(const struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue