Skip to content

Commit eaa75b5

Browse files
committed
tools include: Add UINT_MAX def to kernel.h
The kernel has it and some files we got from there would require us including the userland header for that, so add it conditionally. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Elena Reshetova <elena.reshetova@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-gmwyal7c9vzzttlyk6u59rzn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ed4aad5 commit eaa75b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tools/include/linux/kernel.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include <stddef.h>
66
#include <assert.h>
77

8+
#ifndef UINT_MAX
9+
#define UINT_MAX (~0U)
10+
#endif
11+
812
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
913

1014
#define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1)

0 commit comments

Comments
 (0)