diff options
author | Fedora Kernel Team <kernel-team@fedoraproject.org> | 2021-02-16 19:22:36 +0300 |
---|---|---|
committer | Fu Wei <fu.wei@linaro.org> | 2021-02-16 19:22:36 +0300 |
commit | 89362d176113d6aad13e750e0c32d5982bf5a9da (patch) | |
tree | 9f8b30fcd7f1d1eff414cbab05e736b0ef4fff71 /tools/include/uapi | |
parent | 2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff) | |
download | linux-89362d176113d6aad13e750e0c32d5982bf5a9da.tar.xz |
Stable update
Diffstat (limited to 'tools/include/uapi')
-rw-r--r-- | tools/include/uapi/linux/const.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/const.h b/tools/include/uapi/linux/const.h index 5ed721ad5b19..af2a44c08683 100644 --- a/tools/include/uapi/linux/const.h +++ b/tools/include/uapi/linux/const.h @@ -28,4 +28,9 @@ #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 /* _UAPI_LINUX_CONST_H */ |