log2-add-missing-around-n-in-roundup_pow_of_two.patch removed from -mm tree
The patch titled
Subject: include/linux/log2.h: add missing () around n in roundup_pow_of_two()
has been removed from the -mm tree. Its filename was
log2-add-missing-around-n-in-roundup_pow_of_two.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Jason Gunthorpe <[email protected]>
Subject: include/linux/log2.h: add missing () around n in roundup_pow_of_two()
Otherwise gcc generates warnings if the expression is complicated.
Fixes 312a0c170945 ("[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant")
Signed-off-by Jason Gunthorpe <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/log2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/log2.h renamed from include/linux/log2.h~log2-add-missing-around-n-in-roundup_pow_of_two +1 -1
@@ -173,7 +173,7 @@ unsigned long __rounddown_pow_of_two(uns#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) \
_
Patches currently in -mm which might be from [email protected] are