1*d3b7b374SJason Baron /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*d3b7b374SJason Baron #ifndef _LINUX_KERNEL_H 3*d3b7b374SJason Baron #define _LINUX_KERNEL_H 4*d3b7b374SJason Baron 5*d3b7b374SJason Baron #include "standard-headers/linux/sysinfo.h" 6*d3b7b374SJason Baron 7*d3b7b374SJason Baron /* 8*d3b7b374SJason Baron * 'kernel.h' contains some often-used function prototypes etc 9*d3b7b374SJason Baron */ 10*d3b7b374SJason Baron #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) 11*d3b7b374SJason Baron #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) 12*d3b7b374SJason Baron 13*d3b7b374SJason Baron #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) 14*d3b7b374SJason Baron 15*d3b7b374SJason Baron #endif /* _LINUX_KERNEL_H */ 16