]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixes for the LinuxAPI completion wrappers:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 27 Mar 2015 16:16:23 +0000 (16:16 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 27 Mar 2015 16:16:23 +0000 (16:16 +0000)
commit932493ff29bcbde72c6d4cfec9b6cc7854187767
treea4014118d1a2f9f0b2d8bc4278a0fb9d39f80223
parent99289311861023beb8e6a79a0ac1799fea8b1b4d
Fixes for the LinuxAPI completion wrappers:
- make sure the timeout computations are always above zero by using
the existing "linux_timer_jiffies_until()" function. Negative timeouts
can result in undefined behaviour.
- declare all completion functions like external symbols and move the
code to the LinuxAPI kernel module.
- add a proper prefix to all LinuxAPI kernel functions to avoid
namespace collision with other parts of the FreeBSD kernel.
- clean up header file inclusions in the linux/completion.h, linux/in.h
and linux/fs.h header files.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/ofed/include/linux/completion.h
sys/ofed/include/linux/fs.h
sys/ofed/include/linux/in.h
sys/ofed/include/linux/linux_compat.c