]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: move kobject_create to .c file
authorWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 05:05:26 +0000 (23:05 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 14:40:10 +0000 (08:40 -0600)
commit2f3d11894be6fb727be77184d232de24bf5551ba
tree1d65b8eba720155fec5c7a8a214d4a19f368145e
parent39289f61278293146cd37dd66f115343d95ff0cf
linuxkpi: move kobject_create to .c file

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34767

(cherry picked from commit 36929b55849c8f553a744d6e4fbc8b1a5ff73f66)
sys/compat/linuxkpi/common/include/linux/kobject.h
sys/compat/linuxkpi/common/src/linux_compat.c