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)
Fri, Dec 20, 7:50 AM
Unknown Object (File)
Mon, Dec 9, 9:39 PM
Unknown Object (File)
Sat, Dec 7, 1:56 PM
Unknown Object (File)
Fri, Nov 29, 8:14 AM
Unknown Object (File)
Nov 22 2024, 7:50 AM
Unknown Object (File)
Nov 19 2024, 4:05 PM
Unknown Object (File)
Oct 22 2024, 6:26 PM
Unknown Object (File)
Oct 4 2024, 11:32 PM

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