aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/linux-headers/linux/kdev_t.h
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-10-11 19:11:46 +0300
committernkozlovskiy <nmk@ydb.tech>2023-10-11 19:33:28 +0300
commit61b3971447e473726d6cdb23fc298e457b4d973c (patch)
treee2a2a864bb7717f7ae6138f6a3194a254dd2c7bb /contrib/libs/linux-headers/linux/kdev_t.h
parenta674dc57d88d43c2e8e90a6084d5d2c988e0402c (diff)
downloadydb-61b3971447e473726d6cdb23fc298e457b4d973c.tar.gz
add sanitizers dependencies
Diffstat (limited to 'contrib/libs/linux-headers/linux/kdev_t.h')
-rw-r--r--contrib/libs/linux-headers/linux/kdev_t.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/libs/linux-headers/linux/kdev_t.h b/contrib/libs/linux-headers/linux/kdev_t.h
new file mode 100644
index 0000000000..5b548ba006
--- /dev/null
+++ b/contrib/libs/linux-headers/linux/kdev_t.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _LINUX_KDEV_T_H
+#define _LINUX_KDEV_T_H
+
+/*
+Some programs want their definitions of MAJOR and MINOR and MKDEV
+from the kernel sources. These must be the externally visible ones.
+*/
+#define MAJOR(dev) ((dev)>>8)
+#define MINOR(dev) ((dev) & 0xff)
+#define MKDEV(ma,mi) ((ma)<<8 | (mi))
+#endif /* _LINUX_KDEV_T_H */