projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tools: Work around BITS_PER_LONG related build failure in objtool
[linux-2.6-block.git]
/
tools
/
include
/
linux
/
bitops.h
diff --git
a/tools/include/linux/bitops.h
b/tools/include/linux/bitops.h
index 5ad9ee1dd7f6aed579a5e631e309438a80bb472f..49c929a104eee364fe796f64d895d3ab9cced797 100644
(file)
--- a/
tools/include/linux/bitops.h
+++ b/
tools/include/linux/bitops.h
@@
-9,7
+9,9
@@
#define __WORDSIZE (__SIZEOF_LONG__ * 8)
#endif
-#define BITS_PER_LONG __WORDSIZE
+#ifndef BITS_PER_LONG
+# define BITS_PER_LONG __WORDSIZE
+#endif
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)