Implement "old_encode_dev()" for the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
374377ce91
commit
854e1d4e6c
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user