The patch titled
     log2.h: Define order_base_2() macro for convenience.
has been removed from the -mm tree.  Its filename was
     log2h-define-order_base_2-macro-for-convenience.patch

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

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: log2.h: Define order_base_2() macro for convenience.
From: "Robert P. J. Day" <[EMAIL PROTECTED]>

Given a number of places in the tree that need to calculate this value
explicitly, might as well just create a macro for it.

(akpm: must be implemented as a macro for callee typeof() usage)

Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/linux/log2.h |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff -puN include/linux/log2.h~log2h-define-order_base_2-macro-for-convenience 
include/linux/log2.h
--- a/include/linux/log2.h~log2h-define-order_base_2-macro-for-convenience
+++ a/include/linux/log2.h
@@ -190,4 +190,20 @@ unsigned long __rounddown_pow_of_two(uns
        __rounddown_pow_of_two(n)               \
  )
 
+/**
+ * order_base_2 - calculate the (rounded up) base 2 order of the argument
+ * @n: parameter
+ *
+ * The first few values calculated by this routine:
+ *  ob2(0) = 0
+ *  ob2(1) = 0
+ *  ob2(2) = 1
+ *  ob2(3) = 2
+ *  ob2(4) = 2
+ *  ob2(5) = 3
+ *  ... and so on.
+ */
+
+#define order_base_2(n) ilog2(roundup_pow_of_two(n))
+
 #endif /* _LINUX_LOG2_H */
_

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

origin.patch
git-hwmon.patch
git-xfs.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