Skip to contentSkip to conversation

Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx

PATCH New David Howells 1 participant 1 message Mar 6, 2007 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx

From: David Howells <[email protected]>

Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx as the former is the right thing to use.

---

 include/asm-generic/page.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-generic/page.h +2 -2
index c79dc23..3a22a76 100644
@@ -16,12 +16,12 @@
 static inline __attribute__((const))
 int __get_order(unsigned long size, int page_shift)
 {
-#if BITS_PER_LONG == 32 && defined(ARCH_HAS_ILOG2_U32)
+#if BITS_PER_LONG == 32 && defined(CONFIG_ARCH_HAS_ILOG2_U32)
 	if (size <= (1UL << page_shift))
 		return 0;
 	else
 		return __ilog2_u32(size - 1) + 1 - page_shift;
-#elif BITS_PER_LONG == 64 && defined(ARCH_HAS_ILOG2_U64)
+#elif BITS_PER_LONG == 64 && defined(CONFIG_ARCH_HAS_ILOG2_U64)
 	if (size <= (1UL << page_shift))
 		return 0;
 	else