projects
/
ceph-client.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
include/linux/log2.h: add missing () around n in roundup_pow_of_two()
[ceph-client.git]
/
include
/
linux
/
log2.h
diff --git
a/include/linux/log2.h
b/include/linux/log2.h
index 83a4a3ca3e8a76f4a80b8740bd8f82b2d68fae59..c619ec6eff4aee113ab5a20381a9662a9df02796 100644
(file)
--- a/
include/linux/log2.h
+++ b/
include/linux/log2.h
@@
-173,7
+173,7
@@
unsigned long __rounddown_pow_of_two(unsigned long n)
#define roundup_pow_of_two(n) \
( \
__builtin_constant_p(n) ? ( \
- (
n == 1) ? 1 :
\
+ (
(n) == 1) ? 1 :
\
(1UL << (ilog2((n) - 1) + 1)) \
) : \
__roundup_pow_of_two(n) \