]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Minor LinuxKPI code cleanup:
authorhselasky <hselasky@FreeBSD.org>
Thu, 31 Dec 2015 12:30:19 +0000 (12:30 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 31 Dec 2015 12:30:19 +0000 (12:30 +0000)
commita7a7584c856f1480bfec0e1a68ca2b00eb704211
treef362f3bb093cc77bca52db8aeb79c2fd37d82cd6
parentc5e1fb2b0fbc37a9e612bea86e0f53e6396e02ac
Minor LinuxKPI code cleanup:
- Declare some static functions in linux_compat.c instead if inside
  various header files.
- Prefix FreeBSD local functions in the LinuxKPI with "linux_" to
  avoid symbol name conflicts in the future and to make debugging
  easier.
- Make the "struct kobj_ktype" declaractions constant to shave off a
  few bytes from the data segment.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/cdev.h
sys/compat/linuxkpi/common/include/linux/device.h
sys/compat/linuxkpi/common/include/linux/kobject.h
sys/compat/linuxkpi/common/include/linux/miscdevice.h
sys/compat/linuxkpi/common/src/linux_compat.c
sys/compat/linuxkpi/common/src/linux_pci.c