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: <20060807140538.c5dc216b.rdunlap@xenotime.net>
Date:	Mon, 7 Aug 2006 14:05:38 -0700
From:	"Randy.Dunlap" <rdunlap@...otime.net>
To:	lkml <linux-kernel@...r.kernel.org>
Cc:	akpm <akpm@...l.org>, torvalds <torvalds@...l.org>,
	tony.luck@...el.com
Subject: [PATCH 7/9] Replace ARCH_HAS_VALID_PHYS_ADDR_RANGE with
 CONFIG_ARCH_VALID_PHYS_ADDR_RANGE

From: Randy Dunlap <rdunlap@...otime.net>

Replace ARCH_HAS_VALID_PHYS_ADDR_RANGE with CONFIG_ARCH_VALID_PHYS_ADDR_RANGE.
Move it from header files to Kconfig space.

Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
---
 arch/ia64/Kconfig     |    3 +++
 drivers/char/mem.c    |    2 +-
 include/asm-ia64/io.h |    1 -
 3 files changed, 4 insertions(+), 2 deletions(-)

--- linux-2618-rc4-arch.orig/drivers/char/mem.c
+++ linux-2618-rc4-arch/drivers/char/mem.c
@@ -86,7 +86,7 @@ static inline int uncached_access(struct
 #endif
 }
 
-#ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE
+#ifndef CONFIG_ARCH_VALID_PHYS_ADDR_RANGE
 static inline int valid_phys_addr_range(unsigned long addr, size_t count)
 {
 	if (addr + count > __pa(high_memory))
--- linux-2618-rc4-arch.orig/include/asm-ia64/io.h
+++ linux-2618-rc4-arch/include/asm-ia64/io.h
@@ -87,7 +87,6 @@ phys_to_virt (unsigned long address)
 	return (void *) (address + PAGE_OFFSET);
 }
 
-#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
 extern u64 kern_mem_attribute (unsigned long phys_addr, unsigned long size);
 extern int valid_phys_addr_range (unsigned long addr, size_t count); /* efi.c */
 extern int valid_mmap_phys_addr_range (unsigned long pfn, size_t count);
--- linux-2618-rc4-arch.orig/arch/ia64/Kconfig
+++ linux-2618-rc4-arch/arch/ia64/Kconfig
@@ -386,6 +386,9 @@ config HAVE_ARCH_NODEDATA_EXTENSION
 	def_bool y
 	depends on NUMA
 
+config ARCH_VALID_PHYS_ADDR_RANGE
+	def_bool y
+
 config IA32_SUPPORT
 	bool "Support for Linux/x86 binaries"
 	help


---
-
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