]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Aug 2017 14:27:27 +0000 (14:27 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 2 Aug 2017 14:27:27 +0000 (14:27 +0000)
commit2b79a966ab4f6f2cc648d2dadcc95e32cd517d46
tree15a66831f841dc087c16de2da5c05a3d0584ef11
parent28356527bf9f4f74153c7219a8687931a86d3831
Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not
wide enough to hold the full 64-bit dev_t. Instead use the "dev" field in
the "linux_cdev" structure to store and lookup this value.

While at it remove superfluous use of parenthesis inside the
MAJOR(), MINOR() and MKDEV() macros in the LinuxKPI.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/cdev.h
sys/compat/linuxkpi/common/include/linux/fs.h
sys/compat/linuxkpi/common/include/linux/kdev_t.h
sys/compat/linuxkpi/common/src/linux_compat.c