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)
Apr 3 2024, 5:22 PM
Unknown Object (File)
Dec 20 2023, 6:54 AM
Unknown Object (File)
Dec 12 2023, 1:30 AM
Unknown Object (File)
Dec 6 2023, 3:59 PM
Unknown Object (File)
Oct 17 2023, 5:40 AM
Unknown Object (File)
Sep 7 2023, 4:03 PM
Unknown Object (File)
Aug 30 2023, 4:18 PM
Unknown Object (File)
Jul 9 2023, 8:45 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 :(