]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Move device_create_groups_vargs to linux_compat.c
authorWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 05:05:36 +0000 (23:05 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 14:40:10 +0000 (08:40 -0600)
commit417f1c81491ae26643ea7e3f3fc5c08b8e8944a9
treee8e8aca49a2a17f0d6d882054ce5244fc8ef88bb
parent2f3d11894be6fb727be77184d232de24bf5551ba
linuxkpi: Move device_create_groups_vargs to linux_compat.c

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
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34768

(cherry picked from commit 702b6875035921252d0f2b72171c7662f28766fb)
sys/compat/linuxkpi/common/include/linux/device.h
sys/compat/linuxkpi/common/src/linux_compat.c