The patch titled
     Fix roundup_pow_of_two(1)
has been removed from the -mm tree.  Its filename was
     fix-roundup_pow_of_two1.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Fix roundup_pow_of_two(1)
From: Rolf Eike Beer <[EMAIL PROTECTED]>

Fix roundup_pow_of_two(1)

1 is a power of two, therefore roundup_pow_of_two(1) should return 1.  It
does in case the argument is a variable but in case it's a constant it
behaves wrong and returns 0.  Probably nobody ever did it so this was never
noticed.

Signed-off-by: Rolf Eike Beer <[EMAIL PROTECTED]>
Cc: David Howells <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/linux/log2.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/log2.h~fix-roundup_pow_of_two1 include/linux/log2.h
--- a/include/linux/log2.h~fix-roundup_pow_of_two1
+++ a/include/linux/log2.h
@@ -159,7 +159,7 @@ unsigned long __roundup_pow_of_two(unsig
 #define roundup_pow_of_two(n)                  \
 (                                              \
        __builtin_constant_p(n) ? (             \
-               (n == 1) ? 0 :                  \
+               (n == 1) ? 1 :                  \
                (1UL << (ilog2((n) - 1) + 1))   \
                                   ) :          \
        __roundup_pow_of_two(n)                 \
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

mm-use-div_round_up-in-mm-memoryc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to