Fix some recent regressions after r328436 in the LinuxKPI:
authorhselasky <hselasky@FreeBSD.org>
Thu, 1 Feb 2018 19:57:21 +0000 (19:57 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 1 Feb 2018 19:57:21 +0000 (19:57 +0000)
commitc3f6808d105e617e0e556fb9b075798ff6eec42a
treee05ab2003faddcb9f4fd5b37f4969e231c0ae073
parente64615c951846a3a9d061e7b1e4f000cc9c89de4
Fix some recent regressions after r328436 in the LinuxKPI:

1) The OPW() function macro should have the same return type like the
function it executes.
2) The DEVFS I/O-limit should be enforced for all character device reads
and writes.
3) The character device file handle should be passable, same as for
DEVFS based file handles.

Reported by: jbeich @
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/src/linux_compat.c