Page MenuHomeFreeBSD

linuxkpi: Move device_create_groups_vargs to linux_compat.c
ClosedPublic

Authored by imp on Apr 4 2022, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 10:46 PM
Unknown Object (File)
Tue, Sep 17, 4:10 AM
Unknown Object (File)
Sat, Sep 14, 8:19 AM
Unknown Object (File)
Tue, Sep 10, 8:05 AM
Unknown Object (File)
Wed, Sep 4, 5:56 AM
Unknown Object (File)
Mon, Sep 2, 9:47 AM
Unknown Object (File)
Sep 1 2024, 6:11 AM
Unknown Object (File)
Sep 1 2024, 3:49 AM

Details

Summary

device_create_groups_vargs encodes the size of struct device. Move
definition from .h to .c to move this size into the linuxkpi module
rather than encoding it in all client driver modules.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44986
Build 41874: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 4 2022, 5:03 PM
emaste added inline comments.
sys/compat/linuxkpi/common/src/linux_compat.c
470

style(9)

496

style(9)

This revision is now accepted and ready to land.Apr 4 2022, 5:13 PM
hselasky added a subscriber: hselasky.

Looks good and the style issues.

sys/compat/linuxkpi/common/src/linux_compat.c
470

This is a verbatim copy of the old code. I'd rather not make any other changes to it, lest I introduce bugs (here and below). linuxkpi isn't very style(9) compliant on some things :(