mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx
@ 2007-03-06 20:05 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2007-03-06 20:05 UTC (permalink / raw)
  To: torvalds, akpm, adobriyan; +Cc: benh, linux-kernel, dhowells

From: David Howells <dhowells@redhat.com>

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

Signed-Off-By: David Howells <dhowells@redhat.com>
---

 include/asm-generic/page.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h
index c79dc23..3a22a76 100644
--- a/include/asm-generic/page.h
+++ b/include/asm-generic/page.h
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-06 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-06 20:05 [PATCH] Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®