[PATCH 01/17] tools headers: Add limits.h to access __WORDSIZE

From
Arnaldo Carvalho de Melo <acme@kernel.org>
Date
2019-08-20 19:27:58
Also in
lkml
Reply to
Arnaldo Carvalho de Melo, 2019-08-20
From: Arnaldo Carvalho de Melo <redacted>

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 <redacted>
---
 tools/include/linux/bitops.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/tools/include/linux/bitops.h b/tools/include/linux/bitops.h
index 0b0ef3abc966..140c8362f113 100644
--- a/tools/include/linux/bitops.h
+++ b/tools/include/linux/bitops.h
@@ -3,6 +3,7 @@
 #define _TOOLS_LINUX_BITOPS_H_
 
 #include <asm/types.h>
+#include <limits.h>
 #ifndef __WORDSIZE
 #define __WORDSIZE (__SIZEOF_LONG__ * 8)
 #endif
-- 
2.21.0
Thread (20 messages) 20 messages, 3 authors, last reply 2019-08-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help