summaryrefslogtreecommitdiff
path: root/libc/kernel/uapi/linux/const.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2021-02-19 19:47:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-19 19:47:44 +0000
commitd29cac66b426d59afd7ce7da9519b6d43f5df0cc (patch)
tree64fdb7e0316c8d85bb02e4d0dcef0a5f6cd6e6f5 /libc/kernel/uapi/linux/const.h
parentb69a0d496930b1faf2559ce268064bc1a005215e (diff)
parent05667cd66a3ea0e75611f1bec36a67098ac92179 (diff)
Merge "Update to v5.11 kernel headers."
Diffstat (limited to 'libc/kernel/uapi/linux/const.h')
-rw-r--r--libc/kernel/uapi/linux/const.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/kernel/uapi/linux/const.h b/libc/kernel/uapi/linux/const.h
index 6a4c1f719..c62a7029f 100644
--- a/libc/kernel/uapi/linux/const.h
+++ b/libc/kernel/uapi/linux/const.h
@@ -30,4 +30,7 @@
#define _ULL(x) (_AC(x, ULL))
#define _BITUL(x) (_UL(1) << (x))
#define _BITULL(x) (_ULL(1) << (x))
+#define __ALIGN_KERNEL(x,a) __ALIGN_KERNEL_MASK(x, (typeof(x)) (a) - 1)
+#define __ALIGN_KERNEL_MASK(x,mask) (((x) + (mask)) & ~(mask))
+#define __KERNEL_DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#endif