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
F103215681: D34768.diff
Fri, Nov 22, 7:50 AM
Unknown Object (File)
Tue, Nov 19, 4:05 PM
Unknown Object (File)
Oct 22 2024, 6:26 PM
Unknown Object (File)
Oct 4 2024, 11:32 PM
Unknown Object (File)
Oct 2 2024, 4:32 AM
Unknown Object (File)
Oct 2 2024, 4:23 AM
Unknown Object (File)
Sep 28 2024, 10:46 PM
Unknown Object (File)
Sep 17 2024, 4:10 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 :(