[tip:,perf/core] tools headers: Add limits.h to access __WORDSIZE
diff mbox series

Message ID 156652825547.13140.595664236026125012.tip-bot2@tip-bot2
State Accepted
Commit 6e98bc349ea4219e21785d85809b10bd49e722df
Headers show
  • [tip:,perf/core] tools headers: Add limits.h to access __WORDSIZE
Related show

Commit Message

tip-bot2 for Vitaly Kuznetsov Aug. 23, 2019, 2:44 a.m. UTC
The following commit has been merged into the perf/core branch of tip:

Commit-ID:     6e98bc349ea4219e21785d85809b10bd49e722df
Gitweb:        https://git.kernel.org/tip/6e98bc349ea4219e21785d85809b10bd49e722df
Author:        Arnaldo Carvalho de Melo <acme@redhat.com>
AuthorDate:    Tue, 20 Aug 2019 12:01:38 -03:00
Committer:     Arnaldo Carvalho de Melo <acme@redhat.com>
CommitterDate: Tue, 20 Aug 2019 12:03:05 -03:00

tools headers: Add limits.h to access __WORDSIZE

We need to make sure limits.h is included before checking if we can use
__WORDSIZE, do it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-5yfoed4rnsck2n3cwhm9mvth@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
 tools/include/linux/bitops.h | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/tools/include/linux/bitops.h b/tools/include/linux/bitops.h
index 0b0ef3a..140c836 100644
--- a/tools/include/linux/bitops.h
+++ b/tools/include/linux/bitops.h
@@ -3,6 +3,7 @@ 
 #include <asm/types.h>
+#include <limits.h>
 #ifndef __WORDSIZE
 #define __WORDSIZE (__SIZEOF_LONG__ * 8)