1607ca46eSDavid Howells #ifndef _UAPI_LINUX_KERNEL_H 2607ca46eSDavid Howells #define _UAPI_LINUX_KERNEL_H 3607ca46eSDavid Howells 4607ca46eSDavid Howells #include <linux/sysinfo.h> 5607ca46eSDavid Howells 6607ca46eSDavid Howells /* 7607ca46eSDavid Howells * 'kernel.h' contains some often-used function prototypes etc 8607ca46eSDavid Howells */ 9607ca46eSDavid Howells #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 10607ca46eSDavid Howells #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 11607ca46eSDavid Howells 12*b5d3755aSNicolas Dichtel #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) 13607ca46eSDavid Howells 14607ca46eSDavid Howells #endif /* _UAPI_LINUX_KERNEL_H */ 15