xref: /linux-6.15/include/uapi/linux/kernel.h (revision 6f52b16c)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells #ifndef _UAPI_LINUX_KERNEL_H
3607ca46eSDavid Howells #define _UAPI_LINUX_KERNEL_H
4607ca46eSDavid Howells 
5607ca46eSDavid Howells #include <linux/sysinfo.h>
6607ca46eSDavid Howells 
7607ca46eSDavid Howells /*
8607ca46eSDavid Howells  * 'kernel.h' contains some often-used function prototypes etc
9607ca46eSDavid Howells  */
10607ca46eSDavid Howells #define __ALIGN_KERNEL(x, a)		__ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
11607ca46eSDavid Howells #define __ALIGN_KERNEL_MASK(x, mask)	(((x) + (mask)) & ~(mask))
12607ca46eSDavid Howells 
13b5d3755aSNicolas Dichtel #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
14607ca46eSDavid Howells 
15607ca46eSDavid Howells #endif /* _UAPI_LINUX_KERNEL_H */
16