From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org, adobriyan@gmail.com
Cc: benh@kernel.crashing.org, linux-kernel@vger.kernel.org,
dhowells@redhat.com
Subject: [PATCH] Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not ARCH_HAS_ILOG2_xxx
Date: Tue, 06 Mar 2007 20:05:08 +0000 [thread overview]
Message-ID: <20070306200508.23249.27096.stgit@warthog.cambridge.redhat.com> (raw)
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
reply other threads:[~2007-03-06 20:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070306200508.23249.27096.stgit@warthog.cambridge.redhat.com \
--to=dhowells@redhat.com \
--cc=adobriyan@gmail.com \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®