]> git.proxmox.com Git - ceph.git/blob - ceph/src/zstd/contrib/linux-kernel/test/include/linux/kernel.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / zstd / contrib / linux-kernel / test / include / linux / kernel.h
1 #ifndef LINUX_KERNEL_H_
2 #define LINUX_KERNEL_H_
3
4 #define ALIGN(x, a) ({ \
5 typeof(x) const __xe = (x); \
6 typeof(a) const __ae = (a); \
7 typeof(a) const __m = __ae - 1; \
8 typeof(x) const __r = __xe & __m; \
9 __xe + (__r ? (__ae - __r) : 0); \
10 })
11
12 #define PTR_ALIGN(p, a) (typeof(p))ALIGN((unsigned long long)(p), (a))
13
14 #define current Something that doesn't compile :)
15
16 #endif // LINUX_KERNEL_H_