svn commit: r299665 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Fri May 13 11:51:45 UTC 2016
Author: hselasky
Date: Fri May 13 11:51:43 2016
New Revision: 299665
URL: https://svnweb.freebsd.org/changeset/base/299665
Log:
Implement "old_encode_dev()" for the LinuxKPI.
Obtained from: kmacy @
MFC after: 1 week
Sponsored by: Mellanox Technologies
Modified:
head/sys/compat/linuxkpi/common/include/linux/kdev_t.h
Modified: head/sys/compat/linuxkpi/common/include/linux/kdev_t.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kdev_t.h Fri May 13 11:42:36 2016 (r299664)
+++ head/sys/compat/linuxkpi/common/include/linux/kdev_t.h Fri May 13 11:51:43 2016 (r299665)
@@ -35,4 +35,10 @@
#define MINOR(dev) minor((dev))
#define MKDEV(ma, mi) makedev((ma), (mi))
+static inline uint16_t
+old_encode_dev(dev_t dev)
+{
+ return ((MAJOR(dev) << 8) | MINOR(dev));
+}
+
#endif /* _LINUX_KDEV_T_H_ */
More information about the svn-src-all
mailing list