Page MenuHomeFreeBSD

LinuxKPI: implement devm_kmemdup_array()
ClosedPublic

Authored by bz on Tue, Apr 14, 3:35 PM.
Tags
None
Referenced Files
F153126854: D56396.diff
Sun, Apr 19, 8:34 AM
F153112704: D56396.diff
Sun, Apr 19, 6:08 AM
Unknown Object (File)
Sat, Apr 18, 7:42 AM
Unknown Object (File)
Sat, Apr 18, 6:01 AM
Unknown Object (File)
Fri, Apr 17, 4:42 AM
Unknown Object (File)
Thu, Apr 16, 12:11 AM

Details

Summary

Implement devm_kmemdup_array() using devm_kmemdup() in order to
prepare for Linux v7.0 based drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Tue, Apr 14, 3:35 PM

The devm_kmemdup*() functions are defined in <linux/device/devres.h>, included from <linux/device.h> in 7.0. Did you consider adding them to <linux/device/devres.h>?

The devm_kmemdup*() functions are defined in <linux/device/devres.h>, included from <linux/device.h> in 7.0. Did you consider adding them to <linux/device/devres.h>?

No, I haven't checked what Linux does for this.
I think factoring them out, I'd rather do in a dedicated commit not adding new stuff.
I can prepare that as a follow-up.

I understand, thanks. I'm approving this patch then.

This revision is now accepted and ready to land.Wed, Apr 15, 9:02 PM
This revision was automatically updated to reflect the committed changes.