Page MenuHomeFreeBSD

LinuxKPI: implement devm_kmemdup_array()
ClosedPublic

Authored by bz on Tue, Apr 14, 3:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 24, 1:48 AM
Unknown Object (File)
Tue, Apr 21, 3:38 AM
Unknown Object (File)
Mon, Apr 20, 7:42 PM
Unknown Object (File)
Mon, Apr 20, 11:16 AM
Unknown Object (File)
Mon, Apr 20, 7:21 AM
Unknown Object (File)
Sun, Apr 19, 9:44 PM
Unknown Object (File)
Sun, Apr 19, 8:34 AM
Unknown Object (File)
Sun, Apr 19, 6:08 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 Passed
Unit
No Test Coverage
Build Status
Buildable 72205
Build 69088: arc lint + arc unit

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.