Skip to content

Commit 9154d2e

Browse files
acmelgregkh
authored andcommitted
tools headers UAPI: Sync linux/const.h with the kernel headers
commit 7ddcdea upstream. To pick up the changes in: a85cbe6 ("uapi: move constants from <linux/kernel.h> to <linux/const.h>") That causes no changes in tooling, just addresses this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/const.h' differs from latest version at 'include/uapi/linux/const.h' diff -u tools/include/uapi/linux/const.h include/uapi/linux/const.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e8afbba commit 9154d2e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tools/include/uapi/linux/const.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@
2828
#define _BITUL(x) (_UL(1) << (x))
2929
#define _BITULL(x) (_ULL(1) << (x))
3030

31+
#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
32+
#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask))
33+
34+
#define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
35+
3136
#endif /* _UAPI_LINUX_CONST_H */

0 commit comments

Comments
 (0)