drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / tools / include / linux / align.h
blob14e34ace80ddae6980b6f55eea8482b5a1bf5b3c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _TOOLS_LINUX_ALIGN_H
4 #define _TOOLS_LINUX_ALIGN_H
6 #include <uapi/linux/const.h>
8 #define ALIGN(x, a) __ALIGN_KERNEL((x), (a))
9 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a))
10 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
12 #endif /* _TOOLS_LINUX_ALIGN_H */