lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20070306200508.23249.27096.stgit@warthog.cambridge.redhat.com>
Date:	Tue, 06 Mar 2007 20:05:08 +0000
From:	David Howells <dhowells@...hat.com>
To:	torvalds@...l.org, akpm@...l.org, adobriyan@...il.com
Cc:	benh@...nel.crashing.org, linux-kernel@...r.kernel.org,
	dhowells@...hat.com
Subject: [PATCH] Use CONFIG_ARCH_HAS_ILOG2_xxx in __get_order() not
	ARCH_HAS_ILOG2_xxx

From: David Howells <dhowells@...hat.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@...hat.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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ