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
F115005944: D34768.id104601.diff
Sat, Apr 19, 1:01 PM
Unknown Object (File)
Fri, Apr 18, 4:54 PM
Unknown Object (File)
Fri, Apr 18, 4:27 PM
Unknown Object (File)
Fri, Apr 18, 2:41 PM
Unknown Object (File)
Wed, Apr 16, 8:23 AM
Unknown Object (File)
Mar 19 2025, 9:48 PM
Unknown Object (File)
Mar 18 2025, 3:51 AM
Unknown Object (File)
Mar 9 2025, 6:13 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 :(