]> 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 05:05:26 +0000 (23:05 -0600)
commit36929b55849c8f553a744d6e4fbc8b1a5ff73f66
treef6882c720fdd5376cb01cf8bdd4f8b3bc9827ebb
parent6e671ec1e64ccd11c81eabe5abef5b20745914a2
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
sys/compat/linuxkpi/common/include/linux/kobject.h
sys/compat/linuxkpi/common/src/linux_compat.c