2 * Copyright (c) Meta Platforms, Inc. and affiliates.
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
10 #ifndef LINUX_KERNEL_H
11 #define LINUX_KERNEL_H
15 #define PTR_ALIGN(p, a) (typeof(p))ALIGN((unsigned long long)(p), (a))
16 #define ALIGN(x, a) ALIGN_MASK((x), (a) - 1)
17 #define ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))