xref: /linux-6.15/include/uapi/linux/kernel.h (revision 607ca46e)
1*607ca46eSDavid Howells #ifndef _UAPI_LINUX_KERNEL_H
2*607ca46eSDavid Howells #define _UAPI_LINUX_KERNEL_H
3*607ca46eSDavid Howells 
4*607ca46eSDavid Howells #include <linux/sysinfo.h>
5*607ca46eSDavid Howells 
6*607ca46eSDavid Howells /*
7*607ca46eSDavid Howells  * 'kernel.h' contains some often-used function prototypes etc
8*607ca46eSDavid Howells  */
9*607ca46eSDavid Howells #define __ALIGN_KERNEL(x, a)		__ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
10*607ca46eSDavid Howells #define __ALIGN_KERNEL_MASK(x, mask)	(((x) + (mask)) & ~(mask))
11*607ca46eSDavid Howells 
12*607ca46eSDavid Howells 
13*607ca46eSDavid Howells #endif /* _UAPI_LINUX_KERNEL_H */
14